Configuration Guide Vol. 1


26.2.2 Configuring VLAN

Points to note

The example below shows how to create a VLAN. To create a new VLAN, specify the VLAN ID and VLAN type. If the VLAN type is omitted, a port VLAN is created. A VLAN ID list can also be used to perform batch setup of multiple VLANs.

The vlan command is used to switch to VLAN configuration mode. If a created VLAN is specified, only the mode is switched. The VLAN configuration mode allows VLAN parameters to be set.

Note that the following explains common settings that do not depend on the VLAN type. For details about port VLANs, protocol VLANs, and MAC VLANs, see the subsequent chapters.

Command examples

  1. (config)# vlan 10

    Creates a VLAN ID 10 ported VLAN and enters VLAN configuration mode for VLAN 10.

  2. (config-vlan)# name "PORT BASED VLAN 10"

    (config-vlan)# exit

    Sets the name of the created port VLAN 10 to PORT BASED VLAN 10.

  3. (config)# vlan 100-200

    Create VLAN ID 100~200 ported VLAN collectively. It also enters VLAN configuration mode of VLAN 100~200.

  4. (config-vlan)# state suspend

    Batch-shuts down the port VLAN of the created VLAN ID 100~200.