11

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

DEVICE="eth0"
HWADDR="08:00:27:FE:D5:10"
NM_CONTROLLED="yes"
ONBOOT="no"
mgorven
  • 30,615
  • 7
  • 79
  • 122
Chris R
  • 213
  • 1
  • 2
  • 4
  • 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 03:50

3 Answers3

17

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:

DEVICE="eth0"
HWADDR=MAC Address*System MAC*
NM_CONTROLLED="no"
ONBOOT="yes"
BOOTPROTO="dhcp"

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

reboot
Natxet
  • 316
  • 2
  • 5
  • 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 08 '12 at 06:41
2

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.

cpuguru
  • 401
  • 5
  • 14
0
  1. bridged adapter = connect with already connected internet device
  2. nat

and run..

John Gardeniers
  • 27,458
  • 12
  • 55
  • 109
Yesu
  • 1