Configuring basic VLAN settings
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. (Optional.) Create a VLAN and enter its view, or create a list of VLANs. | vlan { vlan-id1 [ to vlan-id2 ] | all } | By default, only the system default VLAN (VLAN 1) exists. |
3. Enter VLAN view. | vlan vlan-id | To configure a VLAN after you create a list of VLANs, you must perform this step. |
4. Set a name for the VLAN. | name text | By default, the name of a VLAN is VLAN vlan-id. The vlan-id argument specifies the VLAN ID in a four-digit format. If the VLAN ID has fewer than four digits, leading zeros are added. For example, the name of VLAN 100 is VLAN 0100. |
5. Set the description for the VLAN. | description text | By default, the description of a VLAN is VLAN vlan-id. The vlan-id argument specifies the VLAN ID in a four-digit format. If the VLAN ID has fewer than four digits, leading zeros are added. For example, the default description of VLAN 100 is VLAN 0100. |
NOTE: As the system default VLAN, VLAN 1 cannot be created or deleted. Before you delete a dynamic VLAN or a VLAN locked by an application, you must first remove the configuration from the VLAN. | ||