What I do to connect to our wireless network:
sudo ifconfig wlan0 up
wpa(a script that invokes
wpa_supplicantwith all the necessary arguments)
sudo dhclient wlan0(this is the step I don't like)
The last step, the
dhclient step, I would like to replace with a static IP configuration instead of getting it from the DHCP server. I know what the gateway address is, the DNS addresses, the IP address and the netmask, but I don't know how to set these via the command line. Is it possible?
If it matters, I am running Fedora 18 x86_64.
The IP address is set with
sudo ip addr add <ip-address> dev wlan0, right?