Difference between revisions of "IPv6 Configuration"

From OpenVZ Virtuozzo Containers Wiki
Jump to: navigation, search
(First cut at actual documentation)
 
Line 1: Line 1:
 
= Configuring IPV6 in a VE =
 
= Configuring IPV6 in a VE =
  
−
Assuming you want to add globally routable ipv6 addresses
+
Assuming you are using veth devices to enable networking on the host for its VEs, you simply setup the /etc/sysconfig/network-scripts/ifcfg-ethN files exactly the same way as for a non-VE system.  If you are using IPv6 auto-configuration you wont have to add anything special to the VE icfg-ethN files.  Otherwise, standard Linux HOWTOs for configuring IPv6 apply to the VE and are not duplicated here.
−
to your VEs, follow these instructions.
 
  
−
== Preparation ==
+
= See also ==
−
 
+
* [[IPv6]]
−
On the HN, first make sure /etc/vz/vz.conf has IPV6="yes"
+
* [[VEs and HNs in same subnets]]
−
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
 

Revision as of 03:01, 25 January 2010

Configuring IPV6 in a VE

Assuming you are using veth devices to enable networking on the host for its VEs, you simply setup the /etc/sysconfig/network-scripts/ifcfg-ethN files exactly the same way as for a non-VE system. If you are using IPv6 auto-configuration you wont have to add anything special to the VE icfg-ethN files. Otherwise, standard Linux HOWTOs for configuring IPv6 apply to the VE and are not duplicated here.

See also =