3 # Copyright (C) 2011 OpenWrt.org
6 [ -e /etc/config/network ] && exit 0
8 touch /etc/config/network
10 . /lib/functions/uci-defaults.sh
13 ucidef_set_interface_loopback
15 board=$(ar71xx_board_name)
20 ucidef_set_interface_lan "eth0 eth1"
24 ucidef_set_interfaces_lan_wan "eth0.1 eth1" "eth0.2"
25 ucidef_add_switch "eth0" "1" "1"
26 ucidef_add_switch_vlan "eth0" "1" "0t 2 3 4 5"
27 ucidef_add_switch_vlan "eth0" "2" "0t 1"
28 ucidef_add_switch "eth1" "1" "1"
29 ucidef_add_switch_vlan "eth1" "1" "0 1 2 3 4 5"
34 ucidef_set_interfaces_lan_wan "eth0.1" "eth1"
35 ucidef_add_switch "rtl8366s" "1" "1"
36 ucidef_add_switch_vlan "rtl8366s" "1" "0 1 2 3 5t"
40 ucidef_set_interfaces_lan_wan "eth0" "eth1"
41 ucidef_add_switch "rtl8366s" "1" "1"
42 ucidef_add_switch_vlan "rtl8366s" "0" "0 1 2 3 5"
47 ucidef_set_interfaces_lan_wan "eth1" "eth0"
48 ucidef_add_switch "switch0" "1" "1"
49 ucidef_add_switch_vlan "switch0" "1" "1 2 5"
53 ucidef_set_interfaces_lan_wan "eth1" "eth0"
54 ucidef_add_switch "eth1" "1" "1"
55 ucidef_add_switch_vlan "eth1" "1" "0 1 2 3 5"
60 ucidef_set_interfaces_lan_wan "eth1" "eth0"
61 ucidef_add_switch "switch0" "1" "1"
62 ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 4"
68 ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
69 ucidef_add_switch "switch0" "1" "1"
70 ucidef_add_switch_vlan "switch0" "1" "0t 2 3 4 5"
71 ucidef_add_switch_vlan "switch0" "2" "0t 1"
75 ucidef_set_interfaces_lan_wan "eth0 eth1.1" "eth1.2"
76 ucidef_add_switch "switch0" "1" "1"
77 ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 4"
78 ucidef_add_switch "switch1" "1" "1"
79 ucidef_add_switch_vlan "switch1" "1" "0t 1 2 3 4"
80 ucidef_add_switch_vlan "switch1" "2" "0t 5"
86 ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
87 ucidef_add_switch "eth0" "1" "1"
88 ucidef_add_switch_vlan "eth0" "1" "0t 1 3 4 5"
89 ucidef_add_switch_vlan "eth0" "2" "0t 2"
93 ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
94 ucidef_add_switch "rtl8366rb" "1" "1"
95 ucidef_add_switch_vlan "rtl8366rb" "1" "1 2 3 4 5t"
96 ucidef_add_switch_vlan "rtl8366rb" "2" "0 5t"
100 ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
101 ucidef_add_switch "switch0" "1" "1"
102 ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 9t"
103 ucidef_add_switch_vlan "switch0" "2" "0 9t"
108 ucidef_set_interface_raw "eth" "eth0"
109 ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
113 ucidef_set_interfaces_lan_wan "eth0" "eth1"
114 ucidef_add_switch "eth0" "1" "1"
115 ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 4 5"
119 ucidef_set_interfaces_lan_wan "eth0.1" "eth1"
120 ucidef_add_switch "switch0" "1" "1"
121 ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 5t"
134 ucidef_set_interface_lan "eth0"
145 ucidef_set_interfaces_lan_wan "eth1" "eth0"
168 ucidef_set_interfaces_lan_wan "eth0" "eth1"
169 ucidef_add_switch "eth0" "1" "1"
170 ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 4"
174 ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
175 ucidef_add_switch "eth0" "1" "1"
176 ucidef_add_switch_vlan "eth0" "1" "0t 2 3 4 5"
177 ucidef_add_switch_vlan "eth0" "2" "0t 1"
181 ucidef_set_interfaces_lan_wan "eth0" "eth1"