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.

Added another network adapter to my CentOS (minimal) VM in VMWare Workstation 8.

I've rebooted and obviously the OS doesn't recognise the new adapter.

How do I add / configure it to recognise the new adapter (for instance, give it a name eth1 and IP 10.1.0.1)?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Are you sure the OS doesn't recognize it? It probably recognizes it but it isn't configured to do anything.

If you already have eth0, try (as root):

ifconfig eth1 up

If that works, then the kernel successfully detected the adapter and created a device node for it, but the userspace tools don't currently assign an IP to it.

You can find documentation on modifying the network scripts, which bring up and take down network interfaces at boot and when changing runlevels, here (Red Hat documentation).

share|improve this answer
    
I did an ifup eth1 and got an error back about an interface not being available. ifconfig eth1 up did the trick! Thank you! –  Federer Jul 25 '12 at 15:37

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.