-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathopenwrt-access-point-dir600-b
173 lines (153 loc) · 4.14 KB
/
openwrt-access-point-dir600-b
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
# DIR600 B1
cat <<EOF > /etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd38:5c1e:16c3::/48'
config interface 'lan'
option type 'bridge'
option ifname 'eth0.1'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option ipaddr '192.168.1.20'
option gateway '192.168.1.1'
option dns '208.67.222.222 208.67.220.220'
config interface 'wan'
option ifname 'eth0.2'
option proto 'dhcp'
option auto '0'
config route
option interface 'lan'
option target '0.0.0.0'
option netmask '0.0.0.0'
option gateway '192.168.1.1'
config device 'lan_dev'
option name 'eth0.1'
option macaddr '1c:af:f7:49:41:0a'
config device 'wan_dev'
option name 'eth0.2'
option macaddr '1c:af:f7:49:41:0b'
config switch
option name 'rt305x'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'rt305x'
option vlan '1'
option ports '0 1 2 3 5 6t'
config switch_vlan
option device 'rt305x'
option vlan '2'
option ports '4 6t'
EOF
cat <<EOF > /etc/config/dhcp
config dhcp 'lan'
option interface 'lan'
option ignore '1'
EOF
/etc/init.d/firewall disable
/etc/init.d/firewall stop
/etc/init.d/dnsmasq disable
/etc/init.d/dnsmasq stop
#/etc/init.d/odhcp disable
#/etc/init.d/odhcp stop
# wireless setup
cat <<EOF > /etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option hwmode '11g'
option path 'platform/10180000.wmac'
option htmode 'HT20'
option channel '3'
option country '00'
option legacy_rates '1'
config wifi-iface 'default_radio0'
option device 'radio0'
option network 'lan'
option mode 'ap'
option ssid 'OpenWrtD-Link'
option encryption 'psk2'
option key 'password'
EOF
# installed packages
# opkg list-installed
base-files - 192-r7258-5eb055306f
busybox - 1.28.4-2
dnsmasq - 2.80-1
dropbear - 2017.75-7.1
firewall - 2018-08-13-1c4d5bcd-1
fstools - 2018-04-16-e2436836-1
fwtool - 1
hostapd-common - 2018-05-21-62566bc2-5
ip6tables - 1.6.2-1
iptables - 1.6.2-1
iw-full - 4.14-1
jshn - 2018-07-25-c83a84af-2
jsonfilter - 2018-02-04-c7e938d6-1
kernel - 4.14.63-1-dc5bce12ec13037c5b0db4771928114c
kmod-cfg80211 - 4.14.63+2017-11-01-9
kmod-eeprom-93cx6 - 4.14.63-1
kmod-gpio-button-hotplug - 4.14.63-2
kmod-ip6tables - 4.14.63-1
kmod-ipt-conntrack - 4.14.63-1
kmod-ipt-core - 4.14.63-1
kmod-ipt-nat - 4.14.63-1
kmod-ipt-offload - 4.14.63-1
kmod-leds-gpio - 4.14.63-1
kmod-lib-crc-ccitt - 4.14.63-1
kmod-lib-crc-itu-t - 4.14.63-1
kmod-mac80211 - 4.14.63+2017-11-01-9
kmod-nf-conntrack - 4.14.63-1
kmod-nf-conntrack6 - 4.14.63-1
kmod-nf-flow - 4.14.63-1
kmod-nf-ipt - 4.14.63-1
kmod-nf-ipt6 - 4.14.63-1
kmod-nf-nat - 4.14.63-1
kmod-nf-reject - 4.14.63-1
kmod-nf-reject6 - 4.14.63-1
kmod-ppp - 4.14.63-1
kmod-pppoe - 4.14.63-1
kmod-pppox - 4.14.63-1
kmod-rt2800-lib - 4.14.63+2017-11-01-9
kmod-rt2800-mmio - 4.14.63+2017-11-01-9
kmod-rt2800-soc - 4.14.63+2017-11-01-9
kmod-rt2x00-lib - 4.14.63+2017-11-01-9
kmod-rt2x00-mmio - 4.14.63+2017-11-01-9
kmod-slhc - 4.14.63-1
libblobmsg-json - 2018-07-25-c83a84af-2
libc - 1.1.19-1
libgcc - 7.3.0-1
libip4tc - 1.6.2-1
libip6tc - 1.6.2-1
libjson-c - 0.12.1-2
libjson-script - 2018-07-25-c83a84af-2
libnl-tiny - 0.1-5
libpthread - 1.1.19-1
libubox - 2018-07-25-c83a84af-2
libubus - 2018-10-06-221ce7e7-1
libuci - 2018-08-11-4c8b4d6e-1
libuclient - 2018-11-24-3ba74ebc-1
libxtables - 1.6.2-1
logd - 2018-02-14-128bc35f-2
mtd - 23
netifd - 2018-11-19-4b83102d-2
odhcp6c - 2018-07-14-67ae6a71-15
odhcpd-ipv6only - 1.15-3
openwrt-keyring - 2018-05-18-103a32e9-1
opkg - 2019-01-18-7708a01a-1
ppp - 2.4.7-12
ppp-mod-pppoe - 2.4.7-12
procd - 2018-03-28-dfb68f85-1
swconfig - 11
ubox - 2018-02-14-128bc35f-2
ubus - 2018-10-06-221ce7e7-1
ubusd - 2018-10-06-221ce7e7-1
uci - 2018-08-11-4c8b4d6e-1
uclient-fetch - 2018-11-24-3ba74ebc-1
usign - 2015-07-04-ef641914-1
wireless-regdb - 2017-10-20-4343d359
wpad-mini - 2018-05-21-62566bc2-5