Changes

Jump to: navigation, search

Virtual Ethernet device

4 bytes removed, 13:54, 16 February 2007
m
Adding an external script to VE0
==== Adding an external script to VE0 ====
Copy and paste the following code into /usr/sbin/vznetaddroute:
<codepre>
#!/bin/bash
#
fi
exit
</codepre>
Add one elsif-section for every veth-enabled VE you'd like to have automatically configured. Remember to run <pre>chmod +x /usr/sbin/vznetaddroute</pre> to make the script executable.
To make vzctl run the script, copy and paste the following line to /etc/vz/vznet.conf:
<codepre>
#!/bin/bash
EXTERNAL_SCRIPT="/usr/sbin/vznetaddroute"
</codepre>
The script will now run every time a veth-enabled VE is started.

Navigation menu