# /etc/conf.d/net: # Global config file for net.* rc-scripts # This is basically the ifconfig argument without the ifconfig $iface # #iface_eth0="192.168.0.13 broadcast 192.168.0.255 netmask 255.255.255.0" #iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0" # For DHCP set iface_eth? to "dhcp" # For passing options to dhcpcd use dhcpcd_eth? # iface_eth0="dhcp" #dhcpcd_eth0="..." #iface_eth1="dhcp" #dhcpcd_eth1="..." # An external script can be run by specifying its location below #preifup_eth0="/run/this/script" #preifdown_eth=0"/run/this/script" #postifup_eth0="/run/this/script" #postifdown_eth=0"/run/this/script" ############################################################################## # Wireless settings # ############################################################################## # Hard code an ESSID to an interface # This needs to be done when the driver doesn't support scanning # Set to "any" to connect to any ESSID # This may work for drivers that don't support scanning but you need automatic AP association #wireless_essid_eth0="any" # Set the mode of the interface. Managed is default #wireless_mode_eth0="Managed" # Setup any other config commands. This is basically the iwconfig argument # without the iwconfig $iface #wireless_config_eth0="" # Set private driver ioctls. This is basically the iwpriv argument without # the iwpriv $iface #wireless_priv_eth0="" # Some drivers need to scan in Ad-Hoc mode # After scan, the mode is reset to the one defined above #wireless_scan_mode_eth0="Ad-Hoc" # We can define various timeouts in seconds here #wireless_sleep_scan_eth0="1" #wireless_sleep_associate_eth0="5" # Below you can define private ioctls to run before and after scanning # Format is the same as the wireless_priv above # This is needed for the HostAP drivers #wireless_priv_scan_pre_eth0="host_roaming 2" #wireless_priv_scan_post_eth0="host_roaming 0" # Define a WEP key per ESSID # IMPORTANT: any characters that are NOT in a_z A_Z 0_9 should be # replaced with the _ character. For example #123 becomes _123 # wireless_key takes the same parameters as the key function in iwconfig # You can also set iface, dhcpcd and gateway options per ESSID # If they aren't set then the defaults for the interface are used # IMPORTANT: don't set an interface for wireless gateway - just use an IP address # The below examples use ESSID - change it to yours. # You can't use "any" for an ESSID here #wireless_key_ESSID="open 1234-1234-1234-1234-1234-1234-56" # or you can use strings. Passphrase IS NOT supported #wireless_key_ESSID="open s:foobar" # You can also override the interace settings here - even provide # a nameserver/domain per ESSID #wireless_iface_ESSID="dhcp" #wireless_dhcpcd_ESSID="..." #wireless_gateway_ESSID="192.168.0.1" #wireless_nameserver_ESSID="" #wireless_domain_ESSID="" # LEAP users will want to use the preassociate setting to specify # an authentication script #wireless_preassociate_ESSID="/run/this/script" #wireless_preifup_ESSID="/run/this/script" #wireless_preifdown_ESSID="/run/this/script" #wireless_postifup_ESSID="/run/this/script" #wireless_postifdown_ESSID="/run/this/script" # 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 # Seperate the ESSIDs with tabs - NOT spaces # 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 #wireless_preferred="ESSID1 ESSID2 ESSID3 ESSID4" ############################################################################## # End Wireless Settings # ############################################################################## # For adding aliases to a interface # #alias_eth0="192.168.0.3 192.168.0.4" # NB: The next is only used for aliases. # # To add a custom netmask/broadcast address to created aliases, # uncomment and change accordingly. Leave commented to assign # defaults for that interface. # #broadcast_eth0="192.168.0.255 192.168.0.255" #netmask_eth0="255.255.255.0 255.255.255.0" # For setting the default gateway # #gateway="eth0/192.168.0.1"