Click to See Complete Forum and Search --> : Two linux boxes stealing IP from each other....


Duh
08-29-2002, 04:17 PM
OK, we have a windows network. DHCP hands out ips.
Setup one linux box to run citrix, works great. Use ghost and copy it to another pc, changed host name.
Now they steal the ip address from the other box!
Which ever one starts up last gets the ip from the other one, then restart network, and that one steals the ip.
We even set it so that ip address wouldnt be given out, but it keeps giving to to these boxes!
help!

cowanrl
08-29-2002, 05:52 PM
Information about the IP address that the Linux box gets via DHCP is cached in a file(don't remember which one off hand). By default, when it boots up again, it will ask for the same IP address. Since you are ghosting the first computer, you are copying the dhcp cache also.

If you are using dhcpcd as the DHCP client, you can flush that cache with:

dhcpcd -k eth0

Then do:

dhcpcd eth0

to get a new IP address. You should get a different one.

I'm pretty sure pump(the other DHCP client) has the same option. If you are using pump, try:

pump -r -k -i eth0

to release it. Then:

pump -i eth0

to get a new address.

You should be able to look at the man pages on dhcpcd and pump for more details.

Duh
08-29-2002, 06:54 PM
THAT WAS IT!!!!
THANKS A TON!
I've been trying to find out what was wrong for days!!!
Thanks!

cowanrl
08-29-2002, 07:13 PM
You're welcome.