
Configuring VLANs
Sample VLAN Configuration
OmniSwitch AOS Release 7 Network Configuration Guide
June 2013
page 4-3
Sample VLAN Configuration
The following steps provide a quick tutorial to create VLAN 100. Also included are steps to define a
VLAN description, IP router interface, and static switch port assignments.
Note. Optional.
Creating a new VLAN involves specifying a VLAN ID that is not already assigned to an
existing VLAN. To determine if a VLAN already exists in the switch configuration, enter
show vlan
. If
VLAN 100 does not appear in the
show vlan
output, then it does not exist on the switch. For example:
-> show vlan
vlan type admin oper ip mtu name
-----+------+-----+-----+-----+-----+------------
1 std Ena Dis Dis 1500 VLAN 1
1
Create VLAN 100 with a description (for example, Finance IP Network) using the following
command:
-> vlan 100 name “Finance IP Network”
2
Define an IP interface using the following command to assign an IP host address of 21.0.0.10 to
VLAN 100 that enables forwarding of VLAN traffic to other subnets:
-> ip interface vlan_100_ip address 21.0.0.10 vlan 100
3
Assign switch ports 2 through 4 on slot 3 to VLAN 100 using the following command:
-> vlan 100 members port 3/2-4 untagged
Note
.
Optional
. To verify the VLAN 100 configuration, use the
command. For example:
-> show vlan 100
Name : Finance IP Network,
Type : Static Vlan,
Administrative State : Enabled,
Operational State : Disabled,
IP Router Port : 21.0.0.10 255.0.0.0 forward e2,
IP MTU : 1500
To verify that ports 3/2-4 were assigned to VLAN 100, use the
command. For
example:
-> show vlan 100 members
port type status
--------+---------+--------------
3/2 default inactive
3/3 default inactive
3/4
default inactive