From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ie0-f176.google.com (mail-ie0-f176.google.com [209.85.223.176]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (verified OK)) by huchra.bufferbloat.net (Postfix) with ESMTPS id A5BB921F0B3 for ; Mon, 21 Jan 2013 22:40:44 -0800 (PST) Received: by mail-ie0-f176.google.com with SMTP id 13so11150695iea.21 for ; Mon, 21 Jan 2013 22:40:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=eMZNwwAOCdLcoZ9q9sfW0pkJV5jVqKrUdRONyXz8WLQ=; b=etlTouVccyoc1ajFUh3fnEfv947jMYaIU4HcFE+DHl/BQDb4si+O1AMj+7/2l/hUD0 q1oLzrvV0ji0ZjNYoAFBG/xtJ3ALdgh5eGi4vuk+F0fGs0fPFE69IUHPnOfLshpBRP39 qWf9bHftsvSOo88C9lraSaya4FPsknMhf3/a28UCE6e2O6nQehpWi8lwUdI8VOeeyfiX l/++0p+LqFMr39n8x7ReGkneBLBD70ZNV8ZheZVZ7b5ldPbq6XyDinuUtHIY9PYCwtil LaC0q4obO7jWbiXTefzOu++fNQZZhwxzMJAGDQ4/YWUz2fZ4cqLsWu3JpRJlutYW8hch dsIw== MIME-Version: 1.0 X-Received: by 10.42.247.8 with SMTP id ma8mr13787446icb.1.1358836843879; Mon, 21 Jan 2013 22:40:43 -0800 (PST) Received: by 10.64.135.39 with HTTP; Mon, 21 Jan 2013 22:40:43 -0800 (PST) Date: Mon, 21 Jan 2013 22:40:43 -0800 Message-ID: From: Dave Taht To: cerowrt-devel@lists.bufferbloat.net Content-Type: multipart/alternative; boundary=90e6ba1efca0631e1104d3dadbdf Subject: [Cerowrt-devel] dnsmasq ipv6 stuff X-BeenThere: cerowrt-devel@lists.bufferbloat.net X-Mailman-Version: 2.1.13 Precedence: list List-Id: Development issues regarding the cerowrt test router project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jan 2013 06:40:44 -0000 --90e6ba1efca0631e1104d3dadbdf Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I put up the ongoing issues with getting a dhcp-pd prefix assigned to sub interfaces here: https://www.bufferbloat.net/issues/422 After prefixes are assigned (somehow) and after running through the examples in the dnsmasq-test11 tarball, it sounds like what we want by default is stateless dhcp, automatic slaac, automatic naming from dhcp, dhcpv6 and slaac addresses, and the ability to pick up dynamically assigned prefixes on the interfaces. I think that's this in /etc/dnsmasq.conf dhcp-range=3Dse00,1234::, ra-stateless, ra-names dhcp-range=3Dsw00,1234::, ra-stateless, ra-names dhcp-range=3Dsw10,1234::, ra-stateless, ra-names dhcp-range=3Dgw00,1234::, ra-stateless, ra-names dhcp-range=3Dgw10,1234::, ra-stateless, ra-names It's kind of unclear to me what 1234 could be replaced with. "ce30" works for me... Quick side note - this is another feature in this release: " Add the ability to act as an authoritative DNS server. Dnsmasq can now answer queries from the wider 'net with local data, as long as the correct NS records are set up. Only local data is provided, to avoid creating an open DNS relay. Zone transfer is supported, to allow secondary servers to be configured." Not sure how this works. Wider net shouldn't get private As, but AAAAs would be awesome. >From the other examples in the test tarball # Do DHCP and Router Advertisements for this subnet. Set the A bit in the RA # so that clients can use SLAAC addresses as well as DHCP ones. #dhcp-range=3D1234::2, 1234::500, slaac dhcp-range=3D1234::, ra-stateless, ra-names # Enable DHCPv6. Note that the prefix-length does not need to be specified # and defaults to 64 if missing/ #dhcp-range=3D1234::2, 1234::500, 64, 12h # Do Router Advertisements, BUT NOT DHCP for this subnet. #dhcp-range=3D1234::, ra-only # Do Router Advertisements, BUT NOT DHCP for this subnet, also try and # add names to the DNS for the IPv6 address of SLAAC-configured dual-stack # hosts. Use the DHCPv4 lease to derive the name, network segment and # MAC address and assume that the host will also have an # IPv6 address calculated using the SLAAC alogrithm. #dhcp-range=3D1234::, ra-names # Do Router Advertisements, BUT NOT DHCP for this subnet. # Set the lifetime to 46 hours. (Note: minimum lifetime is 2 hours.) #dhcp-range=3D1234::, ra-only, 48h # Do DHCP and Router Advertisements for this subnet. Set the A bit in the RA # so that clients can use SLAAC addresses as well as DHCP ones. #dhcp-range=3D1234::2, 1234::500, slaac # Do DHCP and Router Advertisements for this subnet. Set the A bit in the RA # so that clients can use SLAAC addresses as well as DHCP ones. #dhcp-range=3D1234::2, 1234::500, slaac # Do Router Advertisements and stateless DHCP for this subnet. Clients will # not get addresses from DHCP, but they will get other configuration information. # They will use SLAAC for addresses. #dhcp-range=3D1234::, ra-stateless # Do stateless DHCP, SLAAC, and generate DNS names for SLAAC addresses # from DHCPv4 leases. #dhcp-range=3D1234::, ra-stateless, ra-names # Do router advertisements for all subnets where we're doing DHCPv6 # Unless overriden by ra-stateless, ra-names, et al, the router # advertisements will have the M and O bits set, so that the clients # get addresses and configuration from DHCPv6, and the A bit reset, so the # clients don't use SLAAC addresses. #enable-ra --=20 Dave T=E4ht Fixing bufferbloat with cerowrt: http://www.teklibre.com/cerowrt/subscribe.html --90e6ba1efca0631e1104d3dadbdf Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I put up the ongoing issues with getting a dhcp-pd prefix assigned to sub i= nterfaces here:

