TOP

How to Ensure the IPv6 Default Route is Active On Boot

IPv6 World LaunchA common issue we notice is that users who have IPv6 enabled on their VPS have connectivity issues when rebooting. The problem 99% of the time, is the default route for IPv6 traffic is not present. By default, OpenVZ virtualization doesn’t seem to add the default route via the venet device unless specified by the user (unlike IPv4 behaviour).

The solution

Type the following command as root:

ip route add ::/0 dev venet0

While the above solution will work, it is not practical as most admins don’t want to manually type this each time they restart network services or reboot their machines.

To ensure the default route is present on boot. Add the following 2 lines of code to the /etc/sysconfig/network file.

NETWORKING_IPV6=”yes”
IPV6_DEFAULTDEV=”venet0″

This will ensure that your OS will add the default route for IPv6 on boot.

Leave a Reply

Your email is never published nor shared.

You may use these HTML tags and attributes:<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>