Can't get IPv6 working on dnsmasq

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
joshua286
DD-WRT Novice


Joined: 23 May 2018
Posts: 1

PostPosted: Wed May 23, 2018 23:03    Post subject: Can't get IPv6 working on dnsmasq Reply with quote
I have it working just fine on my guest network only (how I want it for now), using the options within the ipv6 setup tab.
here are my current configs

DHCP6c custom enabled

config:
Code:

interface vlan2 {
 send ia-pd 0;
 send rapid-commit;
 request domain-name-servers;
 script "/sbin/dhcp6c-state";
};
id-assoc pd 0 {
 prefix-interface br1 {
  sla-id 0;
  sla-len 0;
 };
};
id-assoc na 0 { };


dhcp6s disabled

radvd enabled
radvd custom enabled

config:
Code:

interface br1
{
 IgnoreIfMissing on;
 AdvSendAdvert on;
 MinRtrAdvInterval 3;
 MaxRtrAdvInterval 10;
 AdvHomeAgentFlag off;
 AdvManagedFlag off;
 AdvOtherConfigFlag on;
 AdvLinkMTU 1280;
 prefix ::/64
 {
  AdvOnLink on;
  AdvAutonomous on;
 };
 RDNSS 2001:558:feed::1 2001:558:feed::2 {};
};


when I enable DNSMASQ I tried with RADVD disabled or enabled with the following addition settings and it didn't seem to work ether way, no machines would get an ip within the right range on the specified interface.
also if I add any of the quiet options it seems to make DNSMASQ crash entirely.

DNSMASQ config:
Code:

enable-ra
ra-param=br0,10,300
bogus-priv
dhcp-range=br1,::1000, ::3000, constructor:br1, 12h


this is my first post, so sorry if the formating is weird. Also I already read though a lot of the other posts on this and nothing seemed to work.
such as:

https://www.dd-wrt.com/phpBB2/viewtopic.php?p=1010585
https://www.dd-wrt.com/wiki/index.php/DNSMasq_as_DHCP_server

@JAMESMTL seems very helpful if you are still around.
Sponsor
James2k
DD-WRT Guru


Joined: 23 Oct 2011
Posts: 549

PostPosted: Thu May 24, 2018 6:12    Post subject: Reply with quote
You can actually have dnsmasq handle all IPv6 stuff without radvd or anything else if you want.

https://www.dd-wrt.com/wiki/index.php/DNSMasq_as_DHCP_server#Using_DNSMasq_for_Router_advertisements_.28IPv6.29

I run my main LAN and guest wireless interface with two different IPv6 /64 prefixes. You can use dnsmasq to automatically provide a DHCP range for IPv6 using the commands mentioned in the wiki.

I believe if I remember correctly I did have to add some manual start-up commands related to IPv6 otherwise connectivity didn't work.

My IPv6 for br0 is through a 6in4 tunnel, which is setup on the IPv6 page with no problems. I do however need to assign a IPv6 address to br0 though, so the router has an IPv6 address.

Code:

ip -6 addr add 2001:470:xxxx:xxxxx::1/64 dev br0


Replace with your IPv6 subnet. 2001:470 is Hurricane Electric, so make sure to replace the whole subnet, I've just left it in the examples for clarity.

Then for the guest wireless, because I'm not using radvd or anything else. Also manually add the required IPv6 subnet to it.

Code:

ip -6 addr add 2001:470:xxxx:xxxx::/64 dev wl0.1
ip -6 addr add 2001:470:xxxx:xxxx::1/64 dev wl0.1


This is another /64 carved out of the /48 Hurricane Electric provides.

You can add the ip commands to your startup but its better to use something like a wanup script, because if you make changes which refreshes the network interfaces, it might remove them.

https://www.dd-wrt.com/wiki/index.php/Script_Execution

This is my dnsmasq config:

Code:

dhcp-range=br0,::1000,::FFFF,constructor:br0,ra-stateless,ra-names,4h
dhcp-range=wl0.1,::1000,::FFFF,constructor:wl0.1,ra-stateless,ra-names,4h
dhcp-option=option6:dns-server,[2001:470:xxxx:xxxxx::x],[2001:470:xxxx:xxxx::x]
dhcp-option=wl0.1,option6:dns-server,[2620:0:ccc::2],[2620:0:ccd::2]
ra-param=br0,60,1800
ra-param=wl0.1,60,1800
enable-ra
quiet-ra
quiet-dhcp
quiet-dhcp6


I have local DNS servers that are IPv6 capable, so I point my br0 IPv6 clients to use those. Ultimately these provide local DNS for Active Directory which then forward everything else to dnsmasq. For the guest wireless I just the IPv6 OpenDNS sandbox.

Hope this helps you.

_________________
James

Main router:

Netgear R7000 overclocked to 1.2GHz - DD-WRT v3.0-r35965M kongac

IPv6 6in4 (HE.net), OpenVPN (with PBR and split tunnelling), Entware, dnsmasq with ipset

Easy ipset support for the R7000

VPN speed: Download: 77.96 Mbps Upload: 5.00 Mbps (AES-128-CBC HMAC-SHA1)

Yes you can get 50 Mbps+ with OpenVPN on a R7000 if you configure it properly!

Previous routers:

ASUS RT-N66U - The Dark Knight
WNR2000v3 - Bought on the cheap for someone else, neutered crap
WNR3500Lv1 - First venture into the DD-WRT world
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum