0

Yesterday i orderd a new dedicated server at OVH for a small network with virtual machines powered by ESXi.

Today i created my first VM with CentOS 7 that works fine so far. I'm able to ping Google with IPv4, but i can not get the IPv6-Connectivity to work.

My Configuration (Guest):

Device: ens160
IP: 145.239.XXX.XX/32
Netmask: 255.255.255.255
Gateway: 217.182.XXX.254 (Host)
----
IPv6: 2001:41d0:700:XXX:x
Netmask: 64
Gateway: 2001:41d0:700:XXff:ff:ff:ff:ff (as suggested by OVH)

http://hilfe.ovh.de/BridgeClient

I'm not able to ping the default gateway. What am i missing? I'm really new to this ESXi-thing, so please be kind.

Tobias
  • 1
  • 1
  • 6

3 Answers3

0

I finally found a solution for my problem. If you have the same problem like me, read these two guides carefully, especially this box:

The default Gateway for your IPv6 block (IPV6_GATEWAY) is always IP:v:6FF:FF:FF:FF:FF.

Some examples:
The IPv6 of the server is 2607:5300:60:62ac::/64.
The IPv6_GATEWAY will then be 2607:5300:60:62FF:FF:FF:FF:FF.

The IPv6 of the server is 2001:41D0:1:46e::/64.
The IPV6_GATEWAY will then be 2001:41D0:1:4FF:FF:FF:FF:FF.
Michael Hampton
  • 237,123
  • 42
  • 477
  • 940
Tobias
  • 1
  • 1
  • 6
0
IPv6: 2001:41d0:700:XXX:x
Netmask: 64
Gateway: 2001:41d0:700:XXff:ff:ff:ff:ff (as suggested by OVH)

Change your netmask to 56 and it will work. OVH guides are broken.

In case you wonder why changing the netmask setting to 56 fixes this, simply key in the IPv6 prefix you get from OVH into a IPv6 range calculator. Is 2001:41d0:700:XXff:ff:ff:ff:ff within the IPv6 range with /64? Now change to /56 and check the calculator again. You will see what I mean.

  • This will only sort-of work. But you will be unable to reach other OVH IPv6 addresses within the /56. Whether you _need_ to reach them is another question. – Michael Hampton May 15 '18 at 16:29
0

The IPv6 gateway address that OVH uses is outside the /64 that is routed to your dedicated server. Therefore, you need to configure a static route to the gateway address.

On RHEL/CentOS and Fedora, you can configure static IPv6 routes with a /etc/sysconfig/network-scripts/route6-<interface> file. This file literally contains route additions that will be passed to ip route. For example:

From /etc/sysconfig/network-scripts/ifcfg-eno1 (only IPv6 configuration shown):

DEVICE="eno1"
NAME="eno1"
IPV6INIT="yes"
IPV6_FAILURE_FATAL="no"
IPV6_AUTOCONF="no"
IPV6ADDR="2607:5300:60:62ac::/64"

From /etc/sysconfig/network-scripts/route6-eno1:

2607:5300:60:62ac::/64 dev eno1
2607:5300:60:62ff:ff:ff:ff:ff dev eno1
default via 2607:5300:60:62ff:ff:ff:ff:ff dev eno1

During OS installation, if you simply configure the IPv6 address, prefix 64 and gateway address as given by OVH, the installer will create the necessary static routes for you.

Michael Hampton
  • 237,123
  • 42
  • 477
  • 940