Help needed configuring IPV6 on OVH server

LupoSol

New Member
Oct 7, 2021
6
2
3
Spain
Hello friends,

I am trying hard to configure IPV6 on my Debian10 Proxmox VE6 server, from SoYouStart/OVH.

I am following this tutorial here from OVH themselves:

https://docs.ovh.com/gb/en/dedicated/network-ipv6/

According to what it says, I should configure the /etc/network/interfaces file as follows:

Code:
# network interfaces
## IPV4 CONFIGURATION

    auto lo
    iface lo inet loopback

    iface eno3 inet manual

    auto vmbr0
    iface vmbr0 inet dhcp
      bridge-ports eno3
      bridge-stp off
      bridge-fd 0

#### IPV6 CONFIGURATION

    iface vmbr0 inet6 static
    address IPV6/64
    netmask 128
    gateway IPV6ff:ff:ff:ff:ff
post-up /sbin/ip -f inet6 route add IPv6_GATEWAY dev vmbr0
post-up /sbin/ip -f inet6 route add default via IPv6_GATEWAY
pre-down /sbin/ip -f inet6 route del IPv6_GATEWAY dev vmbr0
pre-down /sbin/ip -f inet6 route del default via IPv6_GATEWAY


However, it refuses to work, as ipv4 connectivity only is active.

This is my current interfaces setup (IP addresses masked, of course):

