LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-28-2010, 05:26 AM   #1
Actionscript3
LQ Newbie
 
Registered: Jan 2009
Posts: 20

Rep: Reputation: 0
About Lan interface startup issue


Hi,

In a CentOS box, there's no network cable connected with the interface, the eth0 interface do not start with bootup.

Then I 've to use ifconfig to up the interface.

How can I set it startup whenever there's real connections?

Thanks!
 
Old 02-28-2010, 01:34 PM   #2
cdbunch
LQ Newbie
 
Registered: Mar 2008
Posts: 13

Rep: Reputation: 0
A couple of questions:

1. When you say that eth0 does not start up on boot do you mean that it has been configured to not start on boot by putting ONBOOT=no in /etc/sysconfig/network-scripts/ifcfg-eth0 or that it is configured to start on boot (ONBOOT=yes) but does not do so due to the cable not being plugged in?

2. Could you provide the content of your ifcfg-eth0 file?

Cameron Bunch
 
Old 03-01-2010, 09:32 AM   #3
cdbunch
LQ Newbie
 
Registered: Mar 2008
Posts: 13

Rep: Reputation: 0
Actionscript3,

Also:

3. Are you using netplugd or NetworkManager? netplud is supplied by the net-tools package so that would need to be installed to use it. Both netplugd and NetworkManager should take care of automatically configuring the eth0 interface when the cable is plugged in or unplugged.

4. Is SELinux in enforcing mode and if so have you checked if putting it into permissive mode corrects the problem? If it does correct it you should troubleshoot the SELinux problem and set it back to enforcing mode to preserve the security benefits that it provides.

Cameron Bunch
 
Old 03-01-2010, 01:23 PM   #4
cdbunch
LQ Newbie
 
Registered: Mar 2008
Posts: 13

Rep: Reputation: 0
I tested this out on a CentOS 5.3 box that has five Ethernet interfaces. With neither NetworkManager nor netplugd running I got what I think is the behaviour that you describe. I then started NetworkManager and was able to consistently plug and unplug to all five interfaces and get the expected connectivity and assignment of IPs as I moved the cable from one interface to another. Each interface got its own distinct IP via DHCP. I then stopped NetworkManager and started netplugd. I found that it would bring up an interface the first time I plugged in the cable and assign the IP but if I unplugged the cable, letting it drop the IP, it would not get re-assigned if I were to plug it back in again. I could plug it into another interface and get the one-time-only IP assignment to that interface but no re-assignment after dropping the connection. I did not try any configuration of either service.

So....

It looks like NetworkManager is a lot more robust and reliable. No surprise.

Cameron Bunch
 
  


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
my lan interface is not installed in fedora 5 linuxjamil Linux - Hardware 1 12-04-2008 08:22 AM
i cant get into graphic interface at startup linux_latest_newbie Linux - Newbie 3 03-19-2007 01:08 PM
Solaris 8 Lan interface problem UltraSoul Solaris / OpenSolaris 1 04-30-2005 06:06 AM
forge a LAN INTERFACE! UltraSoul Solaris / OpenSolaris 7 01-03-2005 10:01 AM
LAN interface on Gateway stops being able to send info to LAN intermittantly. BurnFEST Debian 2 11-01-2003 03:16 AM

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

All times are GMT -5. The time now is 02:47 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