Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 need to start network interface from command line.I usually do it with the GUI but I don't have desktop manager now.I tried

/etc/init.d/network start
,it shows ok,but when I try curl or links,it can't connect.

share|improve this question

Can you post /etc/sysconfig/network?

It may be as simple as:

ifup eth0

Fedora 15 uses "Consistent" device naming, which means that your actual device name will likely be something along the lines of em1 or pci3p1 Source

share|improve this answer
it worked but it was pci4p1 not eth0.(Fedora 15).I have no idea why. – Alexander May 13 '11 at 15:36
Ugh. "Consistent" network device naming. Consistent with absolutely no other distribution, that's what. – Hyppy May 13 '11 at 16:25
Hyppy,can you add the link in the answer for anybody else using Fedora 15 – Alexander May 13 '11 at 17:18

In Fedora there is a service called NetworkManager.service that automatically makes sure you are connected to the internet as defined in: /etc/sysconfig/network-scripts/ifcfg-em1

Run this command as root to check the status of this service:

systemctl status NetworkManager.service

If it is disabled, enable it, or find out why it was disabled:

systemctl enable NetworkManager.service

Then either reboot the computer or restart the network.service manually:

systemctl restart network.service

Here is the contents of my /etc/sysconfig/network-scripts/ifcfg-em1


You would roll your own 'restart network' scripts only if the available ones are non functional or are not adequate for a specific task.


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.