[Dnsmasq-discuss] Dual stack host file format

2013-07-29 Thread Shixiong Shang
Hi, I am trying to use dnsmasq to assign both IPv4 and IPv6 address in dual-stack environment. The dnsmasq was launched with several additional options: root 19991 19990 0 11:09 ?00:00:00 dnsmasq --no-hosts --no-resolv --strict-order --bind-interfaces --interface=ns-7f72b3ad-1a --exc

[Dnsmasq-discuss] DNSMasq doesn't see DHCPv6 Solicit msg

2013-07-29 Thread Shixiong Shang
Hi, I am using DNSMasq to assign IPv6 address to client machine (Centos 6.4). Based on sniffer trace, I can see DHCP Solicit msg from client addressed to ff02::1:2 at UDP port 547: 11:18:25.140542 IP6 (hlim 1, next-header UDP (17) payload length: 60) fe80::f816:3eff:fe95:2389.546 > ff02::1:2.547:

[Dnsmasq-discuss] dns-server in opts file doesn't work

2013-12-17 Thread Shixiong Shang
Hi, experts: I tried to leverage opts file to modify the recursive dns server IP conveyed in RA. The entry in the opts file is shown below: tag:tag1,option6:dns-server,[2001:4860:4860::] I tcpdumped the outgoing RA message, but the dns server IP is still set to the IPv6 address dnsmasq bou

[Dnsmasq-discuss] Difference between SLAAC and RA-ONLY mode

2013-12-17 Thread Shixiong Shang
Hi, guys: I tried both “slaac” mode and “ra-only” modes with dnsmasq version 2.66. One thing I noticed was, both modes set the same bit value in the RA: M-bit = 0, O-bit = 0, A-bit = 1, L-bit = 1. I am wondering what’s the difference between these two modes then? Would you please shed some lig

Re: [Dnsmasq-discuss] Difference between SLAAC and RA-ONLY mode

2013-12-17 Thread Shixiong Shang
dhcpv6…..Same as ra-only. In other words, how slaac/ra-only set MOAL bits depends on dhcp-range…..Is my understanding correct? Shixiong On Dec 17, 2013, at 11:55 AM, Simon Kelley wrote: > On 17/12/13 12:29, Shixiong Shang wrote: >> Hi, guys: >> >> I tried both “slaac” mod

Re: [Dnsmasq-discuss] dns-server in opts file doesn't work

