Displaying and Maintaining VLAN 95
Displaying and
Maintaining VLAN
VLAN Configuration
Example
Network requirements
■ Device A connects to Device B through Trunk port GigabitEthernet 1/0/1;
■ The default VLAN ID of the port is 100;
■ This port allows packets from VLAN 2, VLAN 6 through VLAN 50, and VLAN
100 to pass through.
Network diagram
Figure 28 Network diagram for port-based VLAN configuration
Allow an IP-subnet-based
VLAN to pass through the
current Hybrid port
port hybrid vlan vlan-id-list
{ tagged | untagged }
Required
Configure the association
between the Hybrid port and
the IP-subnet-based VLAN
port hybrid ip-subnet-vlan
vlan vlan-id
Required
To do… Use the command… Remarks
To do… Use the command… Remarks
Display the information about
specific VLANs
display vlan [ vlan-id1 [ to
vlan-id2 ] | all | dynamic |
reserved | static ]
Available in any view
Display the information about a
VLAN interface
display interface Vlan-interface
[ vlan-interface-id ]
Available in any view
Display all the ports with MAC
address-based VLAN enabled.
display mac-vlan interface Available in any view
Display the information about
specific MAC address-to-VLAN
entries
display mac-vlan { all | dynamic |
mac-address mac-addr [ mask
mac-mask ] | static | vlan vlan-id }
Available in any view
Display the protocol information
and protocol indexes of specified
VLANs
display protocol-vlan vlan
{ vlan-id [ to vlan-id ] | all }
Available in any view
Display protocol-based VLAN
information on specified interfaces
display protocol-vlan interface
{ interface-type interface-number
[ to interface-type
interface-number ] | all }
Available in any view
Display the IP-subnet-based VLAN
information and IP subnet indexes
of specified VLANs
display ip-subnet-vlan vlan
{ vlan-id [ to vlan-id ] | all }
Available in any view
Display the IP-subnet-based VLAN
information and IP subnet index of
specified ports
display ip-subnet-vlan interface
{ interface-type interface-number
[ to interface-type
interface-number | all }
Available in any view
Clear the statistics on a VLAN
interface
reset counters interface
Vlan-interface [ vlan-interface-id ]
Available in user view
Device A Device B
GE1/0/1
GE1/0/1