Ubiquiti Edgemax Edgerouter-X
quick & dirty hack 4 network equipments
Define one Bridge
configure
set interfaces bridge br2 address 10.1.1.1/24
set interfaces ethernet eth1 vif 100 bridge-group bridge br2
commit
save
Define VLAN 101,102,104 on Switch0 - VIF = Virtual Interface:
configure set interfaces switch switch0 vif 101 address 192.168.101.1/24
set interfaces switch switch0 vif 102 address 192.168.102.1/24set interfaces switch switch0 vif 103 address 192.168.103.1/24set interfaces switch switch0 vif 104 address 192.168.104.1/24commit exit
Add ETH2, ETH3 to Switch0:
configure set interfaces switch switch0 switch-port interface eth2 set interfaces switch switch0 switch-port interface eth3 commit
exit
Vlan104 Traffic will be encapsulated (with VLAN104 tag) on interfaces ETH2Ð3, but unecapsulated / access port
Bridge Ethernet ETH4:
configure
delete interfaces switch switch0 vif 104 address 192.168.104.1/24
set interface bridge br104 address 192.168.104.1/24
set interfaces ethernet eth4 bridge‐group bridge br104
set interface switch switch0 bridge‐group bridge br104
commit
exit