[Cerowrt-devel] dnsmasq ipv6 stuff

Richard Brown Rich.Brown at intermapper.com
Thu Jan 24 20:55:53 EST 2013


[Sorry - I realized an earlier request asked to see the auto-generated /var/etc/dnsmasq.conf file. It's appended ]

> I'm still confused about using CeroWrt 3.7.3-2 to give out v6 addresses to my laptop (it's not working). Here's what I see:
> 
> - I'm using the HE.net 6in4 tunnel to get a /48 for my home. The router itself has a good v6 address, and can ping global v6 addresses. 
> 
> - ifconfig in the router shows that each of the five interfaces (se00, sw00, sw10, gw00, gw10) have addresses assigned from my /48 (see the network file below).
> 
> - The only uncommented lines in the /etc/dnsmasq.conf file are a "enable-ra" and a set of dhc-range lines for each of the interfaces. (see below) The prefixes for each of the interfaces match the prefixes in the ifconfig command.
> 
> - I have not modified /etc/config/dhcp, as it didn't seem to make any difference what I put there.
> 
> Any thoughts? Thanks.
> 
> Rich
> 
> =====================================
> root at OpenWrt:/etc# cat /etc/config/network
> 
> config interface 'loopback'
> 	option ifname 'lo'
> 	option proto 'static'
> 	option ipaddr '127.0.0.1'
> 	option netmask '255.0.0.0'
> 
> config interface 'se00'
> 	option ifname 'se00'
> 	option proto 'static'
> 	option ipaddr '172.30.42.1'
> 	option netmask '255.255.255.224'
> 	option ip6assign '64'
> 
> config interface 'ge00'
> 	option ifname 'ge00'
> 	option proto 'dhcp'
> 
> config interface 'ge01'
> 	option ifname '@ge00'
> 	option proto 'dhcpv6'
> 	option broadcast '1'
> 	option metric '2048'
> 	option reqprefix '60'
> 
> config interface 'sw00'
> 	option type 'none'
> 	option proto 'static'
> 	option ipaddr '172.30.42.65'
> 	option netmask '255.255.255.224'
> 	option ip6assign '64'
> 
> config interface 'sw10'
> 	option type 'none'
> 	option proto 'static'
> 	option ipaddr '172.30.42.97'
> 	option netmask '255.255.255.224'
> 	option ip6assign '64'
> 
> config switch
> 	option name 'rtl8366s'
> 	option reset '1'
> 	option enable_vlan '0'
> 	option blinkrate '2'
> 	option max_length '3'
> 
> config switch_vlan
> 	option device 'rtl8366s'
> 	option vlan '1'
> 	option ports '0 1 2 3 5t'
> 
> config switch_port
> 	option device 'rtl8366s'
> 	option port '1'
> 	option led '6'
> 
> config switch_port
> 	option device 'rtl8366s'
> 	option port '2'
> 	option led '9'
> 
> config switch_port
> 	option device 'rtl8366s'
> 	option port '5'
> 	option led '2'
> 
> config interface 'gw00'
> 	option type 'none'
> 	option proto 'static'
> 	option ipaddr '172.30.42.129'
> 	option netmask '255.255.255.224'
> 	option ip6assign '64'
> 
> config interface 'gw10'
> 	option type 'none'
> 	option proto 'static'
> 	option ipaddr '172.30.42.161'
> 	option netmask '255.255.255.224'
> 	option ip6assign '64'
> 
> config interface 'gw01'
> 	option proto 'ahcp'
> 
> config interface 'gw11'
> 	option proto 'ahcp'
> 
> config interface 'henet'
> 	option proto '6in4'
> 	option mtu '1424'
> 	option ttl '64'
> 	option peeraddr '209.51.161.14'
> 	option ip6addr '2001:470:1f06:64::2/64'
> 	option ip6prefix '2001:470:8a63::/48'
> 	option tunneled 'xxxxxx'
> 	option username 'tbxxxxx'
> 	option password 'xxxxx
> 
> ==================
> root at OpenWrt:/etc# cat /etc/dnsmasq.conf 
> # Added 24Jan2013 -reb
> enable-ra
> dhcp-range=se00,2001:470:8a63:2::,ra-stateless,ra-names
> dhcp-range=sw00,2001:470:8a63:3::,ra-stateless,ra-names
> dhcp-range=sw10,2001:470:8a63:4::,ra-stateless,ra-names
> dhcp-range=gw00,2001:470:8a63:0::,ra-stateless,ra-names
> dhcp-range=gw10,2001:470:8a63:1::,ra-stateless,ra-names
> 
==================
root at OpenWrt:/tmp/etc# cat /var/etc/dnsmasq.conf 
# auto-generated config file from /etc/config/dhcp
conf-file=/etc/dnsmasq.conf
dhcp-authoritative
domain-needed
localise-queries
read-ethers
bogus-priv
expand-hosts
dhcp-script=/etc/dnsmasq_net6.sh
cache-size=5000
port=53
domain=home.lan
server=/home.lan/
except-interface=ge00
dhcp-leasefile=/tmp/dhcp.leases
resolv-file=/tmp/resolv.conf.auto
stop-dns-rebind
rebind-localhost-ok


address=/gw.home.lan/172.30.42.1
ptr-record=1.42.30.172.in-addr.arpa,gw.home.lan
address=/wpad.home.lan/172.30.42.1
ptr-record=1.42.30.172.in-addr.arpa,wpad.home.lan


dhcp-range=se00,172.30.42.2,172.30.42.27,255.255.255.224,24h
dhcp-option=se00,42,0.0.0.0
dhcp-option=se00,44,0.0.0.0
dhcp-option=se00,45,0.0.0.0
dhcp-option=se00,46,8
dhcp-range=sw00,172.30.42.66,172.30.42.91,255.255.255.224,24h
dhcp-option=sw00,42,0.0.0.0
dhcp-option=sw00,44,0.0.0.0
dhcp-option=sw00,45,0.0.0.0
dhcp-option=sw00,46,8
dhcp-range=sw10,172.30.42.98,172.30.42.123,255.255.255.224,24h
dhcp-option=sw10,42,0.0.0.0
dhcp-option=sw10,44,0.0.0.0
dhcp-option=sw10,45,0.0.0.0
dhcp-option=sw10,46,8
dhcp-range=gw00,172.30.42.130,172.30.42.155,255.255.255.224,24h
dhcp-option=gw00,42,0.0.0.0
dhcp-option=gw00,44,0.0.0.0
dhcp-option=gw00,45,0.0.0.0
dhcp-option=gw00,46,8
dhcp-range=gw10,172.30.42.162,172.30.42.187,255.255.255.224,24h
dhcp-option=gw10,42,0.0.0.0
dhcp-option=gw10,44,0.0.0.0
dhcp-option=gw10,45,0.0.0.0
dhcp-option=gw10,46,8
no-dhcp-interface=ge00
no-dhcp-interface=gw01
no-dhcp-interface=gw11






More information about the Cerowrt-devel mailing list