Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've just installed Centos 6.3 and I'm having trouble with my eth0 connection.

After I installed Centos 6.3 there was no ifcfg-eth0 file, so I made one.

inside my eth0 file I have:


When I run the cmd

# service network start

it brings up the loopback interface and the eth0 interface. When I enter ifup eth0 it says 'file exists'.

I can't ping to this box and it has no ethernet connection. What am I doing wrong here?

share|improve this question
Did you try manually setting up the IP address with ifconfig? Assuming the device is eth0 - #ifconfig eth0 netmask up – Daniel t. Jan 28 '13 at 2:20
up vote 0 down vote accepted

Try running the system-config-network utilty to get your ifcfg-eth0 file in the right format and define the gateway, DNS resolvers, etc.

You can run the service network restart command following that.

After that, the normal troubleshooting options apply... See if you can ping your gateway from the host. Same for the DNS servers.

share|improve this answer

Your Answer


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.