Configuration Guide VLAN Configuration
Creating/Modifying a VLAN
In the privileged mode, you can create or modify a VLAN by executing the
following commands.
Ruijie(config)# vlan vlan-id
Enter a VLAN ID. If you enter a new VLAN ID,
the device will create it. If you enter an existing
VLAN ID, the device modifies the
corresponding VLAN.
Ruijie(config)# name vlan-name
(Optional) Name the VLAN. If you skip this
step, the device automatically assigns the
VLAN a name of VLAN xxxx, where xxxx is a
4-digit VLAN ID starting with 0. For example,
VLAN 0004 is the default name of VLAN 4.
To restore the name of a VLAN to its default, simply enter the no name
command.
The following example creates VLAN 888, names it test888, and saves its
configuration into the configuration file:
Ruijie# configure terminal
Ruijie(config)# vlan 888
Ruijie(config-vlan)# name test888
Ruijie(config-vlan)# end
Deleting a VLAN
You cannot delete the default VLAN (VLAN 1).
In the privileged mode, you can delete a VLAN by executing the following
command.
Ruijie(config)# no vlan vlan-id
Enter the VLAN ID that you want to delete.
Assigning Access Ports to a VLAN
If you assign a port to an inexistent VLAN, the switch will automatically create
that VLAN.
In the privileged mode, you can assign a port to a VLAN by executing the
following command.