Monday, November 17, 2008

/etc/network/interfaces

##### /etc/network/interfaces #####
auto lo
iface lo inet loopback

##### Wire Network #####
#auto eth1
iface eth1 inet dhcp

##### Wireless network #####
auto eth1
iface eth1 inet static
address 10.0.0.X
netmask 255.0.0.0
network 10.0.0.0
gateway 10.0.0.YYY
dns-nameservers 10.0.0.YYY 10.0.0.ZZZ
# broadcast 10.255.255.255
wpa-driver wext
# wpa-conf /etc/wpa_supplicant.conf
wpa-ssid Wireless_Network_SSID
wpa-ap-scan 2
wpa-proto RSN
wpa-pairwise CCMP TKIP
wpa-group TKIP
wpa-key-mgmt WPA-PSK
wpa-psk TOP_SECRET_PASSWORD
######## Example ###########
#wpa-driver wext
#wpa-conf managed
#wpa-ssid
#wpa-ap-scan 2
#wpa-proto RSN
#wpa-pairwise CCMP
#wpa-group CCMP
#wpa-key-mgmt WPA-PSK
#wpa-psk
############################

#auto eth2
iface eth2 inet dhcp

#auto ath0
iface ath0 inet dhcp

#auto wlan0
iface wlan0 inet dhcp

No comments: