Configure Basic Attributes of VLANs
Configuration Condition
None
Configure a VLAN
Each VLAN corresponds to a broadcast domain. The users in the same VLAN can communicate with each other at layer 2, while users from different VLANs are isolated from each other at layer 2.
Table 3-2 Configuring a VLAN
Step
|
Command
|
Description
|
Enter the global configuration mode.
|
configure terminal
|
-
|
Create a VLAN.
|
vlan vlan-list
|
Mandatory.
By default, the system automatically creates VLAN1.
In creating a single VLAN, after a VLAN is created, you will enter the VLAN configuration mode. In creating multiple VLANs, after a VLAN is created, you are still in the current configuration mode.
|
Configure the VLAN Name
To facilitate memory and management, you can configure the name of a VLAN according to the service type, function, and connection of the VLAN.
Table 3-3 Configure the VLAN name.
Step
|
Command
|
Description
|
Enter the global configuration mode.
|
configure terminal
|
-
|
Enters the VLAN configuration mode.
|
vlan vlan-id
|
-
|
Configure the VLAN name.
|
name vlan-name
|
Mandatory.
By default, the name of VLAN1 is DEFAULT, and the names of other VLANs follow the format "VLANvlan-id", such as VLAN100.
|