HP (Hewlett-Packard) 445946-001 Switch User Manual


 
VLANs
63
Configuring ports and VLANs on Switch 2 (CLI example)
To configure ports and VLANs on Switch 2, do the following:
1. On Switch 2, enable VLAN tagging on the necessary ports. Port 4 (connection to server 2) remains
untagged, so it is not configured below.
Main# /cfg/port 2 (Select port 2: connection to server 1)
>> Port 2# tag e
Current VLAN tag support: disabled
New VLAN tag support: enabled
Port 2 changed to tagged.
Main# /cfg/port 18 (Select uplink port 18)
>> Port 18# tag e (Enable tagging)
Current VLAN tag support: disabled
New VLAN tag support: enabled
Port 18 changed to tagged.
>> Port 18# apply (Apply the port configurations)
2. Configure the VLANs and their member ports. Since all ports are by default configured for VLAN 1,
configure only those ports that belong to other VLANs.
>> /cfg/l2/vlan 3
>> VLAN 3# add 2
Current ports for VLAN 3: empty
Pending new ports for VLAN 3: 2
>> VLAN 3# add 4
Port 4 is an UNTAGGED port and its current PVID is 1.
Confirm changing PVID from 1 to 2 [y/n]: y
Current ports for VLAN 3: 2
Pending new ports for VLAN 3:
>> VLAN 3# add 18
Current ports for VLAN 3: 2
Pending new ports for VLAN 3: 18
>> /cfg/l2/vlan 4
>> VLAN 4# add 20
Port 20 is an UNTAGGED port and its current PVID is 1.
Confirm changing PVID from 1 to 2 [y/n]: y
Current ports for VLAN 4: empty
Pending new ports for VLAN 4: 20
>> apply (Apply the port configurations)
>> save (Save the port configurations)
The external Layer 2 switches should also be configured for VLANs and tagging.