Changes

Jump to: navigation, search

Virtual Ethernet device

4 bytes removed, 09:28, 15 June 2007
Making a veth-device persistent: minor formatting fix
1. First, edit the VE's configuration to specify what the veth's IP address(es) should be, and to indicate that a custom script should be run when starting up a VE.
* Open up /etc/vz/conf/VEID.conf * Comment out any IP_ADDRESS entries to prevent a VENET-device from being created in the VE * Add or change the entry CONFIG_CUSTOMIZED="yes" * Add an entry VETH_IP_ADDRESS="<VE IP>" The VE IP can have multiple IPs, separated by spaces
2. Now to create that "custom script". The following helper script will check the configuration file for IP addresses and for the veth interface, and configure the IP routing accordingly. Create the script /usr/sbin/vznetaddroute to have the following, and then <code>chmod 0500 /usr/sbin/vznetaddroute</code> to make it executable.

Navigation menu