[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

dhcp apparently handing out the wrong ip address



I have a dhcp server set up at home to allocate IP addresses to my work laptop 
(which is set up that way to get its IP address at work). My laptop is called 
rabbit.home (see below)

I want it to get a constant ip address so that (for instance) my NAT box can 
portforward certain ports to it, and a dns lookup gets the right ip address.  
To that end I added a host statement to my dhcpd.conf file (also shown below) 
to recognise the ethernet hardware address (actually two because I have a 
standard cable port, and a wireless pcmcia card that I could use).

However, it doesn't seem to work.  Instead the dhcp server is handing out an 
address from the standard anonymous allocation range (as shown in the syslog 
conversation also included below).

The real puzzle to me, is that the only recent change to this file is to add a 
hardware address for the wireless pcmcia card.  Before it was always working 

Anyone any ideas as to what is wrong? 


my /etc/dhcp3/dhcpd.conf file has the following in it

shared-network home-net {
  option domain-name "home";
  option domain-name-servers 192.168.0.20, 192.168.0.10;

  option subnet-mask 255.255.255.0;
  default-lease-time 21600;
  max-lease-time 86400;
  authoritative;
  subnet 192.168.0.0 netmask 255.255.255.0 {
    range 192.168.0.40 192.168.0.59;
    option routers 192.168.0.10;
  }

#  The following are hosts which require a fixed ip-address (for instance
#  so that NAT can direct things to them)
#

  host roo {
    hardware ethernet 00:50:da:ec:83:9a;
    fixed-address roo.home;
  }
  host rabbit {
    hardware ethernet 00:06:5b:b7:9c:35;
    hardware ethernet 00:06:25:2a:fa:25;
    fixed-address rabbit.home;
....

This last line refers to the dns - where a host lookup of rabbit.home gives
J
roo:~# host rabbit.home
rabbit.home has address 192.168.0.25

From syslog although the hardware address matches above, it gets offered 
192.168.0.59


Jan  8 09:42:30 roo dhcpd: DHCPDISCOVER from 00:06:5b:b7:9c:35 via eth1
Jan  8 09:42:31 roo dhcpd: DHCPOFFER on 192.168.0.59 to 00:06:5b:b7:9c:35 
(UKP-A4PUCZGT39T) via eth1
Jan  8 09:42:31 roo dhcpd: DHCPREQUEST for 192.168.0.59 (192.168.0.20) from 
00:06:5b:b7:9c:35 (UKP-A4PUCZGT39T) via eth1
Jan  8 09:42:31 roo dhcpd: DHCPACK on 192.168.0.59 to 00:06:5b:b7:9c:35 
(UKP-A4PUCZGT39T) via eth1



-- 
Alan Chandler
alan@chandlerfamily.org.uk
First they ignore you, then they laugh at you,
 then they fight you, then you win. --Gandhi



Reply to: