How do I set the Primary Interface in WHM?

 

Under Basic cPanel/WHM Configuration on your dedicated server or VPS, there is an area called Primary Interface. By default, if this isn’t filled in, it will use eth0 (which isn’t always correct).
In order to find out which interface is the correct primary interface, please SSH into your server and run:

ifconfig

You can tell which one is the primary by the one having your public IP address on it. Set the Alternate Main Ethernet Device under the Basic cPanel/WHM Configuration to the correct interface. For example: eth1. Then hit “Okay”.
Restarting cPanel should not be necessary however it is recommended. To do so, simply login to SSH and run the following:

service cpanel restart

Radhe

Radhe Dhakad is Support Executive and Network Admin at RackBank Datacenters Pvt. Ltd.. He is our curious techie who loves experimenting on servers and likes to pen down whatever he explores new on server technology!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

© Copyright 2013-2021 RackBank© Datacenters Pvt. Ltd.


Data Center in India

Rated 4.7/5 based on 31 reviews at Google+