Hello, Colin, could you please comment on this?
On Fri, 06 Dec 2013 15:42:45 +0100 Holger Sander <hol...@sander-delmenhorst.net> wrote: > Am 06.12.2013 12:20, schrieb Andrew Shadura: > > Holger Sander <hol...@sander-delmenhorst.net> wrote: > >>>> This will set /proc/sys/net/ipv6/conf/eth0/accept_ra to "0" > >>>> Now the client don't get a gateway address but dhcpv6 has no > >>>> option about router! I think setting the accept_ra to "0" is an > >>>> error. > >>> It's not an error; if you want SLAAC + dhcpv6, you need to use > >>> auto, not dhcp. > >> Sorry I test it again, with the auto option no dhcpv6 will be use. > >> iface eth0 inet6 auto > >> # SLAAC without dhcpv6, no DDNS (tested with jessie) > I read it in manpages. But I didn't see the default for accept_ra. > > The auto Method > > This method may be used to define interfaces with automati‐ > > cally assigned IPv6 addresses. Using this method on its own > > doesn't mean that RDNSS options will be applied, too. To make > > this happen, rdnssd daemon must be installed, properly con‐ > > figured and running. > This is stateless using the radvd with optional rdnss. > > If stateless DHCPv6 support is turned > ^^^^^^^^^^^ but not statefull! > > on, then additional network configuration parameters such as > > DNS and NTP servers will be retrieved from a DHCP server. > > Please note that on ifdown, the lease is not currently > ^^^^^?? > I don't get leases, because dhcplient ist startet with the -S option. > > released (a known bug). > Was it a bug in early version? > > dhcp int > > Use stateless DHCPv6 (0=off, 1=on) > > > The auto Method use the data vom radvd and optional +Data (dhcp 1) > from the DCHCPv6, but the dhcp-client doesn't get an address from the > server (dhclient -S). That is what "Use stateless DHCPv6 on" mean. I > think the manpage is OK. > "Use stateless DHCPv6 off" with inet6 auto means: only address and > router von radvd + optional rdnss, but nothing from DHCPv6. So we are > missing the stateful option. > The only left option is > iface .... inet6 dhcp > for stateful configuration. manpage: > > The dhcp Method > This method may be used to obtain network interface > configuration via stateful DHCPv6 with dhclient. In > stateful DHCPv6, the DHCP server is responsible for > assigning addresses to clients. > That works, but the default of "accept_ra 0" confusing me and perhaps > other people, because we need a router for the network. Everywhere in > the Internet I am reading in stateful-method we need radvd to get the > router, because DHCPv6 has no option for the router, so why is the > default accept_ra off? I think what you want to do is, switching > autoconf off, so we get the router an no IPv6-address from radvd. With > autoconf on we have stateless and stateful. But the addional > IPv6-address is no problem. > example: > iface eth0 inet6 dhcp # stateful > accept_ra 1 # get router from radvd > autoconf 0 # no address-autoconfiguration with radvd > > With using iface ... inet6 auto I have an other problem, the > resolv.conf isn't set. If I use iface .. inet6 dhcp the resolv.conf > is set correctly. That means: To get ipv6 without ipv4 working by > autoconfiguration we have to use: > (radvd + dhcpv6) > iface eth0 inet6 dhcp # stateful > accept_ra 1 # get router from radvd > autoconf doesn't mather. That is why I think accept_ra shut be default > to 1 or internet will not work. Please notice: ipv6 will overide ipv4 > information in resolv.conf! With dhcpv6 I can use DDNS. > (radvd + rdnss) > iface eth0 inet6 auto > Does rdnss set resolv.conf? I don't try, because dhcpv6 can do more as > rdnss, so I want to use dhcpv6 and not rdnss. Can rdnss use DDNS? -- Cheers, Andrew
signature.asc
Description: PGP signature