Posted: Thu Feb 25, 2016 8:39 Post subject: SOLVED: IPv6 -> DNS & DHCP
Hi,
Yesterday I did a quick check on IPv6 on my Netgear 4300v1 and that went pretty smooth. My provider is serving me an IPv6 /64 range and by enabling 'DHCPv6 with Prefix Delegation' and 'Radvd', I was Ready for the future of the Internet, according to Google
So, technically I fixed it in approximately 5 minutes, however... Since I am used to have some grip on my DHCP leases and am running my own DNS server (both DNSMasq), I missed some "grip" on what was happening and switched back to IPv4 for some further research.
And there I am, wondering if anyone has the described DNSMasq functionality running on IPv6. If so, I am interested in a rough description of your configuration. _________________ Netgear WNDR4300v1 DD-WRT v3.0 BS r29837 | Netgear R6400 DD-WRT v3.0 KB r33525M | Tickets: 5429 IPv4 & IPv6-PD | ProFTP & Samba to USB thumb | DNSMasq DHCPv6 | Pi-Hole on RasPi
I'm running exclusively dnsmasq. I've disabled the normal dhcp server and radvd service, dnsmasq is taking care of it for me. I enabled all of the options except the one about logging mac address for dns queries.
Note that the dnssec lines are commented. Enabling it causes dnsmasq to exit with no messages, it seems to not be built correctly to support it.
If you are receiving a prefix designated by your ISP I actually don't know how to get that info into your dnsmasq config... I'm using a sixx tunnel, so my prefix is unchanging.
But.... the good news... Since I was switching configs rapidly, I might stressed the router or my client... while writing this post, I (re)set the config with the prefix like you said, reconnected (wireless) and it all of a sudden works like it should...
So.... Thanks for your fast reply and config! _________________ Netgear WNDR4300v1 DD-WRT v3.0 BS r29837 | Netgear R6400 DD-WRT v3.0 KB r33525M | Tickets: 5429 IPv4 & IPv6-PD | ProFTP & Samba to USB thumb | DNSMasq DHCPv6 | Pi-Hole on RasPi
Perhaps interesting, if you (as in anyone) want to configure one hostname with a fixed IPv4 and IPv6 address, the syntax to add to your 'Additional DNSMasq Options' is:
I believe to have tried every configuration I can imagine and find online. Could it be that there must be added some explicit ACCEPT rules in the firewall.
As as test I removed all custom rules, but no IPv6 Address was served at the clients on br1, where br0 works flawless.
Any help is welcome! _________________ Netgear WNDR4300v1 DD-WRT v3.0 BS r29837 | Netgear R6400 DD-WRT v3.0 KB r33525M | Tickets: 5429 IPv4 & IPv6-PD | ProFTP & Samba to USB thumb | DNSMasq DHCPv6 | Pi-Hole on RasPi
or if is 5Ghz netowrk (meaning not guests) I would try:
Code:
bridge-interface=br0,br1
Quote:
bridge-interface=<interface>,<alias>[,<alias>]
Treat DHCP (v4 and v6) request and IPv6 Router Solicit packets arriving at any of the <alias> interfaces as if they had arrived at <interface>. This option allows dnsmasq to provide DHCP and RA service over unaddressed and unbridged Ethernet interfaces, e.g. on an OpenStack compute host where each such interface is a TAP interface to a VM, or as in "old style bridging" on BSD platforms. A trailing '*' wildcard can be used in each <alias>.
Where off course xxxx:yyyy:zzzz represents my prefix. Now I get an IP address, strangely enough always in the br1 range, even when I am connected to br0, and I get results from DNS, but somehow am not able to get on the Internet. I can when I connect to br0.
The first add-ons come from the script mentioned by Mile-Lile.
If anyone has a clue, I am very much willing to hear it... Probably something silly again _________________ Netgear WNDR4300v1 DD-WRT v3.0 BS r29837 | Netgear R6400 DD-WRT v3.0 KB r33525M | Tickets: 5429 IPv4 & IPv6-PD | ProFTP & Samba to USB thumb | DNSMasq DHCPv6 | Pi-Hole on RasPi
Where off course xxxx:yyyy:zzzz represents my prefix. Now I get an IP address, strangely enough always in the br1 range, even when I am connected to br0, and I get results from DNS, but somehow am not able to get on the Internet. I can when I connect to br0.
The first add-ons come from the script mentioned by Mile-Lile.
If anyone has a clue, I am very much willing to hear it... Probably something silly again
Thanks for your reply. My config works fine on BR0, but does not on BR1. I don't know if it has anything to do with this, but I cannot seem to get it to route BR1 with IPv6, where IPv4 works perfect.
Quote:
My ISP offers me a /64 IPv6 range (xxxx:yyyy:zzzz:9600::/64)
My DD-WRT got the IPv6 address within that range, like I expect it should.
I configured IPv6 with 'DHCP with Prefix Delegation' and a Prefix length of '65' and my DD-WRT LAN devices get addresses within the range 'xxxx:yyyy:zzzz:69e0::' which seems logical to me. The interesting part though is that 'ifconfig' says my br0 interface has: 'inet6 addr: xxxx:yyyy:zzzz:69e0::0/59 Scope:Global'
59 equals 32 networks of /64.
Anyway, there is still some exploring to do since IPv6 seems that new to most people, that I cannot find an applicable example or guide either. _________________ Netgear WNDR4300v1 DD-WRT v3.0 BS r29837 | Netgear R6400 DD-WRT v3.0 KB r33525M | Tickets: 5429 IPv4 & IPv6-PD | ProFTP & Samba to USB thumb | DNSMasq DHCPv6 | Pi-Hole on RasPi