6,534
edits
Changes
mac addresses info separated out
{{Note|since vzctl version 3.0.11, vzethdev is loaded by /etc/init.d/vz}}
=== MAC addresses ===
In the below commands, you should use random MAC addresses. Do not use MAC addresses of real eth devices, because this can lead to collisions.
MAC addresses must be entered in XX:XX:XX:XX:XX:XX format.
There is a utility script available for generating MAC addresses: http://www.easyvmx.com/software/easymac.sh. It is to be used like this:
chmod +x easymac.sh
./easymac.sh -R
=== Adding veth to a VE ===
==== syntax vzctl version < 3.0.14 ====
vzctl set 101 --netif_add eth0,00:12:34:56:78:9A,veth101.0,00:12:34:56:78:9B --save
</pre>
=== Removing veth from a VE ===