summaryrefslogtreecommitdiff
path: root/target/linux/brcm63xx/base-files/etc/uci-defaults/02_network
blob: 087bce960d056f755feeea07e7494e3b08d0f1a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
#!/bin/sh
#
# Copyright (C) 2012 OpenWrt.org
#

[ -e /etc/config/network ] && exit 0

touch /etc/config/network

. /lib/functions/uci-defaults.sh
. /lib/brcm63xx.sh

ucidef_set_interface_loopback

case "$board_name" in

CVG834G_E15R3921 |\
RTA770BW |\
RTA770W |\
96348W3 |\
96358-502V |\
SPW500V)
	ucidef_set_interface_lan "eth0"
	;;

96338GW |\
96338W |\
96338W2_E7T |\
96348A-122 |\
96348W3 |\
CPVA642 |\
CT536_CT5621 |\
CT6373-1 |\
D-4P-W |\
"F@ST2604" |\
RTA1320_16M |\
V2110)
	ucidef_set_interface_lan "eth0"
	ucidef_add_switch "eth0" "1" "1"
	ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 4 5"
	;;

96348GW |\
96348GW-10 |\
96348GW-11 |\
96348GW-A |\
96358VW |\
96358VW2 |\
AGPF-S0 |\
"CPVA502+" |\
DV201AMR |\
DWV-S0 |\
"F@ST2404" |\
HW553 |\
MAGIC |\
RTA1025W_16 |\
V2500V_BB)
	ucidef_set_interfaces_lan_wan "eth1" "eth0"
	ucidef_add_switch "eth1" "1" "1"
	ucidef_add_switch_vlan "eth1" "1" "0 1 2 3 4 5"
	;;

AW4139 |\
AW4339U |\
HW556*)
	ucidef_set_interface_lan "eth0.1"
	ucidef_add_switch "eth0" "1" "1"
	ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 4 5t"
	;;

NB4-* |\
DVG3810BN)
	ucidef_set_interfaces_lan_wan "eth1.1" "eth0"
	ucidef_add_switch "eth1" "1" "1"
	ucidef_add_switch_vlan "eth1" "1" "0 1 2 3 4 5t"
	;;

96328avng |\
96328A-1241N |\
96328A-1441N1 |\
963281TAN |\
963281T_TEF |\
96368MVNgr |\
"F@ST2704V2")
	ucidef_set_interface_lan "eth0.1"
	ucidef_add_switch "eth0" "1" "1"
	ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 8t"
	;;

96368MVWG)
	ucidef_set_interface_lan "eth0.1"
	ucidef_add_switch "eth0" "1" "1"
	ucidef_add_switch_vlan "eth0" "1" "1 2 4 5 8t"
	;;

NB6)
	ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
	ucidef_add_switch "switch0" "1" "1"
	ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 9t"
	ucidef_add_switch_vlan "switch0" "2" "0 9t"
	;;

*)
	ucidef_set_interfaces_lan_wan "eth1" "eth0"
	;;

esac

uci commit network

exit 0