Today I’m having problem with my SolusVM installation in my dedicated sever. The OpenVZ VPS created from SolusVM can’t connect to the internet, not connected from the internet, also can’t ping to the IPv6 gateway.
Dedicated Server have routed 2 x /64 IPv6 address, and installed using CentOS 6 64bit.
So, let’s make some fix here 🙂
Add the below to the file /etc/sysconfig/network of the Host Node
1 2 3 4 5 6 7 |
# nano /etc/sysconfig/network ... NETWORKING_IPV6=yes IPV6FORWARDING=yes IPV6_DEFAULTDEV=eth0 IPV6_DEFAULTGW=2a02:7900:1:2000::1 IPV6_AUTOCONF=no |
Add the below to the file /etc/sysconfig/network-scripts/ifcfg-ethX . X being your interface number
1 2 3 4 |
IPV6INIT=yes IPV6ADDR=2a02:7900:1:2002:4 IPV6_DEFAULTGW=2a02:7900:1:2000::1 IPV6_DEFAULTDEV=eth0 |
Add the following to the content of /etc/sysctl.conf
1 2 3 |
net.ipv6.conf.default.forwarding = 1 net.ipv6.conf.all.forwarding = 1 net.ipv6.conf.all.proxy_ndp = 1 |
Example for how to write the IPv6 Gateway
Example for generating the IPv6
Next, you only need to assign the IPv6 to your OpenVZ VPS