Commit 5acd1ed0be0d ("ramips: mt7621: fix Ubiquiti ER-X ports names and
MAC addresses") didn't only changed naming, but also removed WAN
functionality from eth0 port, which is not desired, so lets add it back.

Cc: Chuanhong Guo <[email protected]>
Cc: Adrian Schmutzler <[email protected]>
Cc: DENG Qingfang <[email protected]>
Fixes: 5acd1ed0be0d ("ramips: mt7621: fix Ubiquiti ER-X ports names and MAC 
addresses")
Signed-off-by: Petr Štetiar <[email protected]>
---

As in 
https://openwrt.org/toh/ubiquiti/ubiquiti_edgerouter_x_er-x_ka#switch_ports_for_vlans

 target/linux/ramips/mt7621/base-files/etc/board.d/02_network | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network 
b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
index ba9f7fb7b613..5b0f7ff2cdef 100755
--- a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
@@ -44,7 +44,7 @@ ramips_setup_interfaces()
                ucidef_set_interfaces_lan_wan "lan2 lan3 lan4 lan5" "wan"
                ;;
        ubnt,edgerouter-x)
-               ucidef_set_interface_lan "eth0 eth1 eth2 eth3 eth4"
+               ucidef_set_interface_lan_wan "eth1 eth2 eth3 eth4" "eth0"
                ;;
        ubnt,edgerouter-x-sfp)
                ucidef_set_interface_lan "eth0 eth1 eth2 eth3 eth4 eth5"

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to