Page 7 | AlliedWare Plus™ OS How To Note: Switching
Basic VLAN and IP configuration
Basic VLAN and IP configuration
This section configures a switch in a simple four-VLAN network, shown in the following
figure.
In this network, VLANs 2-4 span two switches. The section configures the left-hand switch in
the above figure. This switch is connected to a second switch via port
1
.0.
1
.
For the complete script for this example, see
"Script for VLAN example" on page 26
.
Enter Global Configuration mode and enter the command:
awplus(config)#vlan database
This puts you into VLAN mode. To create the VLANs, enter the commands:
awplus(config-vlan)#vlan 2 name vlan2
awplus(config-vlan)#vlan 3 name vlan3
awplus(config-vlan)#vlan 4 name vlan4
The AlliedWare Plus OS automatically enables new VLANs, and therefore adds the following
line to the running-config:
vlan 2-4 state enable
1.
Create VLANs 2-4
Gateway:
192.168.1.254/24
vlan3
:
192.168.3.1/24
vlan2
:
192.168.2.1/24
1.0.3
1.0.2
1.0.4
vlan4
:
192.168.4.1/24
vlan1
:
192.168.1.1/24
port1.0.1
802.1Q trunked port:
vlan2, vlan3, vlan4
AlliedWare Plus
Switch
vlan2
vlan3
vlan4
vlans.eps