howto :add route to client

Luka dhcp at ml.evriala.net
Mon Mar 10 11:35:45 UTC 2008


It could be done like this:

option rfc3442-classless-static-routes code 121 = array of {integer 8};
option rfc3442-classless-static-routes 24,192,168,5 192,168,3,198

which is equivalent to:

route add -net 192.168.5.0 netmask 255.255.255.0 gw 192.168.3.198

Regards, Luka

Niall O'Reilly wrote:
> 
> On 9 Mar 2008, at 22:49, Simon Hobson wrote:
> 
>> In principal yes, there is an option for it
> 
>     Are you sure, Simon?
> 
>     Option 33 can carry a set of (destination, gateway) pairs of IPv4
> addresses,
>     but seems to have no space for a mask or prefix-length.  This would
> allow
>     only a host route.
> 
>     Am I missing something?
> 
>     /Niall
> 


More information about the dhcp-users mailing list