EdgeSwitch - Tagging and Untagging Port VLANs


Overview


This article describes the steps needed to create VLANs and define ports to be either untagged (access) or tagged (trunk) for specific VLANs.

NOTES & REQUIREMENTS:
Applicable to the latest EdgeSwitch firmware on all EdgeSwitch models. Please see the Related Articles below for more information.
 
Devices used in this article:

Port VLAN Configuration


Back to Top

topology.png

The UAP-AC-Pro will tag the wireless network with VLAN20. The access-point's management traffic is sent untagged and will be placed in VLAN10.


GUI: Access the EdgeSwitch Web UI on ES-1.

1. Navigate to the VLANs  vlans.png  to add VLAN10 and VLAN20 to the EdgeSwitch.

VLANs > New VLAN ID

newvlanid.png

2. Fill in 10 and select the  plus.png  icon to add the VLAN.

3. Fill in 20 and select the  plus.png  icon to add the VLAN.

4. Apply the changes. 

5. Under port 0/7 and port 0/8, change the default VLAN1 from Untagged (U) to Excluded (E).

6. Under port 0/7 and port 0/8, change VLAN10 and VLAN20 from Excluded (E) to Tagged (T).

7. Apply the configuration changes.


GUI: Access the EdgeSwitch Web UI on ES-2.

1. Navigate to the VLANs  vlans.png  to add VLAN10 and VLAN20 to the EdgeSwitch.

VLANs > New VLAN ID

newvlanid.png

2. Fill in 10 and select the  plus.png  icon to add the VLAN.

3. Fill in 20 and select the  plus.png  icon to add the VLAN.

4. Apply the changes. 

5. Under port 0/2, 0/6 and 0/8, change the default VLAN1 from Untagged (U) to Excluded (E).

6. Under port 0/2, change VLAN10 from Excluded (E) to Untagged (U).

7. Under port 0/6, change VLAN10 from Excluded (E) to Untagged (U) and  VLAN20 from Excluded (E) to Tagged (T).

8. Under port 0/8, change VLAN10 and VLAN20 from Excluded (E) to Tagged (T).

9. Apply the configuration changes.

NOTE: There is more information about the EdgeRouter configuration in the Router on a Stick article.

The above configuration can also be set using the CLI:

CLI: Access the EdgeSwitch Command Line Interface on both EdgeSwitches.
#ES-1
enable

vlan database
vlan 10,20
exit

configure

interface 0/7
description er-4
vlan tagging 10,20
vlan participation exclude 1
vlan participation include 10,20
exit

interface 0/8
description es-2
vlan tagging 10,20
vlan participation exclude 1
vlan participation include 10,20
exit

#ES-2
enable

vlan database
vlan 10,20
exit

configure

interface 0/2
description unifi-controller
vlan pvid 10
vlan participation exclude 1,20
vlan participation include 10
exit

interface 0/6
description uap-pro
vlan tagging 20
vlan pvid 10
vlan participation exclude 1
vlan participation include 10,20
exit

interface 0/8
description es-1
vlan tagging 10,20
vlan participation exclude 1
vlan participation include 10,20
exit

Related Articles


Back to Top

EdgeRouter - Router on a Stick

EdgeSwitch - How to Add VLANs

EdgeSwitch - Inter-VLAN Routing


We're sorry to hear that!