Changes

Jump to: navigation, search

Virtual Ethernet device

381 bytes added, 05:17, 8 July 2008
no edit summary
=== Adding veth to a VE ===
==== syntax vzctl version >= 3.0.14 22 ==== Read Update infos about [http://openvz.org/news/updates/vzctl-3.0.14-1 vzctl 3.0.14]
<pre>
vzctl set <VEID> --netif_add <ifname>[,<mac>,<host_ifname>,<host_mac>,<bridge>]
</pre>
* <tt>host_ifname</tt> is the ethernet device name on the host ([[CT0]])
* <tt>host_mac</tt> is its MAC address on the host ([[CT0]])
* <tt>bridge</tt> is an optional parameter which can be used in custom network start scripts to automatically add the interface to a bridge.
{{Note|All parameters except ifname are optional and are automatically generated if not specified.}}
vzctl set 101 --netif_add eth0,00:12:34:56:78:9A,veth101.0,00:12:34:56:78:9B --save
</pre>
 
Or, if you want to specify the bridge (other values generated):
 
<pre>
vzctl set 101 --netif_add eth0,,,,vmbr1 --save
</pre>
 
==== syntax vzctl version >= 3.0.14 ====
 
Read Update infos about [http://openvz.org/news/updates/vzctl-3.0.14-1 vzctl 3.0.14]
 
Syntax is the same as above, but without <bridge> parameter.
==== syntax vzctl version < 3.0.14 ====
4
edits

Navigation menu