Verifying the configuration, Configuration precautions, Displaying and maintaining vlan – H3C Technologies H3C S12500 Series Switches User Manual
Page 38

25
[Switch-qospolicy-test] classifier 2 behavior 1
[Switch-qospolicy-test] classifier 3 behavior 2
[Switch-qospolicy-test] classifier 4 behavior 2
[Switch-qospolicy-test] quit
# Apply the QoS policy to the incoming packets of port GigabitEthernet 3/0/1.
[Switch] interface GigabitEthernet 3/0/1
[Switch-GigabitEthernet3/0/1] qos apply policy test inbound
Verifying the configuration
Ping the gateway (IP address of VLAN-interface 10, for example, 1.1.1.1) from PC A, and the gateway (IP
address of VLAN-interface 20, for example, 2.1.1.1) from PC B.
The ping operations succeed.
Log in to Switch and display ARP entries.
[Switch] display arp
Type: S-Static D-Dynamic A-Authorized
IP Address MAC Address VLAN ID Interface Aging Type
1.1.1.100 0000-0000-0001 10 GE3/0/1 N/A D
2.1.1.100 0000-0000-0002 20 GE3/0/1 N/A D
Configuration precautions
IP subnet-based VLANs are only effective on hybrid ports.
Displaying and maintaining VLAN
Task Command
Remarks
Display VLAN information.
display vlan [ vlan-id1 [ to vlan-id2 ] | all |
dynamic | reserved | static ] [ | { begin |
exclude | include } regular-expression ]
Available in any view.
Display VLAN interface
information.
display interface [ vlan-interface ] [ brief
[ down ] ] [ | { begin | exclude | include }
regular-expression ]
display interface [ vlan-interface
[ vlan-interface-id ] ] [ brief [ description ] ] [ |
{ begin | exclude | include }
regular-expression ]
Available in any view.
Display hybrid ports or trunk ports
on the switch.
display port { hybrid | trunk } [ | { begin |
exclude | include } regular-expression ]
Available in any view.
Display MAC address-to-VLAN
entries.
display mac-vlan { all | dynamic |
mac-address mac-address | static | vlan
vlan-id } [ | { begin | exclude | include }
regular-expression ]
Available in any view.
Display all ports with MAC-based
VLAN enabled.
display mac-vlan interface [ | { begin |
exclude | include } regular-expression ]
Available in any view.
Display protocol information and
protocol indexes of the specified
VLANs.
display protocol-vlan vlan { vlan-id [ to
vlan-id ] | all } [ | { begin | exclude | include }
regular-expression ]
Available in any view.