Changes

Jump to: navigation, search

Virtual network device

274 bytes added, 09:46, 6 July 2006
Fixed headings (do *not* ever use single =), added module loading info
Venet device is created automatically on [[VE]] start. Vzctl scripts set up an appropriate IP address and other settings on venet inside a VE.
== Virtual network device usage Usage ==
== Kernel module ==First of all, check that <code>venetdev</code> module is loaded:<pre># lsmod | grep vznetdev</pre> If it is not, load the module:<pre># modprobe vznetdev</pre> You might want to check /etc/init.d/vz script to make sure the module gets loaded during startup. === Adding IP address to a VE ===
<pre>
vzctl set <VEID> --ipadd <IP1>[,<IP2>,...] [--save]
{{Note|This option is incremental, so IP addresses are added to already existing ones.}}
==== Example ====
<pre>
vzctl set 101 --ipadd 10.0.0.1 --save
After executing this command IP address 10.0.0.1 will be added to VE 101 and IP configuration will be saved to a VE configuration file.
=== Removing IP address from a VE ===
<pre>
vzctl set <VEID> --ipdel <IP1>[,<IP2>,...] [--save]
</pre>
==== Example ====
<pre>
vzctl set 101 --ipdel 10.0.0.1

Navigation menu