Quantcast
Channel: EdgeRouter topics
Viewing all articles
Browse latest Browse all 20028

IPv6, DNS and DNSMASQ

$
0
0

I've long used dnsmasq to manage DHCP and DNS for my LAN. The integration of IP address allocation with DNS is seamless and very useful.

 

For the last few months I've been running dnsmasq as the DNS and DHCP server on my Edgerouter, issuing IPv4 addresses and it works very well. 

 

Recently I have got IPv6 working on the Edgerouter against BT Broadband. 

 

I am using dhcp-pd on the Edgerouter which allocates a ::1 IPv6 address to my internal LAN interface and then uses SLAAC to issue addresses to the devices on the LAN. Works nicely.

 

This is the relevant part of the config.boot:

pppoe 0 {                                                                                default-route auto                                                                    dhcpv6-pd {                                                                              pd 0 {                                                                                   interface eth1 {                                                                          host-address ::1                                                                     prefix-id :1                                                                         service slaac                                                                     }                                                                                    prefix-length /56                                                                }                                                                                     prefix-only                                                                          rapid-commit enable                                                              }         

 I have also enabled dhcpv6 on in dnsmasq with a directive line this:

 

dhcp-range=set=eth1,::1,::ff,constructor:eth1,ra-names

This is allocating IPv6 addresses to the devices on the LAN and their name are registered into dnsmasq's DNS.

 

The problem I have is that each device on the LAN seems to get two IPv6 addresses (in additional to fe80 one). One from the EdgeRouter's native dhcp-pd (unresolvable) and one from dnsmasq (dns resolvable).

 

Ideally I'd like to leave the dhcp-pd configuration in place to allocate the IPv6 address to the LAN interface, but not allocate client addresses and leave that to dnsmasq.

 

Any suggestions on how I can turn off the slaac address allocation?

 

Cheers,

 

Steve

 


Viewing all articles
Browse latest Browse all 20028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>