IPv6 Configuration

From OpenVZ Virtuozzo Containers Wiki
Revision as of 07:09, 12 December 2008 by Elronxenu (talk | contribs) (First cut at actual documentation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Configuring IPV6 in a VE

Assuming you want to add globally routable ipv6 addresses to your VEs, follow these instructions.

Preparation

On the HN, first make sure /etc/vz/vz.conf has IPV6="yes" and your HN is working correctly for ipv6.

On the HN, do:

 echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
 echo 1 > /proc/sys/net/ipv6/conf/all/proxy_ndp

Adding each VE

On the HN, do:

 vzctl set $VEID --ipadd 2001:xxxx:xxxx::xxxx --save

To enable the HN to reply to Neighbor Solicitation requests, do:

 ip -6 neigh add proxy 2001:xxxx:xxxx::xxxx dev eth0