Re: Can't get DHCP to assign specific addresses

2008-07-06 Thread James Pifer
On Sun, 2008-07-06 at 11:09 -0400, James Pifer wrote:
 I have an older server (FC5) still acting as my dhcp server on my home
 network. I have a few laptops that I'm trying to get DHCP to assign
 specific addresses from the pool. For example, I want to be able to VNC
 to my wife's laptop (running Vista). Of course I could assign a static
 address, but this always causes problems when she takes it somewhere. 
 
 Here's my config for dhcp:
 
 # home
 subnet 192.168.20.0 netmask 255.255.255.0 {
   option routers 192.168.20.1;
   option domain-name-servers 192.168.20.2;
   range 192.168.20.50 192.168.20.100;
   }
 ddns-update-style ad-hoc;
 
 # Laptop
 host laptop1 {
   deny client-updates;
   hardware ethernet 00:1B:77:85:DF:3F;
   fixed-address 192.168.20.50;
   }
 
 I've run wireshark and the pc is definitely hitting this dhcp server.
 I've tried it with allowing and denying client updates. For some reason
 the laptop keeps getting 192.168.20.99 instead of 192.168.20.50.
 
 Any ideas what the problem could be?

Picked up dunce hat and stuck on head... 

I compared the mac address I had written with what was in the leases
file and found one character wrong. Sorry to bother. 

Thanks,
James

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list


Re: Can't get DHCP to assign specific addresses

2008-07-06 Thread Tom Horsley
On Sun, 06 Jul 2008 11:09:10 -0400
James Pifer [EMAIL PROTECTED] wrote:

 Any ideas what the problem could be?

I once had a long battle with dhcp (which it won :-), but I
think I remember discovering that it just does the first thing
it sees.

Your subnet range is from 50 to 100, but your host definition
with the fixed-address is for 50, which is inside the subnet
range. I'm pretty sure you need to have any separate fixed-address
definitions outside the subnet range (otherwise it might assign
some completely different device one of the fixed addresses).

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list