Force Main IP Remote Detection

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). 
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How do I install the CentOS cPanel ISO for KVM?

To install the CentOS cPanel ISO on a KVM VPS: Log into the SolusVM CP. Click CDRom. Mount the...

What is the difference between KVM and OpenVZ?

KVM is true virtualization where the VPS operates as its own server, independently of the host...

Do you have internal IPs?

We do not currently have internal IPs. However, we can provide extra bandwidth for VPS to VPS...

How can I tell which node my VPS is on?

To figure out what node your VPS is hosted on, log into the SolusVM control panel and click the...

How do I clear my iptables rules?

If you find yourself unable to reach your VPS, but able to reach other parts of our network, you...

Powered by WHMCompleteSolution