# /etc/conf.d/wireless: # Global wireless config file for net.* rc-scripts ############################################################################## # HINTS ############################################################################## # Remember to change eth0 to your wireless interface which may be # eth0, eth1, wlan0, ath0 - you get the idea. If you're not sure # you can type "iwconfig" at the command prompt and it will tell you which # interfaces are wireless. # Say that your wireless interface is ath0 - the line # #essid_eth0="any" # becomes # #essid_ath0="any" # # Remember to change ESSID to your ESSID. # Say that your ESSID is My NET - the line # #key_ESSID="s:passkey" # becomes # #key_My_NET="s:passkey" # Notice that the space has changed to an underscore - do the same with all # characters not in a-z A-Z (english alphabet) 0-9. # # Any ESSID's in quotes like essid_eth0="My NET" may need to be escaped # This means placing the character \ before the character # \" need to be escaped for example # So if your ESSID is # My "\ NET # it becomes # My \"\\ NET # for example # #essid_eth0="My\"\\NET" # # As a final note, most users will just need to set the following options # key_ESSID1="s:yourkeyhere enc open" # key_ESSID2="s:yourothrkey enc open" # preferred_aps=( "ESSID1" "ESSID2" ) # # Clear? Good. Now configure your wireless network below ######################################################### ############################################################################## # SETTINGS ############################################################################## # Hard code an ESSID to an interface - leave this unset if you wish the driver # to scan for available Access Points # Set to "any" to connect to any ESSID - the driver picks an Access Point # This needs to be done when the driver doesn't support scanning # This may work for drivers that don't support scanning but you need automatic # AP association # I would only set this as a last resort really - use the preferred_aps # setting at the bottom of this file #essid_ath0="any" # Set the mode of the interface (ad-hoc or managed). Managed is default # If it's ad-hoc you also need to specify the channel below mode_ath0="Managed" # If managed mode fails, drop to ad-hoc mode with the below ESSID? # If this is set, then remember to configure wireless options such as ifconfig # for the specified ESSID. Channel can be set (1-14), but defaults to 3 if # not set. # # The below is taken verbatim from the BSD wavelan documentation found at # http://www.netbsd.org/Documentation/network/wavelan.html # There are 14 channels possible; We are told that channels 1-11 are legal for # North America, channels 1-13 for most of Europe, channels 10-13 for France, # and only channel 14 for Japan. If in doubt, please refer to the documentation # that came with your card or access point. Make sure that the channel you # select is the same channel your access point (or the other card in an ad-hoc # network) is on. The default for cards sold in North America and most of Europe # is 3; the default for cards sold in France is 11, and the default for cards # sold in Japan is 14. #adhoc_essid_eth0="WLAN" #adhoc_channel_eth0="3" # Setup any other config commands. This is basically the iwconfig argument # without the iwconfig $iface #iwconfig_eth0="" # Set private driver ioctls. This is basically the iwpriv argument without # the iwpriv $iface #iwpriv_eth0="" # We can define various timeouts here. #sleep_scan_eth0="1" #sleep_associate_eth0="5" # By default a successful association in Managed mode sets the MAC # address of the AP connected to. However, some drivers (namely # the ipw2100) don't set an invalid MAC address when association # fails - so we need to check on link quality which some drivers # don't report properly either. # So if you have connection problems try flipping this setting # Valid options are MAC, quality and all - defaults to MAC associate_test_eth0="quality" # Some driver/card combinations need to scan in Ad-Hoc mode # After scanning, the mode is reset to the one defined above #scan_mode_eth0="Ad-Hoc" # Below you can define private ioctls to run before and after scanning # Format is the same as the iwpriv_eth0 above # This is needed for the HostAP drivers #iwpriv_scan_pre_eth0="host_roaming 2" #iwpriv_scan_post_eth0="host_roaming 0" # Define a WEP key per ESSID # You can't use "any" for an ESSID here #key_ESSID="1234-1234-1234-1234-1234-1234-56" # or you can use strings. Passphrase IS NOT supported # Note - this example also sets the encryption method to open # which is regarded as more secure than restricted #key_ESSID="s:foobar enc open" #key_ESSID="s:foobar enc restricted" # Here are some more examples of keys as some users find others work # and some don't where they should all do the same thing #key_ESSID="open s:foobar" #key_ESSID="open 1234-5678-9012" #key_ESSID="s:foobar enc open" #key_ESSID="1234-5678-9012 enc open" # You may want to set muliple keys - here's an example # It sets 4 keys on the card and instructs to use key 2 by default #key_ESSID="[1] s:passkey1 key [2] s:passkey2 key [3] s:passkey3 key [4] s:passkey4 key [2]" # You can also override the interface settings found in /etc/conf.d/net # per ESSID - which is very handy if you use different networks a lot ifconfig_public=( "dhcp" ) dhcpcd_public="-t 5" inet6_public=() routes_public=() ifconfig_fallback_public=() # iproute-2 style setup ifconfig_Riedhofstrasse=( "10.0.1.10 broadcast 255.255.255.255 netmask 255.255.255.0" ) iproute_Riedhofstrasse=() ipaddr_fallback_Riedhofstrasse=() inet6_Riedhofstrasse=() routes_Riedhofstrasse=() nameserver_Riedhofstrasse="10.0.1.1" dns_domain_Riedhofstrasse="masi" # Setting name/domain server causes /etc/resolv.conf to be overwritten # Note that if DHCP is used, and you want this to take precedence then # please put -R in your dhcpcd options #nameserver_ESSID="192.168.0.1" #dns_domain_ESSID="some.domain" # LEAP users will want to use the preassociate setting to specify # an authentication script #preassociate_ESSID="/run/this/script" # Map a MAC address to an ESSID # This is used when the Access Point is not broadcasting it's ESSID # WARNING: This will override the ESSID being broadcast due to some # Access Points sending an ESSID even when they have been configured # not too! # Change 001122334455 to the MAC address and ESSID to the ESSID # it should map to #essid_001122334455="ESSID" # This lists the preferred ESSIDs to connect to in order # ESSID's can contain any characters here as they must match the broadcast # ESSID exactly. # Surround each ESSID with the " character and seperate them with a space # If the first ESSID isn't found then it moves onto the next # If this isn't defined then it connects to the first one found preferred_aps=( "Riedhofstrasse" "public" )