=== Virtual Ethernet device with IPv6 ===
==== Start a [[CT]] ==== [host-node]# vzctl start 101 ==== Add veth device to the [[CT]] ==== [host-node]# vzctl set 101 --veth_add eth0,00:12:34:56:78:9A,eth0,00:12:34:56:78:9B --save ==== Configure devices in See the [[CT0]] ==== [host-node]# ifconfig veth101.0 0 [host-node]# echo 1 > /proc/sys/net/ipv6/conf/veth101.0/forwarding [host-node]# echo 1 > /proc/sys/net/ipv6/conf/eth0/forwarding [host-node]# echo 1 > /proc/sys/net/ipv6/conf/all/forwarding ==== Configure device in [[CT]] ==== [host-node]# vzctl enter 101 [ve-101]# /sbin/ifconfig eth0 0 ==== Start router advertisement daemon (radvd) for IPv6 in CT0 ====First you need to edit radvd configuration file. Here is a simple example of <tt>/etc/radv.conf</tt>:<pre>interface veth101.0{ AdvSendAdvert on; MinRtrAdvInterval 3; MaxRtrAdvInterval 10; AdvHomeAgentFlag off; prefix 3ffe:2400:0:0::/64 { AdvOnLink on; AdvAutonomous on; AdvRouterAddr off; };}; interface eth0{ AdvSendAdvert on; MinRtrAdvInterval 3; MaxRtrAdvInterval 10; AdvHomeAgentFlag off; prefix 3ffe:0302:0011:0002::/64 { AdvOnLink on; AdvAutonomous on; AdvRouterAddr off; };};</pre> Then, start radvd: [host-node]# /etc/init.d/radvd start ==== Add IPv6 addresses to devices VEs and HNs in [[CT0]same subnets] ====<pre>[host-node]# ip addr add dev veth101article.0 3ffe:2400::212:34ff:fe56:789a/64[host-node]# ip addr add dev eth0 3ffe:0302:0011:0002:211:22ff:fe33:4455/64</pre>
=== Virtual Ethernet devices can be joined in one bridge ===