LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-21-2009, 04:23 PM   #1
krazyglue
Member
 
Registered: Oct 2003
Posts: 68

Rep: Reputation: 16
ifup eth0 required after reboot


Fresh install of Fedora 10 and everything was working fine...

I was having issues with setting a static IP address. I tried both in the GUI and command line. Shortly there after, "NetworkManager" became angry and would allow me to set any ip address. To fix this i had to uninstall NetworkManager.

I then went in and configured eth0 for a static IP address and everything was good again. Until I rebooted. After I rebooted, I didn't have a network connection. ifconfig showed that no eth0 was up. I did an ifup eth0 and everything works great again. I added the line ONBOOT=yes to /etc/sysconfig/network-script/ifcfg-eth0 and rebooted. Still eth0 not showing (w/ ifconfig) but works just fine after I manually do a ifup eth0

This PC is in the back room and is to say the least a PITA to get to the desktop. Below is my ifcfg-eth0 file. What am i missing here?


# Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
DEVICE=eth0
HWADDR=00:08:02:4c:c1:75
SEARCH="ebarrie"
BOOTPROTO=none
USERCTL=no
IPV6INIT=no
NM_CONTROLLED=no
TYPE=Ethernet
PEERDNS=yes
NETMASK=255.255.255.0
IPADDR=192.168.1.10
GATEWAY=192.168.1.1
ONBOOT=yes
 
Old 04-21-2009, 10:56 PM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
I haven't used any RH software since the before they split RHEL/Fedora so I am a little out of date on this. But I did wonder whether you want PEERDNS=yes. I also have no idea what the SEARCH= line does.

The first thing I suggest is looking through whatever log file shows boot messages and see if you spot any errors related to this. Another, admittedly somewhat desperate move, would be to (temporarily) modify the ifup script (assuming it is still a script rather than a binary, and assuming that script is where the interface is actually brought up) such that it logs everything it is doing, and then after boot examine the log to see if you can figure out what is going on. If you do this make sure to backup the original version of the script before modifying. If ifup is a bash script you can accomplish what I suggested by adding the following two lines toward the top of the script.

Code:
exec 2> /tmp/ifup.log
set -x
Of course, you can change the file name /tmp/ifup.log to anything you want.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian - eth0 error: no such device on ifup eth0 svancouw Linux - Hardware 4 09-07-2011 04:32 PM
ifup eth0 fails.... esi-eric Linux - Hardware 4 07-23-2004 12:11 PM
eth0 ifup warmongr Linux - Networking 2 04-29-2004 04:00 PM
ppp stops when ifup eth0 jay820 Linux - Networking 7 07-20-2003 08:13 AM
How to setup a cron job to ifup eth0? cmisip Linux - General 4 11-28-2002 08:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration