Force Main IP Remote Detection (SolusVM)

If you have multiple IPs assigned to your KVM VPS and remote connections are only seeing your secondary IP, you can manually change the settings on your VPS to force traffic over the main IP by default.

Using CentOS as an example, open /etc/sysconfig/network-scripts/ifcfg-eth0:0 and comment out the GATEWAY line. Do this for all eth0:X files (one is created for each IP), then restart the network.

You can also use the following commands:

sed -i 's/GATEWAY/#GATEWAY/g' /etc/sysconfig/network-scripts/ifcfg-eth0:0
service network restart

Repeat the above commands for each eth0:X file (e.g., eth0:1).

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

How to fix installation issue of Virtualizor

In this tutorial, we are going to explain to you how to fix a problem with virtualizor on some...

How to Install SolusVM Master on CentOS 7.x?

SolusVM is a popular VPS hosting control panel and SolusVM master is used for controlling Slave...

Install Froxlor Server Management Panel 0.10.15

You can download shell installer which downloads the tarball, extracts it and sets up the basics....

Disable IPv6 on CentOS 6/7/8 server - SolusVM

If you use some servers that have SolusVM that support IPv6 and get the problem could not send...

How to setup rDNS from admin panel of virtualizor?

One of our clients asked us, how may he be able to update the rDNS of an IPv4 address, that is...