[Dnsmasq-discuss] ipv6 - How to add static route with metric

Petr Menšík pemensik at redhat.com
Thu Sep 9 22:10:30 UTC 2021

Hello Daniel,

dnsmasq --help dhcp6

does not list options 3 and 6. According to Iana list [1], those are
OPTION_IA_NA and OPTION_ORO. It does not seem they are correct for IPv6.
I can see there plenty of options, but did not find way to specify IPv6
route. Are you sure the target router for the route should not use
router advertisement to propagate its routes instead? Would you
describe, what are you trying to archieve? Why should have clients have
some route instead of router for the network?

Could --ra-param help instead?




On 9/9/21 11:22 AM, Daniel via Dnsmasq-discuss wrote:
> Hello,
> using dnsmasq for office network, I would like to add an ipv6 static
> route. My configuration looks like
> dhcp-range=set:computer6, fd00:5678:beef:cafe::ff:0,
> fd00:5678:beef:cafe::ff:ffff, slaac, ra-names, 1h
> dhcp-option=tag:computer6,option6:3,fd00:5678:beef:cafe::2
> dhcp-option=tag:computer6,option6:6,fd00:5678:beef:cafe::1
> dhcp-option=tag:computer6,option6:ntp-server,fd00:5678:beef:cafe::2
> Now I want to add route like <destination network,metric,GW>
> dhcp-option=tag:computer6,option6:3,fd00:5678:beef:cafe:fade::/96,192,fd00:5678:beef:cafe::1
> but this does not work (also tried <GW,metric,destination network>
> What am I doing wrong ?
> Thanks for your support

Petr Menšík
Software Engineer
Red Hat, http://www.redhat.com/
email: pemensik at redhat.com
PGP: DFCF908DB7C87E8E529925BC4931CA5B6C9FC5CB

More information about the Dnsmasq-discuss mailing list