Re: [OpenWrt-Devel] [BB-rc3] Disabling DHCPv6 also disables IPv6 SLAAC

2014-08-23 Thread Steven Barth
disabled is the same as omitting the dhcpv6 option. none is not valid in 
this context and causes havoc it seems ;)___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [BB-rc3] Disabling DHCPv6 also disables IPv6 SLAAC

2014-08-22 Thread Baptiste Jonglez
Hi,

The default behaviour of BB is to hand out statically assigned IPv6
addresses through DHCPv6.  To disable this behaviour and only keep SLAAC
through RA, I disabled dhcpv6 in /etc/config/dhcp:

config dhcp 'lan'
   option interface 'lan'
   option start '70'
   option limit '64'
   option leasetime '1h'
   option dhcpv6 'none'
   option ra 'server'


However, that didn't work as expected on BB-rc3.  The router was then
sending empty RAs, without any prefix or route.  Here is a RA captured on
a client with radvdump:

interface eth0
{
AdvSendAdvert on;
# Note: {Min,Max}RtrAdvInterval cannot be obtained with radvdump
AdvManagedFlag off;
AdvOtherConfigFlag off;
AdvReachableTime 0;
AdvRetransTimer 0;
AdvCurHopLimit 0;
AdvDefaultLifetime 0;
AdvHomeAgentFlag off;
AdvDefaultPreference medium;
AdvSourceLLAddress on;
AdvLinkMTU 1453;

DNSSL lan
{
AdvDNSSLLifetime 1200;
}; # End of DNSSL definition

}; # End of interface definition



For the sake of comparison, here is a RA from the same router with the
default configuration, i.e. DHCPv6 enabled (the IPv6 prefix is
obfuscated on purpose):

interface eth0
{
AdvSendAdvert on;
# Note: {Min,Max}RtrAdvInterval cannot be obtained with radvdump
AdvManagedFlag on;
AdvOtherConfigFlag on;
AdvReachableTime 0;
AdvRetransTimer 0;
AdvCurHopLimit 0;
AdvDefaultLifetime 1800;
AdvHomeAgentFlag off;
AdvDefaultPreference medium;
AdvSourceLLAddress on;
AdvLinkMTU 1450;

prefix 2001:db8:80ce:9201::/64
{
AdvValidLifetime 7200;
AdvPreferredLifetime 1800;
AdvOnLink on;
AdvAutonomous on;
AdvRouterAddr off;
}; # End of prefix definition


prefix fdd1:b9fe:7201:1::/64
{
AdvValidLifetime 7200;
AdvPreferredLifetime 1800;
AdvOnLink on;
AdvAutonomous on;
AdvRouterAddr off;
}; # End of prefix definition


route 2001:db8:80ce:9200::/56
{
AdvRoutePreference medium;
AdvRouteLifetime 7200;
}; # End of route definition


route fdd1:b9fe:7201::/48
{
AdvRoutePreference medium;
AdvRouteLifetime 7200;
}; # End of route definition


RDNSS 2001:db8:80ce:9201::1
{
AdvRDNSSLifetime 1800;
}; # End of RDNSS definition


DNSSL lan
{
AdvDNSSLLifetime 1200;
}; # End of DNSSL definition

}; # End of interface definition



I would expect prefixes and routes to be announced in the RA, even when
DHCPv6 is disabled.  Is this the intended behaviour?

Also notice that some options are sligthly different in both cases
(different MTU, etc).  Note that the IPv6 upstream is a L2TP tunnel, whose
MTU is equal to 1453.

Thanks,
Baptiste


pgp_Ucks4Szlp.pgp
Description: PGP signature
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [BB-rc3] Disabling DHCPv6 also disables IPv6 SLAAC

2014-08-22 Thread Steven Barth

Please try with:
option dhcpv6 disabled

instead of none

Cheers,

Steven
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [BB-rc3] Disabling DHCPv6 also disables IPv6 SLAAC

2014-08-22 Thread Baptiste Jonglez
On Fri, Aug 22, 2014 at 07:59:27PM +0200, Steven Barth wrote:
 Please try with:
 option dhcpv6 disabled
 
 instead of none

That worked, thanks!

What is the default value, then?  Is it none or disabled?  What is the
difference?

 Cheers,
 
 Steven
 ___
 openwrt-devel mailing list
 openwrt-devel@lists.openwrt.org
 https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


pgpsMjF317Z8d.pgp
Description: PGP signature
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [BB-rc3] Disabling DHCPv6 also disables IPv6 SLAAC

2014-08-22 Thread Bastian Bittorf
* Baptiste Jonglez bjong...@illyse.org [22.08.2014 22:34]:
 What is the default value, then?  Is it none or disabled?  What is the
 difference?

internally it's a bool/switch, which can have:

0|off|false|no|disabled or
1|on|true|yes|enabled

adding 'none' is possible, but...

bye, bastian
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [BB-rc3] Disabling DHCPv6 also disables IPv6 SLAAC

2014-08-22 Thread Baptiste Jonglez
On Fri, Aug 22, 2014 at 10:38:24PM +0200, Bastian Bittorf wrote:
 * Baptiste Jonglez bjong...@illyse.org [22.08.2014 22:34]:
  What is the default value, then?  Is it none or disabled?  What is the
  difference?
 
 internally it's a bool/switch, which can have:
 
 0|off|false|no|disabled or
 1|on|true|yes|enabled

Are you sure about this?  The value provided with the default config is
server, and relay is also possible:

  http://wiki.openwrt.org/doc/uci/dhcp#dhcp.pools

 adding 'none' is possible, but...
 
 bye, bastian


pgp3eQQkLoKtf.pgp
Description: PGP signature
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel