[Dnsmasq-discuss] How can I use dnsmasq to replace radvd

Albert ARIBAUD albert.aribaud at free.fr
Sun Jun 1 11:42:52 UTC 2014


Hi Zac,

Le Sun, 1 Jun 2014 12:20:30 +0100, Zac Tolley <zac at thetolleys.com> a
écrit :

> I have a small network which currently uses dnsmasq for ip v4 address allocation, DNS resolution and setting things like the ip v4 router address.  It’s a real simple setup, I just wanted to override the fact that my network hosts used my isp’s DNS and let me resolve the names of the servers on my network.
> 
> I’ve also setup ipv6 and run radvd but I think dnsmasq can do that too, i just don’t know how.
> 
> Any pointers?
> 
> my radvd config is 
> 
> interface eth0 {
>       AdvSendAdvert on;
>       AdvManagedFlag on;
>       AdvOtherConfigFlag on;
>       AdvLinkMTU 1280;
>       MinRtrAdvInterval 3;
>       MaxRtrAdvInterval 4;
>       prefix 2a01:348:6:876d::1/64 {
>             AdvOnLink on;
>             AdvAutonomous on;
>             AdvRouterAddr on;
>       };
> };

I would say something along the lines of adding this to your dnsmasq
config:

enable-ra
dhcp-range=2a01:348:6:876d::,slaac

(then fine-tune the RA parameters, also add an ra-param line, see the
man page)

If you also give (and resolve) names for your local machines, then you
might want to put "ra-names" instead of "slaac".

Amicalement,
-- 
Albert.



More information about the Dnsmasq-discuss mailing list