LXC Networking and IPv6

matthew

Renowned Member
Jul 28, 2011
210
5
83
I created a Centos 7 LXC container. I assigned IPv4 and IPv6 space to it. IPv6 did not work. Looking at container it added the IPv4 address too /etc/sysconfig/network-scripts/ifcfg-eth0 and added IPv6 address too /etc/sysconfig/network-scripts/ifcfg-eth0:0. Moving the IPv6 address too ifcfg-eth0 allowed it to work. Any idea what would be causing that? It does not appear to be picking up any of the settings in :0 file.
 
The :0 file is an alias. The reason for this is mainly that IPv4 dhcp + static ipv6 "doesn't work"™ otherwise. Interestingly if you switch them out (ipv6 as eth0 and ipv4 as eth0:0) it does work.
*Sigh*...
I suppose we can just swap them on our side...
Or not as aliases don't do dhcp apparently. (But they do ipv6 autoconfiguration, so... this is pure weirdness on their side)

EDIT: Testing some setups now, seems like more of them are behaving a bit differently. Will fix this soon. (Apparently dhcpv4 + static v6 does work, it just seems to not apply until the dhcp client is "done", whis is weird)
 
Last edited:
Any progress with this?

Seems like now when I created a new container with IPv4 and IPv6 the IPv6 did not appear in ifconfig. After editing network settings in Proxmox then putting back it showed up in ifconfig. Although it shows up I cannot ping past IPv6 gateway. Doing service network restart on the container also makes the IPv6 address disappear in ifconfig.
 
Also, when I do not assign a container any IP info at all I assume that then it is simply bridged? Well when I do that I can get IPv6 to work but cannot get IPv4 to work. This is on Centos 7 again.
 
It's fixed in the testing repositories, should be available soon.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!