[OpenWrt-Devel] [PATCH 2/2] mvebu: set default WRT1900AC switch config

Claudio Leite leitec at staticky.com
Sat Feb 21 20:20:21 EST 2015


This sets 'enable_vlan' and thus uses 802.1q
VLANs, but without tagging on either interface.

Signed-off-by: Claudio Leite <leitec at staticky.com>
---
 target/linux/mvebu/base-files/etc/uci-defaults/02_network | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/target/linux/mvebu/base-files/etc/uci-defaults/02_network b/target/linux/mvebu/base-files/etc/uci-defaults/02_network
index 8b1ed6a..9464f36 100644
--- a/target/linux/mvebu/base-files/etc/uci-defaults/02_network
+++ b/target/linux/mvebu/base-files/etc/uci-defaults/02_network
@@ -17,6 +17,9 @@ board=$(mvebu_board_name)
 case "$board" in
 armada-xp-mamba)
 	ucidef_set_interfaces_lan_wan "eth0" "eth1"
+	ucidef_add_switch "switch0" "1" "1"
+	ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 5"
+	ucidef_add_switch_vlan "switch0" "2" "4 6"
 	;;
 
 *)
-- 
2.1.4
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list