In this article the reader will learn the steps needed to configure an EdgeRouter X, X-SFP, or EdgePoint R6 as a Layer 2 switch with the option for the switch ports to be VLAN aware.
NOTES & REQUIREMENTS:
This article is applicable to the latest EdgeOS firmware and the following models: EdgeRouter X, EdgeRouter X-SFP, and EdgePoint R6.
The latest EdgeOS firmware includes a built-in Wizard labeled "Switch" to easily configure the EdgeRouter as a Layer 2 switch including the option to make the switch ports VLAN aware. We have included the manual method for those users running an older EdgeOS version. We recommend always updating to the newest firmware available.
Table of Contents
Switch Wizard Configuration (recommended)
GUI: Access the EdgeRouter Management Interface, and go to Wizards > Switch. Fill in the configuration as instructed below.
1. Management Access: By default the management IP will be obtained from DHCP, you may optionally set this to a static IP.
Management VLAN: unchecked
Management IP: DHCP
2. VLAN Aware
3. Switch Ports: The example settings below will enable the switch to be VLAN aware. In this example:
eth0: Devices will get an ip from VLAN 10 and have access to VLAN 20.
eth1: Devices will get an ip from VLAN 10 and have access to VLAN 20 and 30.
eth2: Devices will get an ip from VLAN 20 and have access to VLAN 10 and 30.
eth3-4: Devices will get an ip from VLAN 20 and have access to VLAN 10.
eth5: Uplink EdgeRouter gets an IP from VLAN 1 upstream and passes VLANs 10, 20, and 30.
The PVID (Port VLAN-id) and VID (VLAN-id) settings define whether a port is untagged (pvid) or tagged (vid) for a specific VLAN. Only a single value can be entered under PVID, whereas VID supports multiple values. A tagged port can also be configured with a value under PVID (using a different value than the one under VID). In this case the VLAN configured under PVID will become the native VLAN. In the example above, eth5 may be the uplink to a router where the EdgeRouter gets an IP from VLAN 1 and passes all traffic from VLANs 10, 20, and 30.
4. User Setup: It is important to update the default user password or create a new user with a unique password to protect your device.
Use Default User:
Create New Admin User:
Keep Existing Users:
Manual Configuration (older EdgeOS versions)
It is recommend to use the instructions outlined in the Switch Wizard Configuration section above to configure an EdgeRouter as a Layer 2 Switch. Below you will find the manual instructions to accomplish this on early firmware versions before the switch wizard was added. Click the title below to expand the full article.
Click here to expand full article about how to manually configure an EdgeRouter as a Layer 2 Switch for older EdgeOS versions.