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).

  • 99 Users Found This Useful
Was this answer helpful?

Related Articles

How do I connect to my VPS? (SSH)

We recommend the program PuTTY for SSH. You can download it here:...

How do I upgrade or downgrade my service? (SolusVM / cPanel)

Please follow these steps to upgrade or downgrade your service: Login to the Client Area....

How do I install cPanel/WHM manually?

You can use the following commands to install cPanel/WHM on CentOS. You should only install...

cPanel Disk Quotas (OpenVZ)

In order to use disk quotas for cPanel on OpenVZ, you need to have second level quotas enabled...

Why does SpeedTest seem slow?

Our IPs often geolocate to our Atlanta location despite where your VPS is geographically located....