Displaying And Maintaining Vlans; Vlan Configuration Examples; Port-Based Vlan Configuration Example - H3C S7500E-X Configuration Manual

Layer 2 lan switching
Hide thumbs Also See for H3C S7500E-X:
Table of Contents

Advertisement

Step
Enter system view.
1.
Create a VLAN group and
2.
enter VLAN group view.
Add VLANs to the VLAN
3.
group.

Displaying and maintaining VLANs

Execute display commands in any view and reset commands in user view.
Task
Display VLAN interface information.
Display information about IP
subnet-based VLANs that are associated
with the specified ports.
Display information about IP
subnet-based VLANs.
Display information about protocol-based
VLANs that are associated with the
specified ports.
Display information about protocol-based
VLANs.
Display VLAN information.
Display brief VLAN information.
Display VLAN group information.
Display hybrid ports or trunk ports on the
device.
Clear statistics on a port.

VLAN configuration examples

Port-based VLAN configuration example

Network requirements
As shown in
Host A and Host C belong to Department A. VLAN 100 is assigned to Department A.
Host B and Host D belong to Department B. VLAN 200 is assigned to Department B.
Configure port-based VLANs so that only hosts in the same department can communicate with each
other.
Command
system-view
vlan-group group-name
vlan-list vlan-id-list
Figure
39:
Command
display interface vlan-interface [ interface-number ] [ brief
[ description | down ] ]
display ip-subnet-vlan interface { interface-type
interface-number1 [ to interface-type interface-number2 ] | all }
display ip-subnet-vlan vlan { vlan-id1 [ to vlan-id2 ] | all }
display protocol-vlan interface { interface-type
interface-number1 [ to interface-type interface-number2 ] | all }
display protocol-vlan vlan { vlan-id1 [ to vlan-id2 ] | all }
display vlan [ vlan-id1 [ to vlan-id2 ] | all | dynamic | reserved
| static ]
display vlan brief
display vlan-group [ group-name ]
display port { hybrid | trunk }
reset counters interface vlan-interface [ interface-number ]
128
Remarks
N/A
By default, no VLAN group exists.
By default, no VLAN exists in a
VLAN group.

Advertisement

Table of Contents
loading

Table of Contents