2-1
2 VLAN Configuration
When configuring a VLAN, go to these sections for information you are interested in:
z VLAN Configuration
z Configuring a Port-Based VLAN
z MAC-Based VLAN
z Configuring a Protocol-Based VLAN
VLAN Configuration
VLAN Configuration Task List
Complete the following tasks to configure VLAN:
Task Remarks
Basic VLAN Configuration Required
Basic VLAN Interface Configuration Optional
Displaying VLAN Configuration Optional
Basic VLAN Configuration
Follow these steps to perform basic VLAN configuration:
To do... Use the command... Remarks
Enter system view
system-view
—
Create multiple VLANs in
batch
vlan
{ vlan-id1
to
vlan-id2 |
all
}
Optional
Create a VLAN and enter
VLAN view
vlan
vlan-id
Required
By default, there is only one VLAN, that is, the
default VLAN (VLAN 1).
Assign a name for the
current VLAN
name
text
Optional
By default, the name of a VLAN is its VLAN ID.
VLAN 0001
for example.
Specify the description
string of the current VLAN
description
text
Optional
By default, the description string of a VLAN is its
VLAN ID.
VLAN 0001
for example.