DHCP: Getting dhclient to resort to a static IP
Please can anyone help me setup networking... I'm a tard and cant figure out all the dhclient options.
I'm running fedora core 6 and want to configure eth0 to try to get a DHCP lease but if this fails then to use a static IP.
I created this dhclient.conf file:
option subnet-mask 255.255.255.0;
... and restarted the network (in the abscence of a DHCP server) but it seemed to ignore the requested timeout and hasn't
assigned the static address.
I've looked over the network-scripts that invoke dhclient and they seem to be doing something mysterious with dhclient-[$DEVICE].conf.
Now im not sure if my dhclient.conf is being picked up - do i need to make a dhclient-eth0.conf - , or maybe if im using incorrect options. Should i be using "default" rather than "alias"?
Please help at the moment it DHCP hangs the boot process for ages. then i have to manually configure a static if on my home network, then set it back to DHCP when roaming.