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:


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

cPanel/WHM licensing error

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

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

How do I install cPanel/WHM ?

The cPanel/WHM installation requires a clean Operating System for installation, or else problems...

How do I install Webmin?

This article explains how to install Webmin on your Dedicated Server or VPS. CentOS / Fedora...

How do I login to cPanel/WHM?

cPanel/WHM installation is begun once you receive your "Your new server is ready!" e-mail. The...