From: luka Date: Thu, 18 Dec 2014 18:38:38 +0000 (+0000) Subject: kirkwood: set default EA4500 switch config X-Git-Url: http://git.ozo.com/?a=commitdiff_plain;h=cf0567e461d42d34a00c1b4a129526c6967266c9;p=openwrt-working-2016%2F.git kirkwood: set default EA4500 switch config This maps the LAN ports to eth0 and WAN port to eth1. Since there are two interfaces the 802.1q VLAN mode is unnecessary and left disabled. Port-based VLANs are used instead. Signed-off-by: Claudio Leite git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43750 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/target/linux/kirkwood/base-files/etc/uci-defaults/02_network b/target/linux/kirkwood/base-files/etc/uci-defaults/02_network index bc7e793db5..5b79687784 100644 --- a/target/linux/kirkwood/base-files/etc/uci-defaults/02_network +++ b/target/linux/kirkwood/base-files/etc/uci-defaults/02_network @@ -20,6 +20,19 @@ set network.lan6.reqprefix='no' EOF } +add_port_based_vlan() { + local device=$1 + local vlan=$2 + local ports=$3 + uci batch <