Discussion:
[Dnsmasq-discuss] How to run dnsmasq as RA with A bit and O bit but without dhcpv6
Xu He Jie
2013-04-28 09:53:30 UTC
Permalink
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?

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?

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?

I will appreciate any help from you!

Thanks
Alex
Simon Kelley
2013-04-30 09:32:53 UTC
Permalink
Post by Xu He Jie
Hi, folks
I am trying to run RA and stateless dhcpv6 in separeted host.
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.
Post by Xu He Jie
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.
Post by Xu He Jie
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.
Post by Xu He Jie
I will appreciate any help from you!
Thanks
Alex
_______________________________________________
Dnsmasq-discuss mailing list
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Xu He Jie
2013-05-02 07:37:15 UTC
Permalink
Simon, many thanks for your reply! Your reply resolve all my problem!
Post by Simon Kelley
Post by Xu He Jie
Hi, folks
I am trying to run RA and stateless dhcpv6 in separeted host.
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.
Post by Xu He Jie
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.
Post by Xu He Jie
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.
Post by Xu He Jie
I will appreciate any help from you!
Thanks
Alex
_______________________________________________
Dnsmasq-discuss mailing list
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
_______________________________________________
Dnsmasq-discuss mailing list
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Loading...