Changes

Jump to: navigation, search

Virtual Ethernet device

430 bytes added, 05:36, 8 July 2008
no edit summary
=== Making a bridged veth-device persistent ===
 Like the above example, here it is how to add the veth device to a bridge in a persistent way.  ==== method for vzctl version > 3.0.22 ==== Newer versions of vzctl includes a 'vznetaddbr' script, which makes use of the new <bridge> parameter of the --netif_add switch. Just create /etc/vz/vznet.conf containing the following. <pre>#!/bin/bashEXTERNAL_SCRIPT="/usr/sbin/vznetaddbr"</pre> The script uses 'vmbr0' as default bridge name when no bridge is specified. ==== method for vzctl version <= 3.0.22 ==== older vzctl doesn't offer an automatic function to do this.
1. First, edit the VE's configuration to specify what is the host bridge , and to indicate that a custom script should be run when starting up a VE.
4
edits

Navigation menu