[Dnsmasq-discuss] 2 routes

Carl Karsten carl at nextdayvideo.com
Mon Nov 29 07:55:59 UTC 2021


On Sun, Nov 28, 2021 at 11:20 PM Geert Stappers via Dnsmasq-discuss
<dnsmasq-discuss at lists.thekelleys.org.uk> wrote:
>
> On Sun, Nov 28, 2021 at 03:44:38PM -0800, Carl Karsten wrote:
> > I don't think DHCP supports this, but I'm not sure.
> >
> > Can the server send 2 (or more) pairs of netmask/gateway ?
>
> Yes, DHCP option 121,  classless static routing
>
> Described in https://datatracker.ietf.org/doc/html/rfc3442
>
> Check dnsmasq man page for dhcp-option and dhcp-option-force
>

Thank you.

>
> > Otherwise I suspect this can be done if client has 2 virtual
> > interfaces, do dh request with different client ids.
> } interfaces, do DHCP request with different client ids.
> >
> > Trying to keep all the networking config settings on the server, not
> > have anything baked into client machines.
>
> Carl, original poster, will learn what the DHCP clients do
> with what the DHCP server provides. I mean that having the
> best server is meaningless when the clients don't understand it.
>

Good tip, I won't assue anything just works.  does anything ever just work? ;)

this is encouraging:

/etc/dhcp/dhclient.conf
option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
send host-name = gethostname();
request subnet-mask, broadcast-address, time-offset, routers,
    domain-name, domain-name-servers, domain-search, host-name,
    dhcp6.name-servers, dhcp6.domain-search, dhcp6.fqdn, dhcp6.sntp-servers,
    netbios-name-servers, netbios-scope, interface-mtu,
    rfc3442-classless-static-routes, ntp-servers;


>
> Groeten
> Geert Stappers
> --
> Silence is hard to parse
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss



-- 
Carl K



More information about the Dnsmasq-discuss mailing list