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

Matthias May matthias.may at westermo.com
Thu Sep 9 12:31:56 UTC 2021


On 09/09/2021 11:22, 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

Hi

The Metric is not part of DHCP, but is a local decision of the client.

See https://www.rfc-editor.org/rfc/rfc2132.html section 3.5 that describes DHCP option 3.

Alternatively if you want to use DHCP option 121 see https://www.rfc-editor.org/rfc/rfc3442.html
section "Classless Route Option Format".

BR
Matthias

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 236 bytes
Desc: OpenPGP digital signature
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20210909/0435d2b6/attachment.sig>


More information about the Dnsmasq-discuss mailing list