Summary:
Contains Virtuozzo virtual network adapter configuration information.
Type specification:
Extends net_nicType
Adds the following elements:
Name |
Min/Max |
Type |
Description |
|
|
|
|
|
|
|
A list of name servers. |
|
|
|
Default gateway info (hostname or IP address). |
|
|
|
If present, indicates that the adapter is using the
Include this element if you want the virtual adapter to use the To use the
When configuring the |
The following examples illustrate various Virtuozzo Container network adapter configuration scenarios.
Example 1:
Specifying the IP address for the default venet0
virtual ethernet adapter inside a Container.
<id>venet0</id>
<ip_address>
<ip>10.17.3.125</ip>
</ip_address>
<host_routed/>
Example 2:
Creating a virtual ethernet adapter inside a Container. Naming the adapter veth1
and connecting it to the vznet5
Virtuozzo virtual network (for more information on Virtuozzo virtual network and its components see vzanetworkm
).
<id>veth1</id>
<ip_address>
<ip>10.17.3.126</ip>
</ip_address>
<network_id>vznet5</network_id>
Example 3:
Specifying the IP address for the default venet0
virtual ethernet adapter inside a Container and switching the adapter's operation mode to host-routed
.
<id>venet0</id>
<ip_address>
<ip>10.17.3.121</ip>
</ip_address>
<host_routed/>
Example 4:
Switching the operation mode of the venet0
adapter to bridged
by connecting it to the vzanet3
Virtuozzo virtual network. The network ID on Windows identifies a physical network adapter or a non-Virtuozzo virtual network. The ID must be created using the vzanetworkm/set
call before you can use it here.
<id>venet0</id>
<network_id>dnpuZXQz</network_id>