Previous page

Next page

Locate page in Contents

Print this page

net_vethType

Summary:

Contains Virtuozzo virtual network adapter configuration information.

Type specification:

Extends net_nicType

Adds the following elements:

Name

Min/Max

Type

Description

wins_server

0..[]

string

WindowsA list of WINS servers.

nameserver

0..[]

string

A list of name servers.

default_gateway

0..1

string

Default gateway info (hostname or IP address).

host_routed

0..1

none

If present, indicates that the adapter is using the host-routed communication mode.

WindowsOn Windows, Virtuozzo virtual ethernet adapters inside a Container can operate in both the host-routed and the bridged modes.

Include this element if you want the virtual adapter to use the host-routed mode.

To use the bridged mode, omit the element and specify the Virtuozzo virtual network ID using the network_id element (the network ID identifies the physical network adapter on the Hardware Node).

Linux On Linux, the default venet0 adapter can operate in the host-routed mode only, while custom virtual network adapters (the adapters that you create manually) can operate only in the bridged mode.

When configuring the venet0 adapter (setting the IP address for example), you must include this element in the request. The adapter name (venet0) must also be specified using the id element.

The following examples illustrate various Virtuozzo Container network adapter configuration scenarios.

Linux 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/>

Linux WindowsExample 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>

WindowsExample 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/>

WindowsExample 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>

Please send us your feedback on this help page