Hi, I have been tinkering with the Pi I just received and I would like to configure a static IP address on the wifi connection - DHCP works fine but I like my PCs to be identifiable. I should point out that I tend to use Fedora/Centos so the world of raspbian has a few challenges for me
The first suggestions I read regarded the /etc/network/interface file which I modified thus (I renamed it when I could not get it to work):
Quote:
pi@raspberrypi ~ $ cat /etc/network/interfaces.man
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet manual
address 10.1.1.91
netmask 255.255.255.0
gateway 10.1.1.1
#wpa-ssid TP-LINK_CF9006
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
#iface default inet dhcp
|
I experimented with the ssid or the wpa_supplicant.conf file (which referenced that ssid) but ifup had problems with both.
Then I read about wicd which I installed. I went to the properties for my router, ticked "Use static IPs", set the static address to 10.1.1.91 as above, defined netmask, gateway, DNS domain and DNS server, used wicd to disconnect/connect and all was good - I had the address set up how I wanted it. I ticked the box to "automatically connect" and rebooted.
After the reboot the wireless connection was active but it had lapsed back to the DHCP address allocated before - 10.1.1.101 (on my router, DHCP kicks in above 10.1.1.100).
Now, when I go to Preferences->External Programs there is a section for "DHCP Client" and "automatic" is selected. I assume this is the setting when you are using DHCP rather than a static IP address is that correct?
Or, any suggestions on boxes that need ticking in wicd to ensure the static address is recognised. In case this is relevant, the interfaces file currently reads:
Quote:
pi@raspberrypi ~ $ cat /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
|
Thanks