[Dnsmasq-discuss] How to run dnsmasq as RA with A bit and O bit but without dhcpv6

Xu He Jie xuhj at linux.vnet.ibm.com
Thu May 2 08:37:15 BST 2013


Simon, many thanks for your reply! Your reply resolve all my problem!

On 2013年04月30日 17:32, Simon Kelley wrote:
> On 28/04/13 10:53, Xu He Jie wrote:
>> Hi, folks
>>
>> I am trying to run RA and stateless dhcpv6 in separeted host.
>>
>> I have tried:
>> dnsmasq --interface l3outer -k -d --dhcp-range=2001:0:0:1::,ra-stateless
>> --no-resolv -I lo
>> But I found it still provide stateless dhcpv6 service.
>> How can I run dnsmasq as RA with A bit and O bit, but without stateless
>> dhcpv6?
>>
>
> Not perfect, but something like
>
> --dhcp-ignore=tag:l3outer
>
> should inhibit DHCP on that interface.
>
>> And I run dnsmasq as stateless dhcpv6 as below:
>> dnsmasq --interface l3outer -k -d --dhcp-range=::,static --dhcp-option
>> option6:dns-server,[2111:0:0:1::3] --no-resolv -I lo
>> I tested that works for me. So it is the right way, right?
>
> Yes, that looks OK.
>>
>> And another question, I found dnsmasq always provide 'rdnss' whatever
>> the mode
>>
>> 17:47:47.803104 IP6 (class 0xc0, hlim 255, next-header ICMPv6 (58)
>> payload length: 88) fe80::4ca5:93ff:fed0:7467 > ff02::1: [icmp6 sum ok]
>> ICMP6, router advertisement, length 88
>> hop limit 64, Flags [other stateful], pref medium, router lifetime
>> 1800s, reachable time 0s, retrans time 0s
>> prefix info option (3), length 32 (4): 2001:0:0:1::/64, Flags [onlink,
>> auto], valid time 3600s, pref. time 3600s
>> 0x0000: 40c0 0000 0e10 0000 0e10 0000 0000 2001
>> 0x0010: 0000 0000 0001 0000 0000 0000 0000
>> mtu option (5), length 8 (1): 1500
>> 0x0000: 0000 0000 05dc
>> source link-address option (1), length 8 (1): 4e:a5:93:d0:74:67
>> 0x0000: 4ea5 93d0 7467
>> rdnss option (25), length 24 (3): lifetime 1200s, addr: 2001:0:0:1::1
>> 0x0000: 0000 0000 04b0 2001 0000 0000 0001 0000
>> 0x0010: 0000 0000 0001
>>
>> Is this right behavior?
>
> You should be able to stop it by configuring an empty DNS-server option.
>
> dhcp-option=tag:l3outer, option6:dns-server
>
> Cheers,
>
> Simon.
>
>>
>> I will appreciate any help from you!
>>
>> Thanks
>> Alex
>>
>>
>>
>>
>>
>> _______________________________________________
>> Dnsmasq-discuss mailing list
>> Dnsmasq-discuss at lists.thekelleys.org.uk
>> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
>
>




More information about the Dnsmasq-discuss mailing list