root/trunk/freewrt/package/Config.in.network

Revision 3961, 11.7 kB (checked in by tg, 2 years ago)

according to the following page, the WRT54GL
has reversed switch ports as well
http://oldwiki.openwrt.org/OpenWrtDocs(2f)Hardware(2f)Linksys(2f)WRT54GL.html#head-171afa08a922357bce0fa6d2fb54a90f3dbf580c

Line 
1 config FWRT_IPV6
2         bool "Enable IPv6 support"
3         default n
4         select FWRT_KPACKAGE_KMOD_IPV6
5         help
6           Enable basic IPv6 support (kmod-ipv6) and
7           make the IPv6 support options in packages visible.
8
9 comment "Target Network Configuration"
10
11 menu "LAN"
12 config FWRT_NETWORK_LAN
13         bool "Activate LAN interface"
14         default y
15
16
17 config FWRT_NETWORK_LAN_INTERFACE
18         string "LAN interface name"
19         default "eth0.0" if FWRT_LINUX_2_4_BRCM_ASUS_WL500G_DELUXE
20         default "eth0.0" if FWRT_LINUX_2_4_BRCM_ASUS_WL500G_PREMIUM
21         default "eth0.0" if FWRT_LINUX_2_6_BRCM_ASUS_WL500G_PREMIUM
22         default "eth0.0" if FWRT_LINUX_2_4_BRCM_LINKSYS_WRT54G
23         default "eth0.0" if FWRT_LINUX_2_4_BRCM_LINKSYS_WRT54GS
24         default "eth0.0" if FWRT_LINUX_2_4_BRCM_LINKSYS_WRT54GS_4
25         default "eth0.0" if FWRT_LINUX_2_4_BRCM_LINKSYS_WRT54G3G
26         default "eth0.0" if FWRT_LINUX_2_4_BRCM_NETGEAR_WGT634U
27         default "eth0"
28         depends on FWRT_NETWORK_LAN
29         help
30          LAN interface name
31
32 config FWRT_NETWORK_LAN_LLADDR
33         string "LAN port link-layer (MAC) address"
34         default ""
35         depends on FWRT_NETWORK_LAN
36         help
37           Change the link-layer (MAC) address for the LAN port here,
38           or set to an empty string to not change it at startup.
39
40 config FWRT_NETWORK_LAN_SWITCH_PORTS
41         string "Switch ports used for LAN"
42         default "0 1 2 3 5*" if FWRT_LINUX_2_4_BRCM_LINKSYS_WRT54GS_4
43         default "0 1 2 3 5*" if FWRT_LINUX_2_4_BRCM_NETGEAR_WGT634U
44         default "0 1 2 3 5*" if FWRT_DEVICE_BRCM_LINKSYS_WRT54G
45         default "1 2 3 4 5*"
46         depends on FWRT_LINUX_2_4_BRCM_ASUS_WL500G_DELUXE || \
47                 FWRT_LINUX_2_4_BRCM_ASUS_WL500G_PREMIUM || \
48                 FWRT_LINUX_2_6_BRCM_ASUS_WL500G_PREMIUM || \
49                 FWRT_LINUX_2_4_BRCM_LINKSYS_WRT54G || \
50                 FWRT_LINUX_2_4_BRCM_LINKSYS_WRT54GS || \
51                 FWRT_LINUX_2_4_BRCM_LINKSYS_WRT54GS_4 || \
52                 FWRT_LINUX_2_4_BRCM_LINKSYS_WRT54G3G || \
53                 FWRT_LINUX_2_4_BRCM_NETGEAR_WGT634U
54         depends on FWRT_NETWORK_LAN
55         help
56          Switch ports used for logical LAN.
57          5 is the internal switch port. Exact one asterisk *
58          is needed in one of the switch configurations.
59
60 config FWRT_NETWORK_LANBRIDGE
61         bool "Prepare bridge LAN<->WLAN"
62         default n
63         depends on FWRT_NETWORK_LAN
64         select FWRT_NETWORK_WLAN
65         select FWRT_PACKAGE_BRIDGE_UTILS
66
67 config FWRT_NETWORK_LANBRIDGE_INTERFACE
68         string "Bridge interface name"
69         default "br0"
70         depends on FWRT_NETWORK_LANBRIDGE
71         help
72           Bridge interface name
73
74 choice
75 prompt "IP configuration"
76 depends on FWRT_NETWORK_LAN
77 config FWRT_NETWORK_LAN_PROTO_STATIC
78         bool "Static IP configuration"
79         help
80          Protocol used for the LAN interface
81
82 config FWRT_NETWORK_LAN_PROTO_DHCP
83         bool "DHCP"
84         help
85          Protocol used for the LAN interface
86 endchoice
87
88 config FWRT_NETWORK_LANBRIDGE_IP_ADDRESS
89         string "Bridge IP address"
90         default "192.168.1.1"
91         depends on FWRT_NETWORK_LAN_PROTO_STATIC
92         depends on FWRT_NETWORK_LANBRIDGE
93         help
94          Bridge IP address
95
96 config FWRT_NETWORK_LANBRIDGE_IP_NETMASK
97         string "Bridge IP netmask"
98         default "255.255.255.0"
99         depends on FWRT_NETWORK_LAN_PROTO_STATIC
100         depends on FWRT_NETWORK_LANBRIDGE
101         help
102          Bridge IP netmask
103
104 config FWRT_NETWORK_LAN_IP_ADDRESS
105         string "LAN IP address"
106         default "192.168.1.1"
107         depends on FWRT_NETWORK_LAN_PROTO_STATIC
108         depends on ! FWRT_NETWORK_LANBRIDGE
109         help
110          LAN IP address
111
112 config FWRT_NETWORK_LAN_IP_NETMASK
113         string "LAN IP netmask"
114         default "255.255.255.0"
115         depends on FWRT_NETWORK_LAN_PROTO_STATIC
116         depends on ! FWRT_NETWORK_LANBRIDGE
117         help
118          LAN IP netmask
119 endmenu
120
121 menu "WAN"
122         depends on !FWRT_DEVICE_ATHEROS
123 config FWRT_NETWORK_WAN
124         bool "Activate WAN interface"
125         default y
126
127 config FWRT_NETWORK_WAN_INTERFACE
128         string "WAN interface name"
129         default "eth0.1" if FWRT_LINUX_2_4_BRCM_ASUS_WL500G_DELUXE
130         default "eth0.1" if FWRT_LINUX_2_4_BRCM_ASUS_WL500G_PREMIUM
131         default "eth0.1" if FWRT_LINUX_2_6_BRCM_ASUS_WL500G_PREMIUM
132         default "eth0.1" if FWRT_LINUX_2_4_BRCM_LINKSYS_WRT54G
133         default "eth0.1" if FWRT_LINUX_2_4_BRCM_LINKSYS_WRT54GS
134         default "eth0.1" if FWRT_LINUX_2_4_BRCM_LINKSYS_WRT54GS_4
135         default "eth0.1" if FWRT_LINUX_2_4_BRCM_LINKSYS_WRT54G3G
136         default "eth0.1" if FWRT_LINUX_2_4_BRCM_NETGEAR_WGT634U
137         default "eth1"
138         depends on FWRT_NETWORK_WAN
139         help
140          WAN interface name
141
142 config FWRT_NETWORK_WAN_LLADDR
143         string "WAN port link-layer (MAC) address"
144         default ""
145         depends on FWRT_NETWORK_WAN
146         help
147           Change the link-layer (MAC) address for the WAN port here,
148           or set to an empty string to not change it at startup.
149
150 config FWRT_NETWORK_WAN_SWITCH_PORTS
151         string "Switch ports used for WAN"
152         default "4 5" if FWRT_LINUX_2_4_BRCM_LINKSYS_WRT54GS_4
153         default "4 5" if FWRT_LINUX_2_4_BRCM_NETGEAR_WGT634U
154         default "4 5" if FWRT_DEVICE_BRCM_LINKSYS_WRT54G
155         default "0 5"
156         depends on FWRT_LINUX_2_4_BRCM_ASUS_WL500G_DELUXE || \
157                 FWRT_LINUX_2_4_BRCM_ASUS_WL500G_PREMIUM || \
158                 FWRT_LINUX_2_6_BRCM_ASUS_WL500G_PREMIUM || \
159                 FWRT_LINUX_2_4_BRCM_LINKSYS_WRT54G || \
160                 FWRT_LINUX_2_4_BRCM_LINKSYS_WRT54GS || \
161                 FWRT_LINUX_2_4_BRCM_LINKSYS_WRT54GS_4 || \
162                 FWRT_LINUX_2_4_BRCM_LINKSYS_WRT54G3G || \
163                 FWRT_LINUX_2_4_BRCM_NETGEAR_WGT634U
164         depends on FWRT_NETWORK_WAN
165         help
166           Switch ports used for WAN.
167
168 choice
169 prompt "IP configuration"
170 depends on FWRT_NETWORK_WAN
171 config FWRT_NETWORK_WAN_PROTO_DHCP
172         bool "DHCP"
173         help
174          Automatic interface configuration via DHCP client.
175
176 config FWRT_NETWORK_WAN_PROTO_STATIC
177         bool "static IP configuration"
178         help
179          static interface configuration.
180 endchoice
181
182 config FWRT_NETWORK_WAN_IP_ADDRESS
183         string "WAN IP address"
184         default "10.0.0.23"
185         depends on FWRT_NETWORK_WAN_PROTO_STATIC
186         help
187          IP address
188
189 config FWRT_NETWORK_WAN_IP_NETMASK
190         string "WAN IP netmask"
191         default "255.255.255.0"
192         depends on FWRT_NETWORK_WAN_PROTO_STATIC
193         help
194          IP netmask
195
196 config FWRT_NETWORK_WAN_IP_GATEWAY
197         string "WAN IP gateway"
198         default "10.0.0.1"
199         depends on FWRT_NETWORK_WAN_PROTO_STATIC
200         help
201          IP gateway
202 endmenu
203
204 menu "Wireless LAN"
205 config FWRT_NETWORK_WLAN
206         bool "Activate WLAN interface"
207         default n
208         help
209          Activate Wireless LAN
210
211 config FWRT_NETWORK_WLAN_TYPE
212         string "Wireless card type"
213         default "atheros" if FWRT_LINUX_2_4_BRCM_NETGEAR_WGT634U || FWRT_DEVICE_ATHEROS
214         default "broadcom"
215         depends on FWRT_NETWORK_WLAN
216         help
217          Wireless chipset used, needed for correct ifupdown scripts to
218          configure wireless.
219
220 config FWRT_NETWORK_WLAN_INTERFACE
221         string "WLAN interface name"
222         default "ath0" if FWRT_LINUX_2_4_BRCM_NETGEAR_WGT634U || FWRT_DEVICE_ATHEROS
223         default "wl0"
224         depends on FWRT_NETWORK_WLAN
225         help
226          Wireless LAN interface name
227
228 config FWRT_NETWORK_WLAN_LLADDR
229         string "WLAN port link-layer (MAC) address"
230         default ""
231         depends on FWRT_NETWORK_WLAN
232         help
233           Change the link-layer (MAC) address for the WLAN port here,
234           or set to an empty string to not change it at startup.
235
236 config FWRT_NETWORK_WLAN_IP_ADDRESS
237         string "WLAN IP address"
238         default "192.168.2.1"
239         depends on ! FWRT_NETWORK_LANBRIDGE
240         depends on FWRT_NETWORK_WLAN
241         help
242          WLAN IP address
243
244 config FWRT_NETWORK_WLAN_IP_NETMASK
245         string "WLAN IP netmask"
246         default "255.255.255.0"
247         depends on ! FWRT_NETWORK_LANBRIDGE
248         depends on FWRT_NETWORK_WLAN
249         help
250          WLAN IP netmask
251
252 config FWRT_NETWORK_WLAN_SET_BINTVAL
253         bool "Manually set the Beacon interval"
254         depends on FWRT_NETWORK_WLAN_TYPE = "atheros"
255         default n
256         help
257           Enable this to alter the default interval at which
258           beacons are sent out
259
260 config FWRT_NETWORK_WLAN_BINTVAL
261         int "Beacon interval"
262         depends on FWRT_NETWORK_WLAN_SET_BINTVAL
263         default 100
264         help
265           enter the new Beacon interval in milliseconds here.
266
267 choice
268 prompt "Wireless mode"
269 depends on FWRT_NETWORK_WLAN
270
271 config FWRT_NETWORK_WLAN_MODE_AP
272         bool "Accesspoint Mode (AP)"
273         help
274          Accesspoint mode
275
276 config FWRT_NETWORK_WLAN_MODE_STA
277         bool "Client mode (STA)"
278         help
279          Client mode
280 endchoice
281
282 config FWRT_NETWORK_WLAN_ESSID
283         string "network name (ESSID)"
284         depends on FWRT_NETWORK_WLAN
285         default "FreeWRT"
286         help
287          Wireless network name
288
289 config FWRT_NETWORK_WLAN_CHANNEL
290         string "wireless channel"
291         depends on FWRT_NETWORK_WLAN
292         default "11"
293         help
294          Wireless channel 1-11 (1-13)
295
296 config FWRT_NETWORK_WLAN_COUNTRY
297         string "country for wireless channel"
298         depends on FWRT_NETWORK_WLAN
299         default "DE"
300         help
301          Wireless channel settings are country specific
302
303
304 menu "wireless security settings"
305 depends on FWRT_NETWORK_WLAN
306
307 choice
308 prompt "security"
309 depends on FWRT_NETWORK_WLAN
310 config FWRT_NETWORK_WLAN_SECURITY_NONE
311         bool "No authorisation"
312         help
313          No authorisation
314
315 config FWRT_NETWORK_WLAN_SECURITY_WEP
316         bool "wep"
317         help
318          WEP key
319
320 config FWRT_NETWORK_WLAN_SECURITY_WPA_PSK
321         bool "wpa-psk"
322         help
323          WPA with preshared key
324
325 config FWRT_NETWORK_WLAN_SECURITY_802.1X
326         bool "802.1x"
327         help
328          IEEE 802.1X authentication
329
330 endchoice
331
332 choice
333 prompt "authorisation"
334 depends on !FWRT_NETWORK_WLAN_SECURITY_NONE
335
336 config FWRT_NETWORK_WLAN_AUTORIZATION_OPEN
337         bool "open"
338         depends on FWRT_NETWORK_WLAN_SECURITY_WEP || FWRT_NETWORK_WLAN_SECURITY_802.1X
339         help
340          Only Open System Authentication
341
342 config FWRT_NETWORK_WLAN_AUTORIZATION_SHARED
343         bool "shared"
344         depends on FWRT_NETWORK_WLAN_SECURITY_WEP || FWRT_NETWORK_WLAN_SECURITY_802.1X
345         help
346          Only Shared System Authentication
347
348 config FWRT_NETWORK_WLAN_AUTORIZATION_OPEN_AND_SHARED
349         bool "open+shared"
350         depends on FWRT_NETWORK_WLAN_SECURITY_WEP
351         help
352          Both Open System and Shared Key Authentication
353
354 config FWRT_NETWORK_WLAN_AUTORIZATION_PSK
355         bool "psk"
356         depends on FWRT_NETWORK_WLAN_SECURITY_WPA_PSK
357         help
358           WPA PSK
359
360 config FWRT_NETWORK_WLAN_AUTORIZATION_PSK2
361         bool "psk2"
362         depends on FWRT_NETWORK_WLAN_SECURITY_WPA_PSK
363         help
364           WPA2 PSK
365
366 config FWRT_NETWORK_WLAN_AUTORIZATION_PSK_PSK2
367         bool "psk psk2"
368         depends on FWRT_NETWORK_WLAN_SECURITY_WPA_PSK
369         help
370           WPA PSK and WPA2 PSK
371
372 config FWRT_NETWORK_WLAN_AUTORIZATION_WPA
373         bool "wpa"
374         depends on FWRT_NETWORK_WLAN_SECURITY_802.1X
375         help
376           WPA with RADIUS
377
378 config FWRT_NETWORK_WLAN_AUTORIZATION_WPA2
379         bool "wpa2"
380         depends on FWRT_NETWORK_WLAN_SECURITY_802.1X
381         help
382           WPA2 with RADIUS
383
384 config FWRT_NETWORK_WLAN_AUTORIZATION_WPA_AND_WPA2
385         bool "wpa wpa2"
386         depends on FWRT_NETWORK_WLAN_SECURITY_802.1X
387         help
388           WPA and WPA2
389
390 endchoice
391
392 choice
393 prompt "encryption"
394 depends on FWRT_NETWORK_WLAN_SECURITY_WPA_PSK || FWRT_NETWORK_WLAN_SECURITY_802.1X
395
396 config FWRT_NETWORK_WLAN_ENCRYPTION_TKIP
397         bool "tkip"
398         help
399           RC4 encryption
400
401 config FWRT_NETWORK_WLAN_ENCRYPTION_AES
402         bool "aes"
403         help
404           AES encryption
405
406 config FWRT_NETWORK_WLAN_ENCRYPTION_AES_TKIP
407         bool "aes+tkip"
408         help
409           Support for RC4 and AES encryption
410
411 config FWRT_NETWORK_WLAN_ENCRYPTION_WEP
412         bool "wep"
413         depends on FWRT_NETWORK_WLAN_SECURITY_802.1X
414         help
415           RC4 encryption (static)
416
417 endchoice
418
419
420 choice
421 prompt "eap-type"
422 depends on FWRT_NETWORK_WLAN_SECURITY_802.1X
423
424 config FWRT_NETWORK_WLAN_EAP_TLS
425         bool "tls"
426         help
427           Transport Layer Security
428
429 config FWRT_NETWORK_WLAN_EAP_TTLS
430         bool "ttls"
431         help
432           Tunnelled TLS
433
434 config FWRT_NETWORK_WLA_EAP_PEAP
435         bool "peap"
436         help
437           Protected EAP
438
439 config FWRT_NETWORK_WLAN_EAP_LEAP
440         bool "leap"
441         help
442           Cisco Wireless
443
444 endchoice
445
446 menu "radius settings"
447 depends on FWRT_NETWORK_WLAN_SECURITY_802.1X
448
449 config FWRT_NETWORK_WLAN_RADIUS_IPADDR
450         string "radius ipaddr"
451         default "0.0.0.0"
452         help
453           Transport Layer Security
454
455 config FWRT_NETWORK_WLAN_RADIUS_PORT
456         string "radius port"
457         default "1812"
458         help
459           RADIUS-Port# to connect
460
461 config FWRT_NETWORK_WLAN_RADIUS_KEY
462         string "radius key"
463         help
464           Shared Secret for connection to the Radius server
465
466 endmenu
467
468 config FWRT_NETWORK_WLAN_WEP_KEY
469         string "wep key"
470         depends on FWRT_NETWORK_WLAN_SECURITY_WEP
471         help
472           wep key to use
473
474 config FWRT_NETWORK_WLAN_WPA_KEY
475         string "wpa key"
476         depends on FWRT_NETWORK_WLAN_SECURITY_WPA_PSK
477         help
478           wpa key to use (8 characters or more)
479
480 config FWRT_NETWORK_WLAN_WPA_GTK_REKEY
481         string "Rekeying interval in seconds"
482         depends on FWRT_NETWORK_WLAN_SECURITY_802.1X || FWRT_NETWORK_WLAN_SECURITY_WPA_PSK
483         default "3600"
484         help
485           Rekeying interval in seconds
486
487 endmenu
488
489 endmenu
490
491 config FWRT_NETWORK_USE_NAMESERVERS
492         bool "Static DNS configuration"
493         default n
494         help
495          Enable this to set the nameservers manually
496
497 config FWRT_NETWORK_NAMESERVERS
498         string "Nameservers (space separated)"
499         depends on FWRT_NETWORK_USE_NAMESERVERS
500         default ""
501         help
502          Enter the nameservers (resolvers) to use here.
Note: See TracBrowser for help on using the browser.