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)
22 ucidef_set_interface_lan "eth0 eth1"
26 ucidef_set_interfaces_lan_wan "eth0" "eth1"
27 ucidef_add_switch "switch0" "1" "1"
28 ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 4"
29 ucidef_add_switch_vlan "switch0" "2" "5 6"
33 ucidef_set_interfaces_lan_wan "eth1" "eth0"
34 ucidef_add_switch "switch0" "1" "1"
35 ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 4"
36 ucidef_add_switch_vlan "switch0" "2" "5 6"
42 ucidef_set_interfaces_lan_wan "eth0.1 eth1" "eth0.2"
43 ucidef_add_switch "eth0" "1" "1"
44 ucidef_add_switch_vlan "eth0" "1" "0t 2 3 4 5"
45 ucidef_add_switch_vlan "eth0" "2" "0t 1"
46 ucidef_add_switch "eth1" "1" "1"
47 ucidef_add_switch_vlan "eth1" "1" "0 1 2 3 4 5"
52 ucidef_set_interfaces_lan_wan "eth0.1" "eth1"
53 ucidef_add_switch "rtl8366s" "1" "1"
54 ucidef_add_switch_vlan "rtl8366s" "1" "0 1 2 3 5t"
58 ucidef_set_interfaces_lan_wan "eth0" "eth1"
59 ucidef_add_switch "rtl8366s" "1" "1"
60 ucidef_add_switch_vlan "rtl8366s" "0" "0 1 2 3 5"
65 ucidef_set_interfaces_lan_wan "eth1" "eth0"
66 ucidef_add_switch "switch0" "1" "1"
67 ucidef_add_switch_vlan "switch0" "1" "1 2 5"
71 ucidef_set_interfaces_lan_wan "eth1" "eth0"
72 ucidef_add_switch "switch0" "1" "1"
73 ucidef_add_switch_vlan "switch0" "1" "0 1 2"
77 ucidef_set_interfaces_lan_wan "eth1" "eth0"
78 ucidef_add_switch "eth1" "1" "1"
79 ucidef_add_switch_vlan "eth1" "1" "0 1 2 3 5"
84 ucidef_set_interfaces_lan_wan "eth1" "eth0"
85 ucidef_add_switch "switch0" "1" "1"
86 ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 4"
93 ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
94 ucidef_add_switch "switch0" "1" "1"
95 ucidef_add_switch_vlan "switch0" "1" "0t 2 3 4 5"
96 ucidef_add_switch_vlan "switch0" "2" "0t 1"
100 ucidef_set_interfaces_lan_wan "eth0 eth1.1" "eth1.2"
101 ucidef_add_switch "switch0" "1" "1"
102 ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 4"
103 ucidef_add_switch "switch1" "1" "1"
104 ucidef_add_switch_vlan "switch1" "1" "0t 1 2 3 4"
105 ucidef_add_switch_vlan "switch1" "2" "0t 5"
111 ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
112 ucidef_add_switch "eth0" "1" "1"
113 ucidef_add_switch_vlan "eth0" "1" "0t 1 3 4 5"
114 ucidef_add_switch_vlan "eth0" "2" "0t 2"
119 ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
120 ucidef_add_switch "eth0" "1" "1"
121 ucidef_add_switch_vlan "eth0" "1" "0t 2 3 4 5"
122 ucidef_add_switch_vlan "eth0" "2" "0t 1"
126 ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
127 ucidef_add_switch "rtl8366rb" "1" "1"
128 ucidef_add_switch_vlan "rtl8366rb" "1" "1 2 3 4 5t"
129 ucidef_add_switch_vlan "rtl8366rb" "2" "0 5t"
133 ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
134 ucidef_add_switch "switch0" "1" "1"
135 ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 9t"
136 ucidef_add_switch_vlan "switch0" "2" "0 9t"
141 ucidef_set_interface_raw "eth" "eth0"
142 ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
146 ucidef_set_interfaces_lan_wan "eth1" "eth0"
147 ucidef_add_switch "switch0" "1" "1"
148 ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 4"
152 ucidef_set_interface_lan "eth0"
153 ucidef_add_switch "switch0" "1" "1"
154 ucidef_add_switch_vlan "switch0" "1" "0 1 2"
158 ucidef_set_interfaces_lan_wan "eth0" "eth1"
159 ucidef_add_switch "eth0" "1" "1"
160 ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 4 5"
164 ucidef_set_interfaces_lan_wan "eth0.1" "eth1"
165 ucidef_add_switch "switch0" "1" "1"
166 ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 5t"
170 ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
171 ucidef_add_switch "switch0" "1" "1"
172 ucidef_add_switch_vlan "switch0" "1" "0t 1 2 3 4"
173 ucidef_add_switch_vlan "switch0" "2" "0t 5"
190 ucidef_set_interface_lan "eth0"
201 ucidef_set_interfaces_lan_wan "eth1" "eth0"
226 ucidef_set_interfaces_lan_wan "eth0" "eth1"
227 ucidef_add_switch "eth0" "1" "1"
228 ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 4"
232 ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
233 ucidef_add_switch "eth0" "1" "1"
234 ucidef_add_switch_vlan "eth0" "1" "0t 2 3 4 5"
235 ucidef_add_switch_vlan "eth0" "2" "0t 1"
239 ucidef_set_interface_lan "eth0"
240 ucidef_add_switch "eth0" "1" "1"
241 ucidef_add_switch_vlan "eth0" "1" "0 1 2 3"
245 ucidef_set_interfaces_lan_wan "eth0" "eth1"
246 ucidef_add_switch "eth0" "1" "1"
247 ucidef_add_switch_vlan "eth0" "1" "0 2 3"
251 ucidef_set_interfaces_lan_wan "eth0" "eth1"