On Mon, Nov 29, 2021 at 08:18:24AM +0100, Gerrit Kuehn via Dnsmasq-discuss 
wrote:
> On Sun, 28 Nov 2021 15:44:38 -0800 Carl Karsten wrote:
> 
> > Can the server send 2 (or more) pairs of netmask/gateway ?
> 
> Depends. Do you need this for a single interface or for separate ones?
> 
> > Otherwise I suspect this can be done if client has 2 virtual
> > interfaces, do dh request with different client ids.
> 
> Ig you have seprate interfaces, the obvious solution is to ask for a
> dhcp lease and setup for each one. On a single interface, you can,
> e.g., add static routes
> 
> ---
> # Send RFC-3442 classless static routes (note the netmask encoding)
> #dhcp-option=121,192.168.1.0/24,1.2.3.4,10.0.0.0/8,5.6.7.8
> ---

Mmm, that is indeed
what 
https://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=blob;f=dnsmasq.conf.example;hb=HEAD#l415
has.


As I read RFC 3442 I would expect
  dhcp-option=121, 24,192,168,1,1,2,3,4, 8,10,5,6,7,8

So destination 192.168.1.0/24 encoded as 24,192,168,1
and destination 10.0.0.0/8 encoded as 8,10



Groeten
Geert Stappers
-- 
Silence is hard to parse

_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss

Reply via email to