Page 8 | AlliedWare Plus™ OS How To Note: Switching
Basic VLAN and IP configuration
VLANs are configured as an attribute of switch ports. This means that you go into Interface
Configuration mode to configure the switch ports, and specify the VLANs you want to
associate with each switch port.
From Global Configuration mode, enter Interface Configuration mode by entering the
command:
awplus(config)#interface port1.0.1
Traffic for all three VLANs goes over port
1
.0.
1
, so next make
this port an 802.
1
Q trunk, by entering the command:
awplus(config-if)#switchport mode trunk
Finally, associate the port with the appropriate VLANs:
awplus(config-if)#switchport trunk allowed
vlan add 2-4
Note that by default the port’s native VLAN is VLAN
1
. The
native VLAN is the VLAN that the port uses for untagged
packets.
Change to configuring port
1
.0.2 by entering the command:
awplus(config-if)#interface port1.0.2
Associate vlan2 with the port, by entering the command:
awplus(config-if)#switchport access vlan 2
Ports in access mode send and receive untagged packets.
Similarly, associate vlan3 with port
1
.0.3, and vlan4 with port
1
.0.4, by entering the commands:
awplus(config-if)#interface port1.0.3
awplus(config-if)#switchport access vlan 3
awplus(config-if)#interface port1.0.4
awplus(config-if)#switchport access vlan 4
2. Associate the VLANs with port
1
.0.
1
3. Associate VLANs with ports
1
.0.2-
1
.0.3
Tip:
In the AlliedWare OS, we
add ports to VLANs as
tagged ports. In the
AlliedWare Plus OS, we
associate VLANs with a
trunk mode port. The port
behaviour is the same.
Tip:
You do not have to leave
Interface Configuration
mode to change interfaces.