For the management interface / web interface access, a virtual bridge can be used. Configuration for this depends on the network manager that is used. An example for netplan can be seen below which creates a bridge called mgmt-bridge on network interface enp4s0 with IP 192.168.0.2 for the host.
network:
ethernets:
enp4s0:
dhcp4: false
version: 2
bridges:
mgmt-bridge:
interfaces: [ enp4s0 ]
dhcp4: false
addresses:
- 192.168.0.2/24
gateway4: 192.168.0.1
sudo netplan try takes the new configuration into use, asking the user to verify the configuration. It is useful if the command is run remotely.
For NetworkManager the bridge can be setup with the following commands
sudo nmcli connection add type bridge autoconnect yes con-name mgmt-bridge ifname mgmt-bridge
sudo nmcli connection modify mgmt-bridge ipv4.addresses 192.168.0.2/24 ipv4.method manual
sudo nmcli connection modify mgmt-bridge ipv4.gateway 192.168.0.1
sudo nmcli connection del enp4s0
sudo nmcli connection add type bridge-slave autoconnect yes con-name enp4s0 ifname enp4s0 master mgmt-bridge
sudo nmcli connection up mgmt-bridge