Previous page

Next page

Locate page in Contents

Print this page

Configuring veth Adapter Parameters

While functioning in the veth 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 one or several IP addresses. This can be done as follows:

Note: For detailed information on all parameters that can be configured for each default Container network adapter (i.e. for the adapter operating in the venet0 mode), refer to Performing Initial Configuration .

# pctl set 101 --ifname eth1 --ipadd 192.168.144.123 --save

Saved parameters for Container 101

This command will set an IP address of 192.168.144.123 for the eth1 adapter inside Container 101. If you wish 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:

# pctl set 101 --ifname eth1 --dhcp yes --save

Saved parameters for Container 101

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

# pctl set 101 --ifname eth1 --ipdel 192.168.144.123 --save

Saved parameters for Container 101

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

# pctl set 101 --ifname eth1 --ipdel all --save

Saved parameters for Container 101

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

  • one or more DNS servers that the Container virtual adapter is supposed to use:

    # pctl set 101 --ifname eth1 --nameserver 192.168.100.111 --save

    Saved parameters for Container 101

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

    # pctl set 101 --ifname eth1 --gateway 192.168.111.1 --save

    Saved parameters for Container 101

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