From e266a3e44f483e735d0d7ce81103d6cc6152e97e Mon Sep 17 00:00:00 2001 From: Luka Perkov Date: Thu, 18 Dec 2014 18:38:38 +0000 Subject: 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 --- .../kirkwood/base-files/etc/uci-defaults/02_network | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'target/linux/kirkwood/base-files/etc/uci-defaults/02_network') 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 <