[Dnsmasq-discuss] Sending user-specified default gateway with RAs
Hello, I use dnsmasq to provide DHCP. IPv4 is working well, but I'm struggling to configure IPv6. I use DHCPv6 and Router Advertisements and get a /64 when requesting a DHCP lease, which is according to my configuration. However: the RA contains a default route to the dnsmasq server, but the default gateway should be my router, which is located at another address. I have looked through the documentation carefully, but cannot find any way to supply my own default gateway to RAs. Although I am aware that DHCPv6 is not in charge of supplying the default gateway, I set 'dhcp-option=option6:router' as a test, but dnsmasq refused to start up afterwards. Question: how do I configure dnsmasq to supply a user-specified default gateway address in RAs? Met vriendelijke groeten, William Edwards T. 040 - 711 44 96 E. wedwa...@cyberfusion.nl ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] Sending user-specified default gateway with RAs
On Sunday 23 February 2020 11:41:47 William Edwards wrote: > Question: how do I configure dnsmasq to supply a user-specified default > gateway address in RAs? Hello William! This is not possible as IPv6 gateway (router) address is not present in RA packet structure. If client receives RA packet it expects that sender of RA packet is gateway (router). So if you do not have dnsmasq on your router, you must disable RA in dnsmasq. And enable RA on your real IPv6 router. In IPv6 network it is expected that RA is sent only by IPv6 router. RA means Router Advertisement and only real router should advertise that is router. -- Pali Rohár pali.ro...@gmail.com signature.asc Description: PGP signature ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] Sending user-specified default gateway with RAs
Hello Pali, Thank you for your answer. I am aware RAs are supposed to be sent by routers. I attempted using dnsmasq for RAs, because it seemed easier than getting RAs to be sent from my VRRP address as source address. I have enough information to proceed with dnsmasq configuration. Met vriendelijke groeten, William Edwards T. 040 - 711 44 96 E. wedwa...@cyberfusion.nl - Original Message - From: Pali Rohár (pali.ro...@gmail.com) Date: 02/23/20 12:25 To: William Edwards (wedwa...@cyberfusion.nl) Cc: dnsmasq-discuss@lists.thekelleys.org.uk Subject: Re: [Dnsmasq-discuss] Sending user-specified default gateway with RAs On Sunday 23 February 2020 11:41:47 William Edwards wrote: > Question: how do I configure dnsmasq to supply a user-specified default > gateway address in RAs? Hello William! This is not possible as IPv6 gateway (router) address is not present in RA packet structure. If client receives RA packet it expects that sender of RA packet is gateway (router). So if you do not have dnsmasq on your router, you must disable RA in dnsmasq. And enable RA on your real IPv6 router. In IPv6 network it is expected that RA is sent only by IPv6 router. RA means Router Advertisement and only real router should advertise that is router. -- Pali Rohár pali.ro...@gmail.com ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss