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

  • 79 Users Found This Useful
Was this answer helpful?

Related Articles

Why is cPanel/WHM not loading?

There are two main reasons why cPanel/WHM isn't loading that we've seen. Brand New Server If...

How to enable IonCube in cPanel/WHM ?

Enabling Ioncube from cPanel/WHM in your VPS or Dedicated Server: Login to WHM as root user....

How do I bind additional IPs in WHM?

cPanel makes adding IP addresses to WHM as easy as cake. Log into WHM Under the IP...

cPanel/WHM licensing error

If you receive any "License Invalid" or any other kind of licensing error(s), please try running:...

Lighttpd won't start

Due to recent updates to openSSL, HyperVM, SolusVM and some other services using the lighttpd...