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


 
VLANs
54
Viewing VLANs
The VLAN information menu (/info/l2/vlan) displays all configured VLANs and all member ports that
have an active link state, for example:
>> Layer 2# vlan
VLAN Name Status Ports
---- -------------------------------- ------ ----------------------
1 Default VLAN ena 1 4-16 18-21
2 VLAN 2 ena 2 3
4095 VLAN 4095 ena 17
PVID numbers
Each port in the switch has a configurable default VLAN number, known as its PVID. This places all
ports on the same VLAN initially, although each port PVID is configurable to any VLAN number
between 1 and 4094.
The default configuration settings for switches have all ports set as untagged members of VLAN 1 with all
ports configured as PVID = 1. In the default configuration example shown in the following figure, all
incoming packets are assigned to VLAN 1 by the default port VLAN identifier (PVID =1).
Viewing and configuring PVIDs
You can view PVIDs from the following CLI commands:
Port information
>> /info/port
Port Tag RMON PVID NAME VLAN(s)
---- --- ---- ---- -------------- -------------------------------
1 n d 1 Downlink1 1
2 n e 1 Downlink2 1
3 n d 1 Downlink3 1
4 n d 1 Downlink4 1
5 n d 1 Downlink5 1
6 n d 1 Downlink6 1
7 n d 1 Downlink7 1
:
:
Port configuration
>> /cfg/port 21/pvid 21
Current port VLAN ID: 1
New pending port VLAN ID: 21
>> Port 21#
Each port on the switch can belong to one or more VLANs, and each VLAN can have any number of
switch ports in its membership. Any port that belongs to multiple VLANs, however, must have VLAN
tagging enabled. See the “VLAN tagging” section in this chapter.
Any untagged frames (those with no VLAN specified) are classified with the PVID of the sending port.