Previous page

Next page

Locate page in Contents

Print this page

Network Options

Network-related options allow you to set the hostname, the domain to search when a not fully qualified domain name is used, the DNS server address and the IP addresses that Container can use, and other parameters.

Name

Description

--hostname <name>

Sets the hostname to the specified name.

--ipadd <addr>

Adds an IP address to a list of IP addresses the Container can use and brings up the network interface with this address inside the Container.

If used with the --ifname option, adds an IP address to the specified Container virtual network adapter.

--ipadd <addr / net_mask>

Assigns the IP address and network mask to the Container.

Note: You can assign network masks to Containers operating in the venet0 networking mode only if the USE_VENET_MASK parameter in the Parallels Containers configuration file is set to yes .

--ipdel < addr | all>

Allows you to revoke IP address from the Container. If “all” is used instead of IP address than all IP addresses will be revoked.

If used with the --ifname option, deletes an IP address from the specified Container virtual network adapter.

--ext_ipadd <addr>

Assigns the external IP address to the Container. External IP addresses are considered valid IP addresses by the venet0 adapter, though they are not set as alias addresses inside Containers and are not announced via Address Resolution Protocol (ARP). You can assign the same external IP address to several Containers, irrespective of whether they reside on the same or different Hardware Nodes.

Note: Currently, this option may not be supported by the prlctl utility. Use vzctl instead.

--ext_ipdel < addr | all>

Removes the external IP address from the Container. To delete all external IP addresses assigned to the Container, specify --ext_ipdel all .

Note: Currently, this option may not be supported by the prlctl utility. Use vzctl instead.

--nameserver <addr>

The DNS server IP address for the Container.

If used with the --ifname option, sets the DNS server for the specified Container virtual network adapter.

--searchdomain <domain>

The DNS search domain for the Container. More than one domain may be specified.

--netfilter < disabled | stateless | stateful | full >

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.

Note: Currently, this option may not be supported by the prlctl utility. Use vzctl instead.

--netif_add <name> [ , mac , host_mac ]

Creates a new veth virtual network adapter and assigns the name of name to the Ethernet interface inside the Container. Along with the Ethernet interface name inside the Container, you can set the following parameters when creating the veth adapter:

  • mac : the MAC address to be assigned to the veth Ethernet interface inside the Container.
  • host_mac : the MAC address to be assigned to the veth Ethernet interface on the server.

Only the Ethernet interface name ( name ) is mandatory; all the other parameters, if not specified, are automatically generated by Parallels Cloud Server during the veth adapter creation.

--netif_del <name>

Removes the veth virtual network adapter with the specified name from the Container.

--ifname <name>

Specifies the name of the veth virtual network adapter whose settings are to be configured. This option can be used along with one of the following options: --ipadd , --ipdel , --nameserver , --gw , --network , --dhcp , --mac , --host_mac .

--mac <addr>

The MAC address to be assigned to the veth virtual Ethernet interface inside the Container. Should be used along with the --ifname option.

--host_mac <addr>

The MAC address to be assigned to the veth virtual Ethernet interface on the server. Should be used along with the --ifname option.

--host_ifname <name>

The name to be assigned to the veth virtual Ethernet interface on the server. Should be used along with the --ifname option.

--network <network_ID>

Connects the veth virtual network adapter to the bridge associated with the specified network ID. Should be used along with the --ifname option.

You can also use this option to disconnect the veth virtual network adapter from the bridge. To this effect, you should specify "" after the option.

--dhcp <yes | no>

Defines the IP assignment type for the veth virtual network adapter:

  • yes enables the dynamic IP address allocation for the Container.
  • no turns off the dynamic IP address allocation for the Container.

Should be used along with the --ifname option.

--gw <addr>

Set the default gateway for the veth virtual network adapter. Should be used along with the --ifname option.

--apply-iponly <yes | no>

If set to yes , the hostname, nameserver, and search domain settings from the Container configuration file are ignored.