H3C S7500 Series Ethernet Switches Operation Manual

Operation Manual – VLAN
H3C S7500 Series Ethernet Switches Chapter 2
VLAN Configuration
2-3
To do… Use the command… Remarks
Disable the VLAN
interface
shutdown
Optional
Enable the VLAN
Interface
undo shutdown
Optional
Note that the operation of enabling/disabling a VLAN interface does not influence the
enabling/disabling status of the Ethernet ports belonging to this VLAN.
By default, a VLAN interface is enabled. In this scenario, the VLAN interface’s status is
determined by the status of its ports, that is, if all ports of the VLAN are down, the VLAN
interface is down (disabled); if one or more ports of the VLAN are up, the VLAN
interface is up (enabled).
If a VLAN interface is disabled, its status is not determined by the status of its ports.
2.1.4 Displaying VLAN Configuration
To do… Use the command… Remarks
Display the VLAN
interface information
display interface Vlan-interface
[ vlan-id ]
Display the VLAN
information
display vlan [ vlan-id [ to vlan-id ] |
all | static | dynamic ]
Available in any
view.
2.2 Configuring a Port-Based VLAN
2.2.1 Configuring an Access-Port-Based VLAN
There are two ways to configure Access-port-based VLAN: one way is to configure in
VLAN view, the other way is to configure in Ethernet port view.
Follow these steps to configure the Access-port-based VLAN in VLAN view:
To do… Use the command… Remarks
Enter system view
system-view
Enter VLAN view
vlan vlan-id
Required
If the specified VLAN does not
exist, this command be created
first creates the VLAN before
entering its view.
Add an Access port
to the current VLAN
port interface-list
Required
By default, system will add all
ports to VLAN 1.