Debian network config

From test.coolscript.org
Jump to navigation Jump to search

Sample of wireless config[edit]

  • /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet dhcp
#allow-hotplug wlan0
#iface wlan0 inet manual
#wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
auto wlan0
allow-hotplug wlan0
iface wlan0 inet static
 address   192.168.2.10
 broadcast 192.168.2.255
 netmask   255.255.255.0
 gateway   192.168.2.1
 # default route to access subnet
 up route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.2.1 wlan0

  • Wlan specific
wpa-ap-scan 1
wpa-scan-ssid 1
wpa-ssid "BOFH"
wpa-psk "xxxxxxx"