From 333f2dcf56256c2f245a091c0d01ea60eb8b8c0d Mon Sep 17 00:00:00 2001 From: Luka Perkov Date: Thu, 18 Dec 2014 18:38:38 +0000 Subject: [PATCH] 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 --- .../base-files/etc/uci-defaults/02_network | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 <