2013-12-17 Thread Shixiong Shang
PM, Simon Kelley wrote: > On 17/12/13 12:30, Shixiong Shang wrote: >> Hi, experts: >> >> I tried to leverage opts file to modify the recursive dns server IP conveyed >> in RA. The entry in the opts file is shown below: >> >> tag:tag1,option6:dns-server,[2

[Dnsmasq-discuss] IPv6 host file syntax

2013-12-17 Thread Shixiong Shang
Hi, expert: I am using dnsmasq as DHCPv6 server and I created host file for my IPv6 DHCP range. The first field is DUID calculated by MAC, followed by hostname, and then IPv6 address. 00:03:00:06:fa:16:3e:03:63:36,host-2001-db8-3--1.openstacklocal,2001:db8:3::1 00:03:00:06:fa:16:3e:95:5f:6a,hos

[Dnsmasq-discuss] DHCPv6 default port

2013-12-17 Thread Shixiong Shang
Hi, expert: I am using dnsmasq as DHCPv6 server. By default, dnsmasq is bound to port 53. I used --port option to bind it to UDP/547, since this is what my DHCPv6 client sends the query to. However, the dnsmasq never saw the DHCPv6 packets coming in afterwards. Based on tcpdump, I could see DHC

Re: [Dnsmasq-discuss] DHCPv6 default port

2013-12-17 Thread Shixiong Shang
:::* 2533/dnsmasq udp6 0 0 fe80::f816:3eff:fe5:547 :::* 2533/dnsmasq Shixiong On Dec 17, 2013, at 1:15 PM, Shixiong Shang wrote: > Hi, expert: > > I am using dnsmasq as DHCPv6 server. By default, dnsmasq is

Re: [Dnsmasq-discuss] Difference between SLAAC and RA-ONLY mode

2013-12-18 Thread Shixiong Shang
mon Kelley wrote: > >> On 17/12/13 17:34, Shixiong Shang wrote: >> Hi, Simon: >> >> Thanks a lot for your quick clarification! Just want to make sure I >> clearly understand what you mean….if the dhcp-range contains a range >> of IPv6 address, then slaac shoul

Re: [Dnsmasq-discuss] Difference between SLAAC and RA-ONLY mode

2013-12-18 Thread Shixiong Shang
:08 PM, Simon Kelley wrote: > On 17/12/13 17:34, Shixiong Shang wrote: >> Hi, Simon: >> >> Thanks a lot for your quick clarification! Just want to make sure I >> clearly understand what you mean….if the dhcp-range contains a range >> of IPv6 address, then slaac

Re: [Dnsmasq-discuss] IPv6 host file syntax

2013-12-18 Thread Shixiong Shang
Got it! Now it works like a charm! Thanks, Simon! Thanks, Bertrand!! On Dec 17, 2013, at 4:18 PM, Simon Kelley wrote: > On 17/12/13 18:00, Shixiong Shang wrote: >> Hi, expert: >> >> I am using dnsmasq as DHCPv6 server and I created host file for my IPv6 DHCP >>

Re: [Dnsmasq-discuss] Difference between SLAAC and RA-ONLY mode

2013-12-18 Thread Shixiong Shang
I just found a workaround….If I replaced “slaac” mode with “static” mode, then it just worked fine…But I don’t understand why it worked. :( On Dec 18, 2013, at 1:15 PM, Shixiong Shang wrote: > Hi, Simon: > > I put the range inside —dhcp-range filed as shown below to enable DHCPv

Re: [Dnsmasq-discuss] Difference between SLAAC and RA-ONLY mode

2013-12-19 Thread Shixiong Shang
I am using version 2.66. > On Dec 19, 2013, at 5:31 AM, Simon Kelley wrote: > >> On 19/12/13 04:02, Shixiong Shang wrote: >> I just found a workaround….If I replaced “slaac” mode with “static” mode, >> then it just worked fine…But I don’t understand why it worked.

[Dnsmasq-discuss] RA-Stateless mode question

2013-12-19 Thread Shixiong Shang
Hi, expert: I am using the dnsmasq in DHCPv6 Stateless mode. Based on the sniffer trace, I saw my DHCPv6 client solicit optional information, but dnsmasq replied with nothing. The log showed “no address available”….Anything I did wrong? In addition, I saw in the man page that there is another w

Re: [Dnsmasq-discuss] Difference between SLAAC and RA-ONLY mode

2013-12-19 Thread Shixiong Shang
Tried and verified it! Working pretty well now! Thanks, Simon! Shixiong On Dec 19, 2013, at 10:48 AM, Simon Kelley wrote: > On 18/12/13 15:21, Shixiong Shang wrote: >> Hi, Simon: >> >> This is very helpful! Thanks a lot for your confirmation! >> >> A quick

[Dnsmasq-discuss] tags in opts file

2013-12-20 Thread Shixiong Shang
Hi, experts: I have an opts_file which contains the entries for two tags, tag0 and tag1. Two dnsmasq instances are sharing the same opts_file. In this case, is it possible to let the first dnsmasq only read the opts entires beginning with tag0, and let the 2nd dnsmasq instance only read the opt

[Dnsmasq-discuss] Sending RA without dhcp-range

2014-01-16 Thread Shixiong Shang
Hi, experts: Is it possible that dnsmasq can send out RA with either A=0, MO=1 (i.e. for DHCPv6 Stateful), or AO=1, M=0 (i.e. for DHCPv6 Stateless) WITHOUT dhcp-range? What I am trying to achieve here is using dnsmasq to send out RA to trigger DHCPv6 Stateful or DHCPv6 Stateless mode without ac

Re: [Dnsmasq-discuss] Sending RA without dhcp-range

2014-01-17 Thread Shixiong Shang
ote: >> Le 17/01/2014 05:30, Shixiong Shang a écrit : >>> Hi, experts: >>> >>> Is it possible that dnsmasq can send out RA with either A=0, MO=1 >>> (i.e. for DHCPv6 Stateful), or AO=1, M=0 (i.e. for DHCPv6 Stateless) >>> WITHOUT dhcp-range? Wh

Re: [Dnsmasq-discuss] Sending RA without dhcp-range

2014-01-17 Thread Shixiong Shang
Just think out loud, can I use those modes with “—dhcp-range” so RA will be sent, and then use “--no-dhcp-interface=“ to disable DHCPv6 on the corresponding interface? :D Shixiong On Jan 17, 2014, at 9:21 AM, Shixiong Shang wrote: > Hi, Simon and Albert: > > Thank both of you

Re: [Dnsmasq-discuss] Sending RA without dhcp-range

2014-01-17 Thread Shixiong Shang
shutdown the DHCPv6 port, so dnsmasq won’t listen to DHCPv6 message? Or change it from different port? Thanks again! Shixiong On Jan 17, 2014, at 9:32 AM, Simon Kelley wrote: > On 17/01/14 14:21, Shixiong Shang wrote: >> Hi, Simon and Albert: >> >> Thank both of y

[Dnsmasq-discuss] DHCPv6-Stateless server without sending RA

2014-01-31 Thread Shixiong Shang
Hi, Simon: Is it possible that we can launch dnsmasq as DHCPv6 Stateless server WITHOUT sending RA? I tried the following configuration, but I still saw RA initiated from dnsmasq even “—enable-ra” was omitted. nobody 16448 1 0 23:57 ?00:00:00 dnsmasq --no-hosts --no-resolv --str