[Dnsmasq-discuss] Subnetwork static route
duane-dnsmasq-discuss at evenson.ca
duane-dnsmasq-discuss at evenson.ca
Fri Dec 18 17:38:18 GMT 2020
I have a new question for everybody.
If I have a network: 192.168.0.x, and a subnetwork 192.168.1.x connected
to it through a gateway with addresses: 192.168.0.4 and 192.168.1.1 on
the two network devices.
To send traffic to the subnetwork from the network, I'd need a static
route: something like:
dhcp-option:option:classless-static-route=192.168.1.0/24,192.168.0.4
but this would place the route
"192.168.1.0/24 via 192.168.0.4" in my gateway, sending the gateway's
traffic to the wrong network device.
So do I use tags like this:
dhcp-host=11:22:33:44:55:66,192.168.0.4,set:gw1
dhcp-option:tag:!gw1,option:classless-static-route=192.168.1.0/24,192.168.0.4
or do I move configuration of 192.168.0.4 out of dnsmasq:
dhcp-host=11:22:33:44:55:66,ignore
dhcp-option:option:classless-static-route=192.168.1.0/24,192.168.0.4
and configure the gateway's network devices manually (in
/etc/network/interfaces, etc.)?
I thought of maybe setting a higher metric for the inter-network static
route, but I cannot find anywhere in dnsmasq or DHCP options where the
metric can be set.
What is the common solution to this problem?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: duane.vcf
Type: text/x-vcard
Size: 4 bytes
Desc: not available
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20201218/c3bada38/attachment.vcf>
More information about the Dnsmasq-discuss
mailing list