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.

OVH Cloud VPS KVM

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.

Find

Replace with

Also added following 2 entry

144.217.13.76 is the IP address of the VPS.

144.217.12.1 is the gateway used on the VPS, found using “ip route” or “route -n” command.

Create a static route file

Add

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

See IP

Leave a Reply

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