[lxc-users] LXD Bridged IPv6

Nick Falcone nick at nfalcone.net
Mon Apr 25 11:11:31 UTC 2016


In my sysctl.conf I have:

net.ipv4.ip_forward=1
net.ipv6.conf.all.forwarding=1


and just to double check

root at lxdtest:~# sysctl net.ipv4.ip_forward
net.ipv4.ip_forward = 1
root at lxdtest:~# sysctl net.ipv6.conf.all.forwarding
net.ipv6.conf.all.forwarding = 1

On Mon, Apr 25, 2016, at 03:44 AM, Wojciech Arabczyk wrote:
> Are you sure, you have enabled ipv6 forwarding via sysctl?
> 
> On 22 April 2016 at 18:10, Nick Falcone <nick at nfalcone.net> wrote:
> > Hello
> >
> > I have been banging my head up against a wall for a few days now trying
> > to get IPv6 to work across my bridged interface for my containers.
> >
> > I have tried different VPS and dedicated servers as well as versions of
> > Ubuntu 14.04, 15.10, and 16.04 to get this working.  The latest test all
> > this info is from an Ubuntu 16.04 with the included version of LXD.
> >
> > First I install and run lxd init, I configure the bridge like so.
> >
> > lxdbr0    Link encap:Ethernet  HWaddr fe:82:af:f0:5d:ce
> >           inet addr:10.195.87.1  Bcast:0.0.0.0  Mask:255.255.255.0
> >           inet6 addr: 2604:a880:0:1010::623:2/64 Scope:Global
> >           inet6 addr: fe80::40c6:84ff:fe18:22fb/64 Scope:Link
> >           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> >           RX packets:294 errors:0 dropped:0 overruns:0 frame:0
> >           TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
> >           collisions:0 txqueuelen:1000
> >           RX bytes:21612 (21.6 KB)  TX bytes:2127 (2.1 KB)
> >
> > This is my host information too
> >
> > eth0      Link encap:Ethernet  HWaddr 04:01:d4:50:c4:01
> >           inet addr:162.243.200.170  Bcast:162.243.200.255
> >           Mask:255.255.255.0
> >           inet6 addr: fe80::601:d4ff:fe50:c401/64 Scope:Link
> >           inet6 addr: 2604:a880:0:1010::623:1/64 Scope:Global
> >           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> >           RX packets:76258 errors:0 dropped:0 overruns:0 frame:0
> >           TX packets:8187 errors:0 dropped:0 overruns:0 carrier:0
> >           collisions:0 txqueuelen:1000
> >           RX bytes:111074998 (111.0 MB)  TX bytes:1230729 (1.2 MB)
> >
> > I launch and enter the first container it has this info:
> >
> > eth0      Link encap:Ethernet  HWaddr 00:16:3e:87:ff:20
> >           inet addr:10.195.87.69  Bcast:10.195.87.255
> >           Mask:255.255.255.0
> >           inet6 addr: 2604:a880:0:1010:216:3eff:fe87:ff20/64
> >           Scope:Global
> >           inet6 addr: fe80::216:3eff:fe87:ff20/64 Scope:Link
> >           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> >           RX packets:20 errors:0 dropped:0 overruns:0 frame:0
> >           TX packets:294 errors:0 dropped:0 overruns:0 carrier:0
> >           collisions:0 txqueuelen:1000
> >           RX bytes:2175 (2.1 KB)  TX bytes:25728 (25.7 KB)
> >
> > so here I can see slaac is successful, but I cannot ping6
> > 2604:a880:0:1010::623:1 (the host ipv6), I cannot ping google's public
> > dns ipv6 either.  I CAN successfully ping6 2604:a880:0:1010::623:2 my
> > bridge public IPv6.
> >
> > Seems like a routing issue, so on the host I add:
> > ip -6 route add 2604:a880:0:1010:216:3eff:fe87:ff20 dev lxdbr0
> >
> >
> > Still not able to ping6 out.  As a side note IPv4 works great.
> >
> > Am I missing something here? I cannot seem to find a lot of docs on this
> > small part.  I thought to look at the demo containers on
> > https://linuxcontainers.org/lxd/try-it/ but am unable to ping6 out on
> > those, is this just a limitation?
> >
> > Thanks for any help in advance, would really like to use lxd for a
> > project.  Also I do not care to redact these real IPs, they belong to a
> > box only used for getting this working then will be destroyed.
> > _______________________________________________
> > lxc-users mailing list
> > lxc-users at lists.linuxcontainers.org
> > http://lists.linuxcontainers.org/listinfo/lxc-users
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users


More information about the lxc-users mailing list