Readers will learn how to bridge eth2,3 and 4 (switch0) with eth1 on the EdgeRouter-POE (5 Port).
Generally, we do not recommend bridging ports on routers, as it will reduce the overall throughput compared to non-bridged configurations. If you require more than 3 LAN ports on the same layer 2 network, we strongly advise using a switch as it is the right tool for the job. That being said, bridging may be acceptable in some environments.
The following assumes your ER-POE is set to defaults and you are connected via SSH on eth0 (192.168.1.1)
We need to make sure eth2,3 & 4 are members of swith0.
set interfaces switch switch0 switch-port interface eth2
set interfaces switch switch0 switch-port interface eth3
set interfaces switch switch0 switch-port interface eth4
Now we can create a new bridge (br0), add switch0 (eth2,3,4) and eth1 as bridge-group members and assign the new bridge interface an IP. (e.g. 192.168.2.1/24)
set interfaces bridge br0
set interfaces bridge br0 address 192.168.2.1/24
set interfaces switch switch0 bridge-group bridge br0
set interfaces ethernet eth1 bridge-group bridge br0
From here you can configure your computer with an IP address in the 192.168.2.0/24 address space( e.g. 192.168.2.10) and plug into any of the ports that are members of br0. Alternatively, you can follow the this CLI DHCP server article so you can obtain an IP address automatically via DHCP when connecting to eth1, 2, 3 & 4.