From ec9a0f898a67d5218935da87dabc32ede960f4e7 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 SVN-Revision: 43750 --- .../kirkwood/base-files/etc/uci-defaults/02_network | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'target/linux/kirkwood/base-files') 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 bc7e793..5b79687 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 <