enquiry on validation of dhcp offered address

Simon Hobson dhcp1 at thehobsons.co.uk
Sat Apr 21 08:12:18 UTC 2012


ching wrote:

>Does anyone knows how to validate an address offered by dhcp server?
>
>e.g. i want dhclient to reject if offered address is in 10.0.0.0/8, 
>172.16.0.0/12, 192.168.0.0/16
>                                                or offered IPv6 
>prefix is in fc::00/7

Why ?
I can see why you might want to reject accepting a non-routable 
address, but surely it's the job of the DHCP server (and the admin 
that configured it) to configure the network, not the client to 
second guess what it's connected to ?

-- 
Simon Hobson

Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
author Gladys Hobson. Novels - poetry - short stories - ideal as
Christmas stocking fillers. Some available as e-books.


More information about the dhcp-users mailing list