VLAN Configuration 59
Create a VLAN first before creating an interface for it.
For this configuration task, vlan_id takes the VLAN ID.
Shutting Down/Enabling the VLAN Interface
Use the following command to shut down/enable a VLAN interface.
Perform the following configuration in VLAN Interface View.
The operation of shutting down or enabling the VLAN interface has no effect on
the UP/DOWN status of the Ethernet ports on the local VLAN.
By default, when all the Ethernet ports belonging to a VLAN are in DOWN status,
this VLAN interface is also DOWN, that it, this VLAN interface is shut down. When
there is one or more Ethernet ports in UP status, this VLAN interface is also UP, that
is, this VLAN interface is enabled.
Displaying and
Debugging VLAN
After the above configuration, enter the display command in any view to display
the running of the VLAN configuration, and to verify the effect of the
configuration.
VLAN Configuration
Example One
Networking Requirements
Create VLAN2 and VLAN3. Add Ethernet1/0/1 and Ethernet1/0/2 to VLAN2 and
add Ethernet1/0/3 and Ethernet1/0/4 to VLAN3.
Remove the specified VLAN interface undo interface
vlan-interface vlan_id
Tab le 55 Shutting Down/Enabling the VLAN Interface
Operation Command
Shut down the VLAN interface shutdown
Enabling the VLAN interface undo shutdown
Table 54 Specifying/Removing the VLAN Interface
Operation Command
Tab le 56 Displaying and Debugging a VLAN
Operation Command
Display information about the VLAN interface display interface
vlan-interface [ vlan_id ]
Display information about the VLAN display vlan [ vlan_id | all |
static | dynamic ]