2.1.2.3. Networking Parameters

Network-related parameters allow you to set bandwidth management parameters, hostname and IP addresses that a container can use, and other parameters.

NameDescription

HOSTNAME

If this parameter is specified, then prlctl will set the hostname to its value upon the next container start. This parameter can be omitted. In this case, the container administrator should configure the hostname manually.

IP_ADDRESS

This is the list of IP addresses, which can be used on container network interfaces. This list is an argument of the container start call and it is impossible to assign IP address from inside the container if the address is not on the list. Any IP address assigned from within the container will be visible only within the container.

NAMESERVER

The IP address of the DNS server the container is supposed to use. More than one server can be specified in the space-separated format.

SEARCHDOMAIN

DNS search domains for the container. More than one domain can be specified.

NETDEV

The names of physical network adapters that have been moved from the server to the given container.

NETFILTER

Indicates which iptables modules are allowed for the container. If some of the allowed modules are not loaded on the destination Hardware Node after migration or restoration from backup, they will be automatically loaded on the migrated or restored container start. The following modes are available:

  • disabled: none.
  • stateless: (default) all modules except conntrack and NAT-related.
  • stateful: all modules except NAT-related.
  • full: all modules.

NETIF

Specifies a number of parameters for the virtual network adapters existing inside the container. These parameters include:

  • ifname: the name of the veth virtual Ethernet interface inside the container.
  • mac: the MAC address assigned to the veth virtual Ethernet interface inside the container.
  • host_mac: the MAC address assigned to the veth virtual Ethernet interface on the server.
  • network: the name of the virtual network where the veth virtual network adapter is included.
  • ip: the IP address(es) assigned to the veth virtual network adapter.

RATE

If traffic shaping is turned on, then this parameter specifies bandwidth guarantee, in Kbps, for the container. The parameters should be set in the form of eth0:1:8.

RATEBOUND

If set to yes, the bandwidth guarantee is also the limit for the container, and the container cannot borrow the bandwidth from the TOTALRATE bandwidth pool.