Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Virtual Ethernet device

785 bytes added, 12:01, 8 June 2006
Adding veth to a VE
MAC addresses must be entered in XX:XX:XX:XX:XX:XX format. Note that this option
is incremental, so devices are added to already existing ones.
 
==== Examples ====
<pre>
vzctl set 101 --veth_add veth101.0,00:12:34:56:78:9A,eth0,00:12:34:56:78:9B --save
</pre>
After executing this command veth device will be created for VE 101 and veth configuration will be saved to VE config file.
Host-side ethernet device will have <tt>veth101.0</tt> name and <tt>00:12:34:56:78:9A</tt> MAC address,
VE-side ethernet device will have <tt>eth0</tt> name and <tt>00:12:34:56:78:9B</tt> MAC address. Please do not use MAC address of eth0
device in host sytem for veth devices, beacuse this can lead to collisions.
<pre>
vzctl set 101 --veth_del veth101.0 --save
</pre>
After executing this command veth device with host-side ethernet name <tt>veth101.0</tt> will be removed from VE 101 and
veth configuration will be updated in VE config file.
=== Removing veth from a VE ===
Anonymous user