78 CHAPTER 5: VLAN CONFIGURATION
Basic VLAN Interface
Configuration
Configuration prerequisites
Before configuring a VLAN interface, create the corresponding VLAN.
Configuration procedure
n
■ The operation of enabling/disabling a VLAN’s VLAN interface does not
influence the physical status of the Ethernet ports belonging to this VLAN.
■ A Switch 4210 can be configured with a single VLAN interface only, and the
VLAN must be the management VLAN. For details about the management
VLAN, refer to
“Managing the VLAN” on page 83.
Displaying VLAN
Configuration
After the configuration above, you can execute the display command in any view
to display the running status after the configuration, so as to verify the
configuration.
Tabl e 43 Basic VLAN interface configuration
Operation Command Description
Enter system view system-view -
Create a VLAN
interface and enter
VLAN interface view
interface Vlan-interface vlan-id Required
By default, there is no VLAN
interface on a switch.
Specify the
description string for
the current VLAN
interface
description text Optional
By default, the description string
of a VLAN interface is the name of
this VLAN interface.
"Vlan-interface1 Interface" for
example.
Disable the VLAN
interface
shutdown Optional
By default, the VLAN interface is
enabled. In this case, the VLAN
interface’s status is determined by
the status of the ports in the
VLAN, 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 you disable the VLAN interface,
the VLAN interface will always be
down, regardless of the status of
the ports in the VLAN.
Enable the VLAN
Interface
undo shutdown
Tabl e 44 Display VLAN configuration
Operation Command Description
Display the VLAN interface
information
display interface Vlan-interface [
vlan-id ]
You can execute the
display command in any
view.
Display the VLAN
information
display vlan [ vlan-id [ to vlan-id ] |
all | dynamic | static ]