[Dnsmasq-discuss] replace radvd with dnsmasq

iw3gtf at tiscali.it iw3gtf at tiscali.it
Mon Jul 15 10:39:03 BST 2013


Hi,

I must say first I'm rather new to 'dnsmasq'.
I'm using 'dnsmasq' v2.66 ounder linux:

# 
dnsmasq -k --log-facility=- --pid-file=/var/run/dnsmasq.pid --no-poll --enable-ra --leasefile-ro

dnsmasq[496]: started, version 2.66 cachesize 150
dnsmasq[496]: compile time options: IPv6 GNU-
getopt no-DBus no-i18n no-IDN DHCP DHCPv6 no-scripts no-TFTP no-conntrack ipset auth
dnsmasq-dhcp
[496]: IPv6 router advertisement enabled
dnsmasq[496]: failed to load names from /etc/hosts: No 
such file or directory

I'm trying to configure dnsmasq as a replacement for 'radvd' but It does 
not work
as expected.

Starting 'radvd' with the following simple config file:

# cat /etc/radvd.
conf 
interface eth0 {
 AdvSendAdvert on;
 prefix 2001:db8:0:1::/64 {
  AdvOnLink on;
  
AdvAutonomous on;
 };
};

has the immediate effect of assigning an ipv6 address to the eth0 network 
device on the
host running 'radvd':

# ip a show dev eth0
2: eth0: <BROADCAST,MULTICAST,UP,
LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
    link/ether 00:03:c5:0c:7c:71 brd ff:
ff:ff:ff:ff:ff
    inet 10.0.0.53/8 brd 10.255.255.255 scope global eth0
       valid_lft forever 
preferred_lft forever
    inet6 2001:db8:0:1:203:c5ff:fe0c:7c71/64 scope global dynamic 
       
valid_lft 86393sec preferred_lft 14393sec
    inet6 fe80::203:c5ff:fe0c:7c71/64 scope link 
       
valid_lft forever preferred_lft forever

*and* on every other host on the network segment connected 
to eth0.

I cannot reproduce the same behavior with 'dnsmasq'.
I've tried different configuration 
variants without results.

Here are some questions:

How do I tell 'dnsmasq' which ipv6 network 
(prefix) it should use ?
Am I supposed to manually assign an ipv6 address to the host before 
starting 'dnsmasq' ?
Could you please suggest a simple config file for 'dnsmasq' that reproduces 
the behavior of 'radvd' ? 

thanks you for your attention.

giorgio



Invita i tuoi amici e Tiscali ti premia! Il consiglio di un amico vale più di uno spot in TV. Per ogni nuovo abbonato 30 € di premio per te e per lui! Un amico al mese e parli e navighi sempre gratis: http://freelosophy.tiscali.it/



More information about the Dnsmasq-discuss mailing list