On Sun, Nov 28, 2021 at 11:55:59PM -0800, Carl Karsten wrote: > On Sun, Nov 28, 2021 at 11:20 PM Geert Stappers 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 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? ;)
Yes, very often. The trick is getting both ends to understand each other. > 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; > Yeah, lets assume that is good and please tell if https://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=blob;f=dnsmasq.conf.example;hb=HEAD#l415 needs to get updated. Groeten Geert Stappers -- Every time you assume, you make an ass of you and me. _______________________________________________ Dnsmasq-discuss mailing list [email protected] https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
