Set Static IP in RHEL 8 OVH VPS

On OVH VPS running AlmaLinux 8, IPv4 IP address gets dropped. I have to connect to the server using KVM feature available in OVH control panel.


I checked IP of the server with the command

It did hot show any IPv4 IP address. I checked the network configuration file

That had the following content

To make the IP static, I made the following changes.


Replace with

Also added following 2 entry is the IP address of the VPS. is the gateway used on the VPS, found using “ip route” or “route -n” command.

Create a static route file


Here is the gateway IP address found in the above step.

See IP

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *