There's a strange behavior: any time I try to set the same ipv6 gateway on the Container it won't take the change and the field stay blank.Hi,
That's good news! regarding the host being reachable via ipv4 and ipv6.
For the guest - I think a dual approach would work best:
For IPv6:
* add an interface to the container, which is connected to vmbr0
* configure an ip from 2001:bc8:3cc6:101::/64
* set the same gateway as you have on the host itself
For IPv4:
* add a second bridge (vmbr1) to the node, without any bridge_ports
* configure a rfc1918 address on it e.g.192.168.1.1/24
* add an interface to the container connected to vmbr1
* configure an ip from 192.168.1.0/24 on the container
* set 192.168.1.1 as gateway
* add fitting MASQUARADE rules for ipv4 on the node
Test ipv6 first - once this works try ipv4
Hope this helps!
I tried to remove the Container interface from Proxmox GUI then add it again but with no success. I tried also to manually edit Container interfaces file to add the gateway but, after reboot, the change revert. So I tried to lock the interfaces file (chattr +i /etc/network/interfaces) and, once rebooted, this is the result trying to ping google:
Code:
nginx ⌁ root /etc/nginx 2 ping6 ipv6.google.com
ping: ipv6.google.com: Temporary failure in name resolution
The ipv6 I set on the Container is 2001:bc8:3cc6:101::100/64. I'm able to ping ipv6 on the Container from Proxmox and viceversa.
Where am I wrong?