[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,;

  option subnet-mask;
  default-lease-time 21600;
  max-lease-time 86400;
  subnet netmask {
    option routers;

#  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
roo:~# host rabbit.home
rabbit.home has address

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

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 to 00:06:5b:b7:9c:35 
(UKP-A4PUCZGT39T) via eth1
Jan  8 09:42:31 roo dhcpd: DHCPREQUEST for ( from 
00:06:5b:b7:9c:35 (UKP-A4PUCZGT39T) via eth1
Jan  8 09:42:31 roo dhcpd: DHCPACK on to 00:06:5b:b7:9c:35 
(UKP-A4PUCZGT39T) via eth1

Alan Chandler
First they ignore you, then they laugh at you,
 then they fight you, then you win. --Gandhi

Reply to: