Configuring VLANs Creating/Modifying VLANs
OmniSwitch AOS Release 8 Network Configuration Guide December 2017 page 4-5
Adding/Removing a VLAN
To add a VLAN to the switch configuration, enter vlan followed by a unique VLAN ID, an optional
administrative status, and an optional description. For example, the following command creates VLAN
755 with a description:
-> vlan 755 name “IP Finance Network”
By default, administrative status and Spanning Tree are enabled when the VLAN is created. The name
parameter for a VLAN is optional.
You can also specify a contiguous range of VLAN IDs by using a hyphen with the vlan command. For
example, the following commands create VLANs 10 through 15 and 100 through 105 on the switch:
-> vlan 10-15 name “Marketing Network”
-> vlan 100-105 name “Marketing Network”
To remove a VLAN from the switch configuration, use the no form of the vlan command.
-> no vlan 200
-> no vlan 100-105
-> no vlan 10-15
When a VLAN is deleted, any router interfaces defined for the VLAN are removed and all VLAN port
associations are dropped. If the VLAN deleted is the default VLAN for a port, the port returns to default
VLAN 1. If the VLAN deleted is not a default VLAN, then the ports are directly detached from the
VLAN. For more information about VLAN router interfaces, see “Configuring VLAN IP Interfaces” on
page 4-10.
To view a list of VLANs already configured on the switch, use the show vlan command. See “Verifying
the VLAN Configuration” on page 4-13 for more information.
Enabling/Disabling the VLAN Administrative Status
To enable or disable the administrative status for an existing VLAN, enter vlan followed by an existing
VLAN ID and either enable or disable.
-> vlan 7 admin-state disable
-> vlan 1 admin-state enable
When the administrative status for a VLAN is disabled, VLAN port assignments are retained but traffic is
not forwarded on these ports.
Modifying the VLAN Description
To change the description for a VLAN, enter vlan followed by an existing VLAN ID and the keyword
name followed by the new description. For example, the following command changes the description for
VLAN 455 to “Marketing IP Network”:
-> vlan 455 name “Marketing IP Network”
Note. Quotation marks are required if the description contains multiple words separated by spaces. If the
description consists of only one word or multiple words separated by another character, such as a hyphen,
then quotes are not required.