Setting up Additional IP-numbers on Rocky Linux 9 using nmcli (Network Manager) on a dedicated Hetzner server

I’m installing Rocky Linux 9.4 on two new dedicated Hetzner-servers that will host a KVM-based virtual server running Rocky Linux 9.4 with Plesk. The virtual server should have its own additional failover IP subdomain. I’ve had this type of setup running successfully for many years on two old Hetzner servers with CentOS 7.

On my old servers the network was setup using the old type of ifcfg files in /etc/sysconfig/network-scripts. With RH/Alma/Rocky version 9 the network should instead be setup using Network Manager and keyfiles in /etc/NetworkManager/system-connections. I have tried to read up on Hetzner’s instructions on how to setup additional IP numbers on https://docs.hetzner.com/robot/dedicate…nal-ip-adresses. However, none of the examples of how to setup a brouted network configuration for a virtual KVM based server covers the more recent RH/Alma/Rocky Linux version 9 using Network Manager and nmcli. This is the type of network configuration that is suitable on a Hetzner server:

X-route

Has anyone got any hints on how I can use nmcli (Network Manager) to setup this kind of routed-bridged network for additional IP-numbers/IP-subnet on an Rocky Linux 9.4 server?

Best wishes,

Jonas

I did that.
Will try to find how to help you when I’m back at work

Maybe it’d help to post your C7 configs (redacted if you really think IP addresses are sensitive), along with whatever routing/NATting/etc setup you have, as well as a sample guest setup. That’d let us know what you’re trying to replicate.

Hi Jola, the two links below were useful to me:

https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/7/html/networking_guide/sec-Configuring_IP_Networking_with_nmcli#sec-Configuring_IP_Networking_with_nmcli

https://infotechys.com/add-multiple-ip-addresses-using-nmcli/

Note: Jola did crosspost to AlmaLinux forum too: https://forums.almalinux.org/t/setting-up-additional-ip-numbers-on-an-almalinux-9-server-using-nmcli-network-manager-on-a-dedicated-hetzner-server/4482

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.