larkl
Group: Members
Posts: 177
Joined: Sep. 2005 |
|
Posted: Dec. 17 2005,13:12 |
|
Dhcpd.conf is for configuring the dhcp server, not the client. You could add a few lines to your bootlocal.sh file that could handle it. Say your normal IP address range from the dhcp server is 192.168.1.X and that 192.168.1.254 is outside of the range used by the dhcp server and that eth0 is the interface, then
Code Sample | if ifconfig|grep 192.168.1 then exit else ifconfig eth0 192.168.1.254 fi
|
So, if ifconfig contains the IP range you stop, otherwise you set a manual IP. Might not have the commands just right, but you get the drift. After all this, might be easier to just use a static address (as cbagger01 suggests).
|