h= ttps://www.bufferbloat.net/issues/422

After prefixes are assigne= d (somehow)

and after running through the examples in the dnsmasq-test11 tarball,it sounds like what we want by default is stateless dhcp,
automatic s= laac,
automatic naming from dhcp, dhcpv6 and slaac addresses,
and th= e ability to pick up dynamically assigned prefixes on the interfaces.

I think that's this in /etc/dnsmasq.conf

dhcp-range=3Dse00,1= 234::, ra-stateless, ra-names
dhcp-range=3Dsw00,1234::, ra-stateless, ra= -names
dhcp-range=3Dsw10,1234::, ra-stateless, ra-names dhcp-range=3Dgw00,1234::, ra-stateless, ra-names
dhcp-rang= e=3Dgw10,1234::, ra-stateless, ra-names

It's kind = of unclear to me what 1234 could be replaced with.
"ce30" work= s for me...

Quick side note -=A0 this is another feature in this release:
"= =A0=A0=A0=A0=A0=A0=A0=A0=A0 Add the ability to act as an authoritative DNS<= br>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 server. Dnsmasq can now answer queries= from the wider 'net
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 with local da= ta, as long as the correct NS records are set
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 up. Only local data is provided, to avoid= creating an open
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 DNS relay. Zone tran= sfer is supported, to allow secondary
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 = servers to be configured."

Not sure how this works. Wider net s= houldn't get private As, but AAAAs would be awesome.

From the other examples in the test tarball

# Do D= HCP and Router Advertisements for this subnet. Set the A bit in the RA=A0 <= br># so that clients can use SLAAC addresses as well as DHCP ones.=A0
#= dhcp-range=3D1234::2, 1234::500, slaac=A0

dhcp-range=3D1234::, ra-stateless, ra-names
# Enable DHCPv6. Note th= at the prefix-length does not need to be specified=A0
# and defaults to= 64 if missing/=A0
#dhcp-range=3D1234::2, 1234::500, 64, 12h=A0
=A0=
# Do Router Advertisements, BUT NOT DHCP for this subnet.=A0
#dhcp-range=3D1234::, ra-only=A0
=A0
# Do Router Advertisements, BU= T NOT DHCP for this subnet, also try and=A0
# add names to the DNS for = the IPv6 address of SLAAC-configured dual-stack=A0
# hosts. Use the DHC= Pv4 lease to derive the name, network segment and=A0
# MAC address and assume that the host will also have an=A0
# IPv6 addr= ess calculated using the SLAAC alogrithm.=A0
#dhcp-range=3D1234::, ra-n= ames=A0
=A0
# Do Router Advertisements, BUT NOT DHCP for this subne= t.=A0
# Set the lifetime to 46 hours. (Note: minimum lifetime is 2 hours.)=A0 #dhcp-range=3D1234::, ra-only, 48h=A0
=A0
# Do DHCP and Router Adv= ertisements for this subnet. Set the A bit in the RA=A0
# so that clien= ts can use SLAAC addresses as well as DHCP ones.=A0
#dhcp-range=3D1234::2, 1234::500, slaac=A0

# Do DHCP and Router Adv= ertisements for this subnet. Set the A bit in the RA=A0
# so that clien= ts can use SLAAC addresses as well as DHCP ones.=A0
#dhcp-range=3D1234:= :2, 1234::500, slaac=A0
=A0
# Do Router Advertisements and stateless DHCP for this subnet. Clie= nts will
# not get addresses from DHCP, but they will get other configur= ation information.
# They will use SLAAC for addresses.
#dhcp-range= =3D1234::, ra-stateless

# Do stateless DHCP, SLAAC, and generate DNS names for SLAAC addresses<= br># from DHCPv4 leases.
#dhcp-range=3D1234::, ra-stateless, ra-names
# Do router advertisements for all subnets where we're doing DHCPv= 6
# Unless overriden by ra-stateless, ra-names, et al, the router
# advert= isements will have the M and O bits set, so that the clients
# get addre= sses and configuration from DHCPv6, and the A bit reset, so the
# client= s don't use SLAAC addresses.
#enable-ra




--
Dave T=E4ht

Fixing bufferbloat = with cerowrt: http://www.teklibre.com/cerowrt/subscribe.html=20 --90e6ba1efca0631e1104d3dadbdf--