Previous page

Next page

Locate page in Contents

Print this page

Configuring veth Adapter Parameters

While functioning in the bridged mode, each Container virtual network adapter appears as a full participant on the network to which it is connected and needs to have its own identity on this network.

Fist of all, to start functioning on a TCP/IP network, a veth virtual adapter should be assigned an IP address. This can be done as follows:

# prlctl set 101 --ifname eth1 --ipadd 192.168.144.123

This command sets an IP address of 192.168.144.123 for the eth1 adapter in Container 101. If you want to use the Dynamic Host Configuration Protocol (DHCP) to make the eth1 adapter of Container 101 automatically receive TCP/IP configuration settings, you can issue the following command instead:

# prlctl set 101 --ifname eth1 --dhcp yes

Any static IP address assigned to the Container virtual network adapter can be removed by executing the following command:

# prlctl set 101 --ifname eth1 --ipdel 192.168.144.123

You can also delete all IP addresses set for Container 101 at once:

# prlctl set 101 --ifname eth1 --ipdel all

You may also wish to set the following parameters for a Container network adapter:

  • A DNS server that the Container virtual adapter is supposed to use:

    # prlctl set 101 --ifname eth1 --nameserver 192.168.100.111

  • A gateway to be used for routing the traffic of the Container virtual adapter:

    # prlctl set 101 --ifname eth1 --gw 192.168.111.1

Detailed information on all options which can be used with the prlctl set command to manage Container adapter parameters is given in the Virtuozzo 6 Command Line Reference Guide and the prlctl manual pages.