LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-21-2013, 05:25 AM   #1
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Rep: Reputation: 49
ONBOOT=yes but eth0 doesn't stay up after reboot


Hi guys. Have a RHEL server 2.6.18-164.9.1.el5xen that in /etc/sysconfig/network-scripts it has ONBOOT=yes. If I run a constant ping to the server while it's restarting, the interface comes up briefly (assuming when it initially up's eth0), then dies about the time the login prompt appears.
If I do a ifup eth0 that brings it up, but I'm not sure how to tell why the onboot isn't working/staying up.
Any ideas where I should start?
 
Old 11-21-2013, 10:21 PM   #2
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665

Rep: Reputation: Disabled
not sure but is your network manager running ?
 
Old 11-22-2013, 12:36 AM   #3
sachin.davra
Member
 
Registered: Jul 2013
Posts: 213

Rep: Reputation: Disabled
Post your /etc/sysconfig/network-scripts/ifconfig-eth0. content
 
Old 11-22-2013, 08:12 AM   #4
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
How do I tell if that's running at startup?

Here's the contents of ifcfg-eth0, with the personal info changed. does ONBOOT need to be higher in the file or something? or is there a command to run to have the system verify it's reading the file correctly?

# Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet
DEVICE=eth0
BOOTPROTO=static
BROADCAST=1.2.3.4
HWADDR=00:00:00:00:00:00
IPADDR=1.2.3.5
IPV6ADDR=
IPV6PREFIX=
NETMASK=255.255.254.0
NETWORK=1.2.3.0
ONBOOT=yes
 
Old 11-22-2013, 09:06 AM   #5
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Quote:
NM_CONTROLLED=answer
where answer is one of the following:
yes — NetworkManager is permitted to configure this device. This is the default behavior and can be omitted.
no — NetworkManager is not permitted to configure this device.
add the
Code:
NM_CONTROLLED=no
in there. that way even if the network manager is running, it will be ignored for this device.

https://access.redhat.com/site/docum...nterfaces.html
 
Old 11-22-2013, 09:17 AM   #6
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
OK, I won't be able to reboot and test the server for a while, but I will try this next time I get a chance. is there like a chkconfig or something I should also look at to see if network manager runs or not?
 
Old 11-22-2013, 10:05 AM   #7
r41d3n
Member
 
Registered: Mar 2013
Distribution: Debian
Posts: 42

Rep: Reputation: Disabled
If you don't use network-manager, just remove it.
 
Old 11-22-2013, 11:25 AM   #8
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
I can't say I've ever used it on this server, but this server has been in operation since before my time here.
 
Old 11-22-2013, 06:22 PM   #9
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
to be blunt the network manager is horrid when dealing with static IPs. id remove it.
 
Old 11-24-2013, 08:24 PM   #10
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665

Rep: Reputation: Disabled
Thats correct if you dont use NM then remove it... or say a "no" to it in config.
 
Old 11-25-2013, 09:32 AM   #11
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
next time I get an opportunity to restart it, I will try this. but how do I actually tell if it's installed or if it's even running?
 
Old 11-25-2013, 01:55 PM   #12
r41d3n
Member
 
Registered: Mar 2013
Distribution: Debian
Posts: 42

Rep: Reputation: Disabled
Post the output of:

Code:
rpm -qa | grep -i manager
This will tell if the package is installed on the system.

I think the package name is NetworkManager. You can use the following commands to see if it's running:

Code:
pstree
or


Code:
ps aux | grep -i network
If NetworkManager shows in these command's output, then it is running.

Last edited by r41d3n; 11-25-2013 at 02:00 PM.
 
Old 11-25-2013, 07:54 PM   #13
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665

Rep: Reputation: Disabled
Code:
rpm -qa | grep NetworkManager or grep -i networkmanager
will give you the installed details of this package. you can then remove it by "rpm -e [package name]". Before removing make sure no other program on your box depends on NM services.
EDIT:
you can check its status by
Code:
"service NetworkManager status"

Last edited by SAbhi; 11-25-2013 at 07:55 PM.
 
Old 11-26-2013, 10:13 AM   #14
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
rpm -qa | grep NetworkManager says that I have:

NetworkManager-gnome-0.7.0-9.el5
NetworkManager-glib-0.7.0-9.el5
NetworkManager-0.7.0-9.el5


service NetworkManager status says: "NetworkManager is stopped"

ps aux | grep -i network only shows me my grep command.

but how do I tell if anything would ever need/use NetworkManager.
 
Old 11-26-2013, 08:38 PM   #15
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665

Rep: Reputation: Disabled
hmm no issue:
It is possible that because NM is Disabled no service is taking control of network.
can you just fetch me these:

Code:
chkconfig --list | grep network
if it wasnt on at required runlevels :
Code:
chkconfig network on
service network start
hope above should be good to fix it, if not we will see other options.

Code:
cat /etc/sysconfig/network

EDT:

dmesg | grep eth0

Last edited by SAbhi; 11-26-2013 at 08:48 PM.
 
  


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
Why my Lan card is not been up after booting even ONBOOT=yes in ifcfg-eth0. bganesh75 Linux - Newbie 1 07-21-2011 07:39 AM
A question about Ethernet Interfaces -- ONBOOT=no doesn't work thomas2004ch Linux - Networking 3 12-29-2010 06:13 AM
[SOLVED] Firewall will not stay disabled after reboot quasi3 Linux - Software 12 09-01-2009 10:40 PM
wireless connection doesn't stay active after reboot sublyme718 Linux - Wireless Networking 1 11-07-2005 09:34 PM
Reboot LFS6.1:Interface eth0 doesn't exist! ukyo Linux From Scratch 4 09-07-2005 06:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:01 AM.

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