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.
Note: This article only applies to the following models: EdgeRouter X and X-SFP, EdgePoint R6.
Table of Contents
1.1 With the device in factory default state, connect your computer to eth0. Make sure that your system has an IP in the 192.168.1.x subnet. (e.g. 192.168.1.11).
1.2 Enter https://192.168.1.1 in your web browser and log into the device using the default ubnt/ubnt username and password. (It is always good practice to change the default username and password to one of your choosing.)
2.1 Click on Actions > Configure for the switch0 interface on the Dashboard of the device.
2.2 Change Address to Manually define IP address.
2.3 Enter 192.168.2.1/24 (or similar) in the address field.
2.4 Check all of the ports with the exception of eth0.
Note: Finish the remaining steps to add eth0 to switch0.
3.1 Plug your computer into eth1, or any port which has been assigned to switch0 in Step 2.
3.2 Enter https://192.168.2.1 in your web browser and log into the device using your username and password. You will need to change your computer IP address to something in the same subnet such as 192.168.2.11.
Note: If you choose to assign switch0 a different address than this example you would enter that address to access the device.
4.1 Click on Actions > Configure for eth0.
4.2 Change address to No address.
4.3 Click Save.
5.1 Click Actions > Configure for switch0.
5.2 Check eth0 under Switch Ports.
5.3 Click Save.
This completes the steps to allow these devices to act as a layer 2 switch on all ports.
The following steps can be followed to configure the EdgeRouter as a Layer 2 Switch using the CLI Commands.
1. Connect to the router CLI.
2. Configure switch0 and add ports.
set interfaces switch switch0 switch-port interface eth1
set interfaces switch switch0 switch-port interface eth2
set interfaces switch switch0 switch-port interface eth3
set interfaces switch switch0 switch-port interface eth4
set interfaces switch switch0 address 192.168.2.1/24
3. Plug your computer into eth1 or any port which has been assigned to switch0.
4. Reconnect to the CLI for the device at 192.168.2.1.
5. Remove address from eth0 and assign eth0 to switch0.
delete interfaces ethernet eth0 address
set interfaces switch switch0 switch-port interface eth0
User Notes & Tips
These notes have been added thanks to user collaboration. Have anything to contribute? Click on the Give Feedback button below!
- QoS will only work in Router Mode.