# This file describes the network interfaces available on your
system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
# This enables the interface only if an active network is detected
ifplugd eth0
iface eth0 inet static
address 192.168.1.105
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
#The primary wireless interface
auto wlan0
iface wlan0 inet static
address 192.168.1.105
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
wpa-driver wext
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
update_config=1
# go to http://www.xs4all.nl/~rjoris/wpapsk.html to generate the hex key
# from your passphrase
network=
{
ssid="your SSID"
psk=your hex key consisting of 64 hex digits
#Alternatively, you can enter yor passphrase in quotes
key_mgmt=WPA-PSK
group=CCMP TKIP
priority=100
}
# Generated by Administrator
#the following addresses are those for OpenDNS servers
nameserver 208.67.222.222
nameserver 208.67.220.220
$sudo /etc/init.d/networking restart
$ping google.ca
PING google.ca (74.125.47.104) 56(84) bytes of data.
64 bytes from yw-in-f104.1e100.net (74.125.47.104): icmp_seq=1 ttl=54
time=69.1 ms
64 bytes from yw-in-f104.1e100.net (74.125.47.104): icmp_seq=2 ttl=54
time=69.1 ms
^C
--- google.ca ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 6008ms
rtt min/avg/max/mdev = 68.831/70.409/73.146/1.756 ms
$
Anyway, this is what worked for me. The important point is to remove Network Manager, which appears to overwrite any static ip configuration. Network Manager has been maligned in the past, and has come a long way, but its place is not in a server where a static IP is required.
Contact me if you have any questions or comments.