Code:
root@h0:~# ifconfig
eno3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether IPV6  txqueuelen 1000  (Ethernet)
        RX packets 11127  bytes 1040015 (1015.6 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 5802  bytes 618899 (604.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 190  bytes 51268 (50.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 190  bytes 51268 (50.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

veth1001i0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether IPV6  txqueuelen 1000  (Ethernet)
        RX packets 442  bytes 22051 (21.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 5084  bytes 374083 (365.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

veth1002i0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether IPV6  txqueuelen 1000  (Ethernet)
        RX packets 468  bytes 29695 (28.9 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 5068  bytes 378356 (369.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

veth1003i0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether IPV6  txqueuelen 1000  (Ethernet)
        RX packets 345  bytes 17385 (16.9 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 4635  bytes 342602 (334.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

veth1005i0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether IPV6  txqueuelen 1000  (Ethernet)
        RX packets 348  bytes 21571 (21.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 4334  bytes 323059 (315.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

veth1006i0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether IPV6  txqueuelen 1000  (Ethernet)
        RX packets 342  bytes 19667 (19.2 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 4056  bytes 302701 (295.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

veth1007i0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether IPV6  txqueuelen 1000  (Ethernet)
        RX packets 298  bytes 15494 (15.1 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 3741  bytes 279493 (272.9 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

veth1008i0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether IPV6  txqueuelen 1000  (Ethernet)
        RX packets 277  bytes 13974 (13.6 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 3471  bytes 258941 (252.8 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

vmbr0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet IPV4  netmask 255.255.255.0  broadcast 51.68.204.255
        inet6 IPV6  prefixlen 64  scopeid 0x20<link>
        ether ac:1f:6b:1b:60:92  txqueuelen 1000  (Ethernet)
        RX packets 5231  bytes 595679 (581.7 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 3273  bytes 478468 (467.2 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Ip6tables at the moment seem to have no restriction:

root@h0:~# ip6tables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination


Please, can you help me to fix what is obviously not configured correctly?

Many thanks!

Kind Regards,
Fabio
 
Hey LupoSol.
Any luck with this IPv6?
I am going through the same issue right now trying to figure out the configuration.
 
Hi, unfortunately not, sorry. I gave up in the end and moved to Solus VM on Open VZ 7
I hear you. lol
Took me a while figuring out on getting IPv4 passed through... now "learning" how to do the same with IPv6.... way too much fun.
It also doesn't help that OVH/SYS/etc... practices weird non-standard configurations.
 
I managed to make it work. I have an other server at SoYouStart working with IPv6 and all, but the configuration is a little bit different.

So here it is (it's Proxmox 7 by the way - installed from OVH 6 template then upgraded) :

Code:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet manual

iface eth1 inet manual

auto vmbr0
iface vmbr0 inet dhcp
    bridge-ports eth0
    bridge-stp off
    bridge-fd 0
    hwaddress xx:xx:xx:xx:xx:xx
iface vmbr0 inet6 static
    address XXXX:XXXX:XXXX:XXYY:YYYY:YYYY:YYYY:YYYY/64
    gateway XXXX:XXXX:XXXX:XXff:ff:ff:ff:ff

auto vmbr1
iface vmbr1 inet static
    address 192.168.100.1/24
    bridge-ports none
    bridge-stp off
    bridge-fd 0

I think the important parts are :
- I changed eno1 to eth0
- hwaddress in vmbr0

Don't mind the vmbr1 configuration, I use it to create an internal network to communicate between my VM's without exposing them on the Internet, like internal connections to database, elasticsearch and other stuff of this kind)

P.S. Above is the OVH server, here is my configuration working on SoYouStart :

Code:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet manual

iface eth1 inet manual

auto vmbr0
iface vmbr0 inet static
    address xx.xx.xx.yy/24
    gateway xx.xx.xx.254
    bridge-ports eth0
    bridge-stp off
    bridge-fd 0
iface vmbr0 inet6 static
    address XXXX:XXXX:XXXX:XXYY:YYYY:YYYY:YYYY:YYYY/64
    gateway XXXX:XXXX:XXXX:XXff:ff:ff:ff:ff
    bridge-ports eth0
    bridge-stp off
    bridge-fd 0

auto vmbr1
iface vmbr1 inet static
    address 192.168.100.1/24
    bridge-ports none
    bridge-stp off
    bridge-fd 0
 
Last edited:
  • Like
Reactions: dimitriz
I managed to make it work. I have an other server at SoYouStart working with IPv6 and all, but the configuration is a little bit different.

So here it is (it's Proxmox 7 by the way - installed from OVH 6 template then upgraded) :

Code:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet manual

iface eth1 inet manual

auto vmbr0
iface vmbr0 inet dhcp
    bridge-ports eth0
    bridge-stp off
    bridge-fd 0
    hwaddress xx:xx:xx:xx:xx:xx
iface vmbr0 inet6 static
    address XXXX:XXXX:XXXX:XXYY:YYYY:YYYY:YYYY:YYYY/64
    gateway XXXX:XXXX:XXXX:XXff:ff:ff:ff:ff

auto vmbr1
iface vmbr1 inet static
    address 192.168.100.1/24
    bridge-ports none
    bridge-stp off
    bridge-fd 0

I think the important parts are :
- I changed eno1 to eth0
- hwaddress in vmbr0

Don't mind the vmbr1 configuration, I use it to create an internal network to communicate between my VM's without exposing them on the Internet, like internal connections to database, elasticsearch and other stuff of this kind)

P.S. Above is the OVH server, here is my configuration working on SoYouStart :

Code:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet manual

iface eth1 inet manual

auto vmbr0
iface vmbr0 inet static
    address xx.xx.xx.yy/24
    gateway xx.xx.xx.254
    bridge-ports eth0
    bridge-stp off
    bridge-fd 0
iface vmbr0 inet6 static
    address XXXX:XXXX:XXXX:XXYY:YYYY:YYYY:YYYY:YYYY/64
    gateway XXXX:XXXX:XXXX:XXff:ff:ff:ff:ff
    bridge-ports eth0
    bridge-stp off
    bridge-fd 0

auto vmbr1
iface vmbr1 inet static
    address 192.168.100.1/24
    bridge-ports none
    bridge-stp off
    bridge-fd 0

Thanks for sharing. Glad to know that it is working for you, But it is not working for me. The host loses network connectivity when i issue
Code:
/etc/init.d/networking restart

Below is the content of my host /etc/network/interfaces

Code:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet manual

auto vmbr0
iface vmbr0 inet static
    address 51.xx.xxx.192/30
    gateway 51.xx.xxx.254
    bridge-ports eth0
    bridge-stp off
    bridge-fd 0
iface vmbr0 inet6 static
    address XXXX:XXXX:XXXX:XXXX:00a1:00a1:00a1:00a1/64
    gateway XXX:XXXX:XXXX:XXff:ff:ff:ff:ff
    bridge-ports eth0
    bridge-stp off
    bridge-fd 0

Please help me when you have time. Thanks
 
the issue for network disconnection is because my card is not eth0 but eno3. Now Iam able to start the network with your settings but still the VM is not connected to internet with ipv6 only settings

VM is able to ping the host and gateway
Host is able to ping VM and gateway
but VM is not connected to internet.

VM is able to ping
Code:
ping6 -c 4 2001:4860:4860::8888
but the host is not.
 
Last edited:
On my Debian VMs I have this configuration :

Code:
auto lo
iface lo inet loopback

auto ens18
iface ens18 inet static
        address XX.XX.XX.XX
        netmask 32
        post-up ip route add XX.XX.XX.254 dev ens18 proto static
        post-up ip route add default via XX.XX.XX.254 proto static
        pre-down ip route del XX.XX.XX.254 dev ens18 proto static
        pre-down ip route del default via XX.XX.XX.254 proto static

iface ens18 inet6 static
        address XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX
        netmask 64
        post-up /sbin/ip -6 route add XXXX:XXXX:XXXX:XXff:ff:ff:ff:ff dev ens18 proto static
        post-up /sbin/ip -6 route add default via XXXX:XXXX:XXXX:XXff:ff:ff:ff:ff dev ens18 proto static
        pre-down /sbin/ip -6 route del default via XXXX:XXXX:XXXX:XXff:ff:ff:ff:ff dev ens18 proto static
        pre-down /sbin/ip -6 route del XXXX:XXXX:XXXX:XXff:ff:ff:ff:ff dev ens18 proto static


On my Ubuntu VMs with netplan I use this :

Code:
network:
  ethernets:
    ens18:
      addresses:
      - XX.XX.XX.XX/32
      - XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX/64
      gateway4: XX.XX.XX.254
      gateway6: XXXX:XXXX:XXXX:XXff:ff:ff:ff:ff
      nameservers:
        addresses:
        - 8.8.8.8
        - 8.8.4.4
        - 2001:4860:4860::8888
        - 2001:4860:4860::8844
        search: []
      optional: true
      routes:
        - to: XX.XX.XX.254/32
          via: 0.0.0.0
          scope: link
        - to: XXXX:XXXX:XXXX:XXff:ff:ff:ff:ff/128
          via: ::0
          scope: link

  version: 2

Hope this helps.
 

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!