Configuring the network
You can assign VLANs to the network interfaces of a Bare Metal server and combine interfaces into an aggregated interface (LAG interface).
-
Go to the VK Cloud management console.
-
Find out the number of network interfaces of your server.
-
Define the desired network configuration. If necessary, combine network interfaces into a LAG interface.
-
Calculate the number of network interface and VLAN combinations required for the desired network configuration. For example, the server has two network interfaces,
nic0andnic1. -
Determine which VLANs will be used for each combination of a network interface and a VLAN. Each interface must have its own VLAN. If necessary, create the missing ones.
-
Go to the Bare Metal → Servers section.
-
Open the network configuration window in one of the following ways:
-
From the server list:
- In the list of Bare Metal servers, click
for the desired server.
- Select Configure network settings.
- In the list of Bare Metal servers, click
-
On the server page:
- In the list of Bare Metal servers, click the name of the desired server.
- On the server page, click
.
- Select Configure network settings.
-
-
Each interface (
nic) in the list corresponds to a separate physical network card of the server. If necessary, configure the combining of interfaces into a LAG interface.Network interfaces included in a LAG interface cannot be configured separately.
-
Prepare the desired configuration for the network interfaces, as well as for LAG interfaces if they are used.
-
Select the Native VLAN from the drop-down list.
Native VLAN traffic is transmitted without a tag (untagged) according to the 802.1Q standard.
-
(Optional) Add additional VLANs. To do this, click Add VLAN and select the desired VLAN in the drop-down list.
Unlike the Native VLAN, traffic in additional VLANs is transmitted with a VLAN ID tag according to the 802.1Q standard.
To remove an additional VLAN from the configuration, click
next to it.
-
-
Click Save and update the network interface settings. You can do this automatically or manually.
AutomaticManualAutomatic configuration update is supported in OSs installed from VK Cloud images or cloud images of popular distributions, as well as when you install cloud-init in the OS yourself.
Automatic configuration is not available for network interfaces that use a VLAN of the
L2Onlytype.To initialize
cloud-init:-
Restart the server, wait for the OS to boot, and check that the server is available over the network.
-
If connectivity is not restored, connect to the server via the VNC console and start initialization manually with the following command:
cloudinit init -
Check the server availability again.
If the server is still unavailable, configure the network interfaces manually.
-
Several network interfaces of a server (nic) can be combined into an aggregated interface (LAG interface). Each network interface participating in a LAG interface is connected to two different switches, which provides network redundancy at the L2 link level.
After combining, you cannot configure the network configuration on individual interfaces. Instead, the configuration of the LAG interface is configured.
-
Go to the VK Cloud management console.
-
Go to the Bare Metal → Servers section.
-
In the list of Bare Metal servers, click
for the desired server.
-
Select Configure network settings.
-
Create a LAG interface in one of the following ways.
-
In the Network interfaces block, click Add to aggregate for the desired interface.
If the server configuration does not yet have any LAG interfaces, the LAG interface
bond0is created immediately, and this interface is added to it. If at least one LAG interface already exists, a selection window opens, in which you can add the interface to an existing LAG interface or create a new one. -
In the Aggregation block, click Add aggregate and add the desired network interfaces to it by clicking Add to aggregate for the desired interfaces in the Network interfaces block, as described above.
To create a LAG interface, you must add at least two network interfaces to it.
-
-
Click Save.