Vlan Configuration Example - H3C LS-3100-52P-OVS-H3 Operation Manual

S5500-ei series ethernet switches
Table of Contents

Advertisement

To do...
Display VLAN interface
information
Display hybrid ports or trunk
ports on the device
Display MAC address-to-VLAN
entries
Display all interfaces with
MAC-based VLAN enabled
Display protocol information
and protocol indexes of the
specified VLANs
Display protocol-based VLAN
information on specified
interfaces
Display IP subnet-based VLAN
information and IP subnet
indexes of specified VLANs
Display the IP subnet-based
VLAN information and IP
subnet indexes of specified
ports
Clear statistics on a port
The reset counters interface command can be used to clear statistics on a VLAN interface. For more
information, refer to Ethernet Interface Commands in the Access Volume.

VLAN Configuration Example

Network requirements
Device A connects to Device B through a trunk port GigabitEthernet 1/0/1;
The default VLAN ID of GigabitEthernet 1/0/1 is 100;
GigabitEthernet 1/0/1 allows packets from VLAN 2, VLAN 6 through VLAN 50, and VLAN 100 to
pass through.
Use the command...
display interface
vlan-interface
[ vlan-interface-id ]
display port { hybrid | trunk }
display mac-vlan { all |
dynamic | mac-address
mac-address [ mask
mac-mask ] | static | vlan
vlan-id }
display mac-vlan interface
display protocol-vlan vlan
{ vlan-id [ to vlan-id ] | all }
display protocol-vlan
interface { interface-type
interface-number [ to
interface-type
interface-number ] | all }
display ip-subnet-vlan vlan
{ vlan-id [ to vlan-id ] | all }
display ip-subnet-vlan
interface { interface-list | all }
reset counters interface
[ interface-type
[ interface-number ] ]
1-15
Remarks
Available in any view
Available in any view
Available in any view
Available in any view
Available in any view
Available in any view
Available in any view
Available in any view
Available in user view

Advertisement

Chapters

Table of Contents
loading

Table of Contents