1

I am struggling a bit on how to equip my LXC configuration with IPv6 currently. What's the setup?

  • Ubuntu 16.04 LTS
  • LXC2-beta from the Ubuntu PPA's (feature IPv6 connectivity)
  • I use a netcup IPv6 setup
  • Currently IPv4 is routed via DNAT over eth0, work's fine (NO BRIDGE)
  • My host machine gots working IPv6 at prefix::1/64

I've read up a really long list of literature about IPv6 and how to solve this problem with several virtual machines, but couldn't come to a working, sane setup yet. So, what'd do I do now to get my LXC machines connected with IPv6?

  1. Enable IPv6 net forwarding
  2. Either
    • Assign each container a valid address in the /64 subnet (this does not work for me?)
    • Host a gateway at prefix::1 and use (e.g) radvd for automagic configuration (didn't work either)
0

Your external access on IPv6 may be restricted to a single IP address. Normally you would be provided with one or more /64 subnets for internal use. These would be advertised by one or more radvd servers on your local network. You will need to check with your IP provider to see what mechanism to use, and which subnets are assigned to you.

IPv6 clients usually self configure if they receive router advertisements. If you require static IPv6 addresses for some servers, you will configure those yourself. This can be done with a stanza in /etc/network/interfaces.

Do consider using a firewall builder such as shorewall6 to build the firewall. It should be able to make the appropriate kernel configuration adjustments to forward your traffic appropriately.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.