How to setup a VLAN on HP switch with trunk port

The examples shows bellow shows three VLANS and their assigned ports:


HPSW# configure
HPSW(config)# vlan 1
HPSW(vlan-1)# name “Default”
HPSW(vlan-1)# untag 1-10
HPSW(vlan-1)# vlan 10
HPSW(vlan-10)# name “DHCP-Lan”
HPSW(vlan-10)# untag 11-30
HPSW(vlan-10)# vlan 20
HPSW(vlan-20)# name “Printer_lan”
HPSW(vlan-20)# untag 31-40
HPSW(vlan-20)# vlan 30
HPSW(vlan-30)# name “SRV_lan”
HPSW(vlan-20)# untag 41-47
HPSW(vlan-30)# exit
HPSW(config)# exit
HPSW#

This will setup trunk port to port 48


HPSW# config
HPSW(config)# trunk 48 tp1
HPSW(config)# vlan 10
HPSW(vlan-10)# tagged tp1
HPSW(vlan-10)# vlan 20
HPSW(vlan-20)# tagged tp1
HPSW(vlan-20)# vlan 30
HPSW(vlan-30)# tagged tp1
HPSW(vlan-30)# wr mem
HPSW(vlan-30)# exit
HPSW(config)# exit
HPSW#

Publisher: abdirahman isse

Share this post