Changes

Jump to: navigation, search

Virtual Ethernet device

226 bytes added, 13:29, 8 June 2006
m
Reformatting in Virtual ethernet device can be used with IPv6
=== Virtual ethernet device can be used with IPv6 ===
1. ==== Start [[VE]] ====
<pre>
[host-node] # vzctl start 101
</pre>
2. ==== Add veth device to [[VE]] ====
<pre>
[host-node] # vzctl set 101 --veth_add veth101.0,00:12:34:56:78:9A,eth0,00:12:34:56:78:9B --save
</pre>
3. ==== Configure devices in [[VE0]] ====
<pre>
[host-node] # ifconfig veth101.0 up[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
</pre>
4. ==== Configure device in [[VE]] ====
<pre>
[host-node] # vzctl enter 101[ve-101] # /sbin/ifconfig eth0 up
</pre>
5. ==== Start router advertisement daemon (radvd) for IPv6 in VE0====First you need to edit radvd configuration file. Here is a simple example of <tt>/etc/radv.conf</tt>:
<pre>
interface veth101.0
};
</pre>
6Then, start radvd:<pre>[host-node]# /etc/init. d/radvd start</pre> ==== Add IPv6 addresses to devices in [[VE0]] ====
<pre>
[host-node] # ip a addr add dev veth101.0 3ffe:2400::212:34ff:fe56:789a/64[host-node] # ip a addr add dev eth0 3ffe:0302:0011:0002:211:22ff:fe33:4455/64
</pre>

Navigation menu