Difference between revisions of "Ipv6"

From OpenVZ Virtuozzo Containers Wiki
Jump to: navigation, search
(New page: == Vars to set == /etc/sysctl.conf <pre> net.ipv6.conf.all.forwarding=1 </pre> /etc/sysconfig/network <pre> ... IPV6_DEFAULTGW=your_ipv6_gw_here IPV6_DEFAULTDEV=your_interface_here </pre>...)
 
Line 1: Line 1:
== Vars to set ==
+
See the [[VEs and HNs in same subnets]] article for OpenVZ specific info.
/etc/sysctl.conf
 
<pre>
 
net.ipv6.conf.all.forwarding=1
 
</pre>
 
 
 
/etc/sysconfig/network
 
<pre>
 
...
 
IPV6_DEFAULTGW=your_ipv6_gw_here
 
IPV6_DEFAULTDEV=your_interface_here
 
</pre>
 
 
 
/etc/sysconfig/network-scripts/ifcfg-eth0
 
<pre>
 
..
 
IPV6INIT=yes
 
IPV6FORWARDING=yes
 
IPV6ADDR=your_host_node_ipv6_ip/netmask
 
</pre>
 
 
 
 
 
/etc/sysconfig/network-scripts/ifup-ipv6
 
Replace
 
<pre>
 
ipv6_set_default_route "$IPV6_DEFAULTGW" "$IPV6_DEFAULTDEV" "$DEVICE"
 
</pre>
 
 
 
With
 
<pre>
 
ip r a 2000::/3 dev "$IPV6_DEFAULTDEV"
 
ip r a 2000::/3 via "$IPV6_DEFAULTGW" dev "$IPV6_DEFAULTDEV"
 
ip r d 2000::/3 dev "$IPV6_DEFAULTDEV"
 
</pre>
 
 
 
Talk about it -> [http://forum.openvz.org/index.php?t=tree&goto=35285&#msg_35285]
 

Revision as of 02:49, 25 January 2010

See the VEs and HNs in same subnets article for OpenVZ specific info.