On Fri, Feb 26, 2016 at 03:51:25PM +0100, Mikhail Morfikov wrote: > I wanted to implement IPv6 in my network, but my debian machine has some > issues > with it. The IPv6 connection works just fine when configured statically via > the > /etc/network/interfaces file in the following way: [...] > It also works fine when I use the following line instead: > > iface bond0 inet6 auto > > But there's some issues when I want to use DHCP: > > iface bond0 inet6 dhcp > > In the last case, there's no default route, and the connection simply doesn't > work.
Hm, could it be that your DHCP6 server does advertise a default route? > ifup[75305]: /sbin/sysctl -q -e -w net.ipv6.conf.bond0.accept_ra=1 > > According to the kernel documentation on this sysctl parameter, there's > something like this: > > 0 Do not accept Router Advertisements. > 1 Accept Router Advertisements if forwarding is disabled. > 2 Overrule forwarding behaviour. Accept Router Advertisements even if > forwarding is enabled. > > I've set this option manually to 2. This is documented in interfaces(5). The reason is that in general, when forwarding is enabled, you are a router, in which case it is more likely that you want to set your own gateway route than to have one assigned by DHCP. But you can change it in /etc/network/interfaces like this: iface bond0 inet6 dhcp accept_ra 2 That begs the question though: could it be that you are getting your IPv6 address via DHCP, but the IPv6 gateway via router advertisements? To me that is a very strange situation. -- Met vriendelijke groet / with kind regards, Guus Sliepen <g...@debian.org>
signature.asc
Description: Digital signature