dhcp inform is not fetching the correct option

Simon Hobson dhcp1 at thehobsons.co.uk
Wed May 21 19:03:48 UTC 2008


S Kalyanasundaram wrote:

>  >> My configuration file:
>>
>>	Your "host { ... }" block doesn't belong inside the "subnet { ... }" 
>block.
>>
>>	I'ld suggest upgrading and correcting your configuration file as
>>	first steps.
>
>IIRC, there was a discussion that the host shouldnt be part of the
>dynamic range.

That is correct, but not related to this.

>or you are mentioning the placement of host should
>be inside the subnet?

No, you have it inside the subnet, it should NOT be.

Try changing :

subnet 192.168.100.0 netmask 255.255.255.0 {
   default-lease-time 259200;
   option domain-name "example.com";
   option domain-name-servers 192.168.201.1;
   option nds-tree-name "tree0subnet0";
   pool {
     range 192.168.100.10 192.168.100.20;
       option nds-tree-name "tree1pool1";
   }
   host testhost {
     hardware ethernet 00:14:c2:06:51:74;
     default-lease-time 2147483647;
     fixed-address 192.168.100.101;
     option nds-tree-name "tree2host2";
   }
}

to :

subnet 192.168.100.0 netmask 255.255.255.0 {
   default-lease-time 259200;
   option domain-name "example.com";
   option domain-name-servers 192.168.201.1;
   option nds-tree-name "tree0subnet0";
   pool {
     range 192.168.100.10 192.168.100.20;
     option nds-tree-name "tree1pool1";
   }
}

host testhost {
   hardware ethernet 00:14:c2:06:51:74;
   default-lease-time 2147483647;
   fixed-address 192.168.100.101;
   option nds-tree-name "tree2host2";
}


BTW - notice how a little formatting makes the structure a lot easier to read ?



More information about the dhcp-users mailing list