just installed a fresh centos-minimal and i can not get bridged network to work or any of the networks not even in host-only mode. when you run ifconfig there is no eth0 only a lo,

also when you cat /etc/sysconfig/network-scripts/ifcfg-eth0

  • Did you try using ifconfig -a instead of ifconfig? The former will display information about adapters that aren't in the 'UP' state. – nearora May 31 '12 at 3:50

As cpuguru said, you need to config the network. So login on your centos and execute:

vi /etc/sysconfig/network-scripts/ifcfg-eth0

As Chris R explained, you should edit the contents of that file to end up having this:

HWADDR=MAC Address*System MAC*

Then save (escape :wq INTRO) and then reboot:

  • 4
    If you have cloned a VM or otherwise changed the MAC you may need to delete /etc/udev/rules.d/70-persistent-net.rules ... please correct me if I am wrong! – KCD Aug 8 '12 at 6:41

I had a similar issue with CentOS on Hyper-V the other day.

The solution seemed to be to fire up a terminal, su to root and run 'system-config-network' to enable CentOS to use the virtual nic.

  • retuned Command not found. – Chris R Jan 15 '12 at 1:29
  • This is where I found the command: centos.org/docs/5/html/Deployment_Guide-en-US/… – cpuguru Jan 15 '12 at 1:32
  • I am using centos 6 i got eth0 to show in ifconfig but it has no IPs or anything. – Chris R Jan 15 '12 at 1:38
  • Try changing your ifcfg-eth0 script parameter from ONBOOT="no" to ONBOOT="yes" – cpuguru Jan 15 '12 at 1:43
  • Thank you had to change my ifcfg-eth0 script to DEVICE="eth0" HWADDR=MAC AddressSystem MAC NM_CONTROLLED="no" ONBOOT="yes" BOOTPROTO="dhcp" – Chris R Jan 15 '12 at 1:50
  1. bridged adapter = connect with already connected internet device
  2. nat

and run..

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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