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"
28 ucidef_set_interfaces_lan_wan "eth0.1 eth1" "eth0.2"
29 ucidef_add_switch "eth0" "1" "1"
30 ucidef_add_switch_vlan "eth0" "1" "0t 2 3 4 5"
31 ucidef_add_switch_vlan "eth0" "2" "0t 1"
32 ucidef_add_switch "eth1" "1" "1"
33 ucidef_add_switch_vlan "eth1" "1" "0 1 2 3 4 5"
38 ucidef_set_interfaces_lan_wan "eth0.1" "eth1"
39 ucidef_add_switch "rtl8366s" "1" "1"
40 ucidef_add_switch_vlan "rtl8366s" "1" "0 1 2 3 5t"
44 ucidef_set_interfaces_lan_wan "eth0" "eth1"
45 ucidef_add_switch "rtl8366s" "1" "1"
46 ucidef_add_switch_vlan "rtl8366s" "0" "0 1 2 3 5"
51 ucidef_set_interfaces_lan_wan "eth1" "eth0"
52 ucidef_add_switch "switch0" "1" "1"
53 ucidef_add_switch_vlan "switch0" "1" "1 2 5"
57 ucidef_set_interfaces_lan_wan "eth1" "eth0"
58 ucidef_add_switch "eth1" "1" "1"
59 ucidef_add_switch_vlan "eth1" "1" "0 1 2 3 5"
64 ucidef_set_interfaces_lan_wan "eth1" "eth0"
65 ucidef_add_switch "switch0" "1" "1"
66 ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 4"
73 ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
74 ucidef_add_switch "switch0" "1" "1"
75 ucidef_add_switch_vlan "switch0" "1" "0t 2 3 4 5"
76 ucidef_add_switch_vlan "switch0" "2" "0t 1"
80 ucidef_set_interfaces_lan_wan "eth0 eth1.1" "eth1.2"
81 ucidef_add_switch "switch0" "1" "1"
82 ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 4"
83 ucidef_add_switch "switch1" "1" "1"
84 ucidef_add_switch_vlan "switch1" "1" "0t 1 2 3 4"
85 ucidef_add_switch_vlan "switch1" "2" "0t 5"
91 ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
92 ucidef_add_switch "eth0" "1" "1"
93 ucidef_add_switch_vlan "eth0" "1" "0t 1 3 4 5"
94 ucidef_add_switch_vlan "eth0" "2" "0t 2"
99 ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
100 ucidef_add_switch "eth0" "1" "1"
101 ucidef_add_switch_vlan "eth0" "1" "0t 2 3 4 5"
102 ucidef_add_switch_vlan "eth0" "2" "0t 1"
106 ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
107 ucidef_add_switch "rtl8366rb" "1" "1"
108 ucidef_add_switch_vlan "rtl8366rb" "1" "1 2 3 4 5t"
109 ucidef_add_switch_vlan "rtl8366rb" "2" "0 5t"
113 ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
114 ucidef_add_switch "switch0" "1" "1"
115 ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 9t"
116 ucidef_add_switch_vlan "switch0" "2" "0 9t"
121 ucidef_set_interface_raw "eth" "eth0"
122 ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
126 ucidef_set_interfaces_lan_wan "eth1" "eth0"
127 ucidef_add_switch "switch0" "1" "1"
128 ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 4"
132 ucidef_set_interfaces_lan_wan "eth0" "eth1"
133 ucidef_add_switch "eth0" "1" "1"
134 ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 4 5"
138 ucidef_set_interfaces_lan_wan "eth0.1" "eth1"
139 ucidef_add_switch "switch0" "1" "1"
140 ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 5t"
156 ucidef_set_interface_lan "eth0"
167 ucidef_set_interfaces_lan_wan "eth1" "eth0"
191 ucidef_set_interfaces_lan_wan "eth0" "eth1"
192 ucidef_add_switch "eth0" "1" "1"
193 ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 4"
197 ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
198 ucidef_add_switch "eth0" "1" "1"
199 ucidef_add_switch_vlan "eth0" "1" "0t 2 3 4 5"
200 ucidef_add_switch_vlan "eth0" "2" "0t 1"
204 ucidef_set_interface_lan "eth0"
205 ucidef_add_switch "eth0" "1" "1"
206 ucidef_add_switch_vlan "eth0" "1" "0 1 2 3"
210 ucidef_set_interfaces_lan_wan "eth0" "eth1"
211 ucidef_add_switch "eth0" "1" "1"
212 ucidef_add_switch_vlan "eth0" "1" "0 2 3"
216 ucidef_set_interfaces_lan_wan "eth0" "eth1"