the initial configuration will be as follows:
network:
version: 2
renderer: networkd
ethernets:
enp2s0:
dhcp4: no
addresses:
- 62.149.128.4/24
routes:
- to: default
via: 62.149.128.1
nameservers:
addresses: [62.149.190.150,217.61.55.10]
in this example, we assume that:
- the Ethernet network adapter is named enp2s0;
- the VLAN ID value of the virtual switch link (available on the details page) is 2022;
- a server is already connected to the virtual switch with IP address 10.10.10.1 and subnet mask 255.255.255.0;
- the IP address you want to set is 10.10.10.2;