Static IP via Option 82 - methodology

Peter Rathlev peter at rathlev.dk
Wed Jan 22 22:51:49 UTC 2014


On Wed, 2014-01-22 at 14:32 -0500, perl-list wrote:
> For example... would this work?:
>  
> -----------------------------------------------------
> host 10-24-24-9 
>      host-identifier option agent.circuit-id "1.21.1.4/Ethernet9";
>      fixed-address 10.24.24.9;
>      server-name "192.168.0.12";
>      filename "SomeCFG.cfg";
> }
> -----------------------------------------------------
> 
> It passes muster as far as dhcpd doesn't complain and will run, but
> will the client receive the server-name / filename options?

That'll work fine. If server-name and filename are the same for several
hosts you could also place it in the subnet declaration.

Generally you can place options anywhere you want. Options placed
outside everything ("global scope") are server to every client asking
for them. Inside a subnet declaration it's server to every client in
that subnet, including static hosts. Inside a pool it's only served to
clients in that pool.

-- 
Peter





More information about the dhcp-users mailing list