Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Virtual Ethernet device

22 bytes added, 12:05, 8 June 2006
Minor rephrasing and formatting fixes in Examples
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 <tt>veth </tt> device will be created for VE 101 and veth configuration will be saved to a VE config configuration 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 {{Note|Use random MAC addresses. Do not use MAC address addresses of eth0device in host sytem for veth real eth devices, beacuse this can lead to collisions.}}
<pre>
vzctl set 101 --veth_del veth101.0 --save