Download 3Com Switch 4210 Configuration Guide

Transcript
78
CHAPTER 5: VLAN CONFIGURATION
Basic VLAN Interface
Configuration
Configuration prerequisites
Before configuring a VLAN interface, create the corresponding VLAN.
Configuration procedure
Table 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
Specify the
description string for
the current VLAN
interface
description text
Disable the VLAN
interface
shutdown
Enable the VLAN
Interface
undo shutdown
By default, there is no VLAN
interface on a switch.
Optional
By default, the description string
of a VLAN interface is the name of
this VLAN interface.
"Vlan-interface1 Interface" for
example.
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.
n
Displaying VLAN
Configuration
■
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.
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.
Table 44 Display VLAN configuration
Operation
Command
Display the VLAN interface display interface Vlan-interface [
information
vlan-id ]
Display the VLAN
information
display vlan [ vlan-id [ to vlan-id ] |
all | dynamic | static ]
Description
You can execute the
display command in any
view.