Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am trying to install Virtualmin - GPL on a Centos x64 VPS.

After downloading the script install.sh, I tried running it... At one stage this is the message that i received--

eth0: error fetching interface information: Device not found
INFO - Unable to determine IP address of primary interface.
Please enter the name of your primary network interface:

How do I determine the IP address/name of the primary network interface? Do I have to ask my web host about this information?

Thanks, Arvind.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

eth0 is the most common ethernet device name, but it is not the only one, other device names are possible. Do this:

route

On line which says default in the first column, the last column will be the device name you most probably need. Afterwards, run this:

ifconfig <devicename>

Look for the value after inet addr, usually on line 2 of output. This is the IP address you're looking for.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.