[Dnsmasq-discuss] 6in4, dhcp srv still offers IPv4. is lan still needed?

glphvgacs darwinskernel at gmail.com
Mon Sep 22 19:48:55 BST 2014


hello,
i posted a earlier version fo this on openwrt-users list with some
interesting responds. here is the tip of the thread just in case:
https://lists.openwrt.org/pipermail/openwrt-users/2014-September/003139.html

now hoping for the same here...

so i have been banging my head against the wall on this one for way too
long and now have some legitimate question, i think.

first network topology:

ISP->modem->wrt->my_machine

there is no IPv6 offered from ISP and HE is used as the broker. 


------------------/etc/dnsmasq.conf:
-------------BEGINS-----------------
log-queries
log-dhcp
#cache-size=512
cache-size=1024
# i have used ,static here which resulted in no IPv6 being offered at all
# i tested earlier with (note 'static')
# dhcp-range=2001:470:1f07:12d::,static
# which resulted in no IPv6 being offered at all
dhcp-range=2001:470:1f07:12d::,ra-names
enable-ra
------------------/etc/dnsmasq.conf:
-------------ENDS-------------------

client side log of DHCP negotiations for ethernet on my_machine:

dhcpcd[29585]: enp3s0: carrier acquired
dhcpcd[29585]: enp3s0: IAID 41:38:18:b0
dhcpcd[29585]: enp3s0: soliciting an IPv6 router
dhcpcd[29585]: enp3s0: Router Advertisement from fe80:::
dhcpcd[29585]: enp3s0: adding address 2001:***:***7:***:****:****:****:****/64
dhcpcd[29585]: enp3s0: adding route to 2001:***:***:***::/64
dhcpcd[29585]: enp3s0: adding default route via fe80::6a7f:74ff:fe30:f2e2
dhcpcd[29585]: enp3s0: rebinding lease of 192.168.1.222
dhcpcd[29585]: enp3s0: leased 192.168.1.222 for 43200 seconds
dhcpcd[29585]: enp3s0: adding route to 192.168.1.0/24
dhcpcd[29585]: enp3s0: adding default route via 192.168.1.1
dhcpcd[29585]: enp3s0: Router Advertisement from fe80:::


now what i would like to happend is for dnsmasq to stop offering IPv4.
i.e. do dhcpv6 but no traditional dhcp.  in other words a pure IPv6 network
with no IPv4 offered, something like this:
http://www.rfc-editor.org/rfc/rfc6586.txt


also dnsmasq is running on openwrt so if someone knows about this one
please feel free to chip in. question here is whether dnsmasq reads the
following file and whether creation of and IPv4 subnet on the following
'lan' interface has any effect on dnsmasq's behaviour in so far as the
first question's concerned.

--------------------------/etc/config/network:
------------------BEGINS----------------------

...

#### HE LAN configuration
#option ip6addr '2001:470:8c7e::1/48'
#option ip6prefix '2001:470:1f07:12d::/64'
config interface lan
  option ifname "eth0.1"
  option type 'bridge'
  option proto 'static'
  option ipaddr '192.168.1.1'
  option netmask '255.255.255.0'
  option ip6addr '2001:***:***7:***::1/64'
  option ip6assign 60
  option mtu 9000
  option verbose 'true'

#### WAN configuration
config interface wan
	option ifname "eth0.2"
	option proto dhcp


config interface henet
  option proto '6in4'
  option 'mtu' '1480'
  option peeraddr '209.51.161.14'
  option ip6addr '2001:***:***6:***::1/64'
  option ip6prefix '2001:***:***7:***::1/64'
  option tunnelid 'omitted'
  option username 'omitted'
  option updatekey 'omitted'
  option verbose 'true'

--------------------------/etc/config/network:
-------------------ENDS----------------------



More information about the Dnsmasq-discuss mailing list