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 si...@thekelleys.org.uk wrote: On 17/01/14 14:21, Shixiong Shang wrote: Hi, Simon and Albert: Thank both of you

[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

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 si...@thekelleys.org.uk 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. :( What

[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

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 si...@thekelleys.org.uk wrote: On 18/12/13 15:21, Shixiong Shang wrote: Hi, Simon: This is very helpful! Thanks a lot for your confirmation! A quick question

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

2013-12-18 Thread Shixiong Shang
si...@thekelleys.org.uk 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 should enable dhcpv6 + ra; if the dhcp

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

2013-12-18 Thread Shixiong Shang
:08 PM, Simon Kelley si...@thekelleys.org.uk 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 should enable dhcpv6 + ra

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 si...@thekelleys.org.uk 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 range

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 sparkofwisdom.cl...@gmail.com wrote: Hi, Simon: I put the range inside —dhcp-range filed as shown below

[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

[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

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

2013-12-17 Thread Shixiong Shang
, but not 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 si...@thekelleys.org.uk wrote: On 17/12/13 12:29, Shixiong Shang wrote: Hi, guys: I tried both “slaac” mode

[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

[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

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 sparkofwisdom.cl...@gmail.com wrote: Hi, expert: I am using dnsmasq as DHCPv6 server

[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

[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: