[LEDE-DEV] ar71xx: Fix switch config on Mikrotik RB450/G

João Chaínho joaochainho at gmail.com
Wed Nov 16 09:17:57 PST 2016


This patch fixes switch initial config on Mikrotik RB450/G
Signed-off-by: João Chaínho <joaochainho at gmail.com>
---
diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network
index df87c96..daf9495 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -343,13 +343,13 @@ ar71xx_setup_interfaces()
        rb-450)
                ucidef_set_interfaces_lan_wan "eth1" "eth0"
                ucidef_add_switch "switch0" \
-                       "0:lan" "1:lan" "2:lan" "3:lan" "5 at eth1"
+                       "0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "5 at eth1"
                ;;
        rb-450g|\
        routerstation-pro)
                ucidef_set_interfaces_lan_wan "eth1" "eth0"
                ucidef_add_switch "switch0" \
-                       "0 at eth1" "2:lan:3" "3:lan:2" "4:lan:1"
+                       "0 at eth1" "1:lan:1" "2:lan:4" "3:lan:3" "4:lan:2"
                ;;
        rb-493g)
                ucidef_set_interfaces_lan_wan "eth0 eth1.1" "eth1.2"



More information about the Lede-dev mailing list