13.3. Managing Container Network Parameters¶
This section describes how to view and configure container network parameters.
13.3.1. Viewing Container Network Parameters¶
The Summary subtab (displayed on clicking the Network tab on the container dashboard) shows the current container network parameters. The Global Network Configuration parameters are relevant for both host-routed and bridged container adapters, while the Routed Network and Bridged Network sections refer to respective adapters only.
Field |
Description |
---|---|
Global Network Configuration |
|
Hostname |
The hostname assigned to the container. |
DNS Servers |
One or more DNS servers the container is supposed to use (might be overridden if the container gets the DNS servers from the DHCP server when operating in the bridged network mode). |
Search Domains |
A list of domains for hostname lookup (might be overridden if the container gets the search domains from the DHCP server when operating in the bridged network mode). |
Netfilter Mode |
The netfilter mode set for the container. |
Routed Network |
|
IP Addresses/Subnet Masks |
The IP addresses and subnet masks assigned to container’s host-routed adapter. |
Bridged Network |
|
Virtual Network |
The virtual network where the virtual network adapter is connected. Note To learn more about the notion of virtual networks and their relation to physical adapters, VLAN adapters, and virtual environments, please refer to Managing Virtual Networks. |
MAC Address |
The Mac address assigned to the virtual network adapter. |
IP Addresses |
The IPv4 or IPv6 address(es) assigned to the virtual interface. One virtual interface can have up to two IP addresses, however the IP addresses should be of different versions: one IPv4 and one IPv6 address. |
Default Gateway |
The default gateway set for the virtual interface. |
To configure these parameters, click Configure.
13.3.2. Configuring Container Network Parameters¶
The Configure Network screen displayed after clicking the Network tab on the container dashboard and then clicking Configure on the Virtuozzo Automator action menu allows you to configure the following container network settings as follows:
Under the Global Network group, you can:
Modify the container hostname in the Hostname field. You can type any name you consider suitable, however, pay attention to the existing limitations on the use of symbols in the container hostname. The hostname should consist of
a-z
,0-9
,_
, and may have a point in the middle. The number of symbols should not exceed 256.Enter one or more DNS server IP addresses that this container is supposed to use in the DNS Server IP Address field or leave it blank. Use the add and remove icons. Note that the static values in these fields might be overridden if the container gets the DNS servers from the DHCP server when operating in the bridged network mode.
Define a list for hostname lookups in the Search domain field. The search list is normally determined by the domain name(s); by default, it contains the local domain name(s) only. You can also add external domain names for a particular container. A search query is performed by attempting to use each item in the list in turn until a match is found. Note that this process may be slow and may generate a lot of network traffic if the servers for the listed domains are not local, and that the query might time out if no server is available for one of the domains. Note also that the static values in these fields might be overridden if the container gets the search domains from the DHCP server when operating in the bridged network mode.
Select the netfilter mode in the Netfilter Mode drop-down list.
The parameters defined under Global Network will apply to the virtual environment regardless of whether it is on a bridged network or depends on the physical server network interface.
Select the Routed Network check box to make the default container network adapter (
venet0
) operate in the host-routed. In this mode the container uses the physical server physical adapter as the default gateway to send and receive data to/from other networks. If the Routed Network check box is selected, you can specify an IP address to be assigned to the container in the IP Address / Subnet Mask fields. The field for the subnet mask is slash-separated from the IP address field. You can assign several IP addresses to the container by clicking the add icon to the right of the field containing the information on container IP addresses. Clicking the remove icon near the field with the information on container IP addresses will remove the corresponding IP address assigned to the container.Note
If you have previously consolidated the IP addresses available on your physical server into a range, it is recommended to check those of them that were assigned to virtual environment - when creating or configuring - on the Allocated IPs screen so that to be aware of the IP addresses already on use.
Select the Bridged Network check box to make the container virtual network adapters (except for the default one) operate in the bridged mode. When functioning in this mode, the container can be connected to any of the virtual networks existing on the physical server and joined through them to external networks. If the Bridged Network check box is selected, you can:
Add a new virtual adapter by clicking the Add New Interface link and providing the necessary information in the displayed fields.
Connect the virtual network adapter to any of the existing virtual networks on the physical server by choosing the corresponding virtual network name on the drop-down menu in the Connect to field.
Allow the network adapter automatically receive a MAC address or assign it manually by selecting the appropriate option in the MAC Address field.
Select the DHCPv4 or DHCPv6 check boxes to automatically assign IP addresses to the container adapter using the DHCP protocol. You can choose to automatically assign IP addresses of both versions to one network interface. Or you can manually specify IPv4 or IPv6 addresses with the subnet mask and default gateway.
Important
If a network interface has two IP addresses, they must be of different versions: one IPv4 and one IPv6 address.
After configuring the necessary container network parameters, click the Submit button for the changes to take effect.