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 11-07-2008, 09:42 PM   #1
accpilot
LQ Newbie
 
Registered: Nov 2008
Posts: 4

Rep: Reputation: 0
Will not connect to the network with the cable plugged in after a reboot


Hello all,

this is my first post here. I have been playing around with Linux for a few years now. I have a dual boot Sony laptop with XP and FC9. its a lot of fun to boot FC and see what people think. I have also installed it for some friends so they could see what it was like.

I was helping someone get a enterprise server running. Everything started pretty well except for the built in network cards. there are two Realtek RTL8111C cards on the motherboard. not a big deal, we built the server and got it up and running with a PCI network card installed a I was able to download the new drivers for the built in cards, I also updated the kernel. now they are able to connect, but only if I boot the server with the cable unplugged. after the server comes up, and I sign on and plug the network cable in everything seems to be fine. but if I boot with the cable in, I can not connect. I can ping its own IP, but nothing else. and if I unplug it, and plug back in that doesn't work either. I feel like i am missing something small, but I am not sure what. I have another issue with the server taking up to 6 minutes to boot, but that is another thing to work on later. if someone could just point me in the right direction, that would be so very helpful.
 
Old 11-08-2008, 02:30 PM   #2
SkyEye
Member
 
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441

Rep: Reputation: 40
Hi and welcome to LQ!

There's a couple of things not clear here. Let's get started by clearing them out.
  1. What's the distro you are using. Is it Fedora or RHEL or something else? I fet the feeling it's Fedora 9, but it's not clear in the post.
  2. You said if you boot with cable plugged in, it can only ping itself. Do you mean to say (or is it) that when this occurs, the machine has a zeroconf IP assigned. Zeroconf assigned IPs are non-routable. Can you verify this? If the machine is assigned an IP in the same range as your LAN (or network segment), you can safely eliminate the zeroconf possibility.
  3. How's the interface configured, to use static IP or DHCP? There is a possibility it's having DHCP issues.
  4. Check whether the interface is managed by the Network Manager and how. You can verify this by several methods. One is to try the Network Manager applet in the GUI.
  5. And finally check why the boot process takes so long. You might get to learn something there. I've seen cases where DNS and DHCP settings caused long boot ups among other things.

Hope this helps. Good luck.

Last edited by SkyEye; 11-08-2008 at 02:33 PM.
 
Old 11-08-2008, 02:57 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Yes, I hope you're not using Fedora on a "enterprise server". How about you tell us distro and kernel level. Also how did you update the kernel ?.
There are lots of (reported) problems with Realtek - yours sounds odd though. What does dmesg show when you (successfully) plug in the LAN cables. The slow bootup is almost certainly DHCP time-out; but that makes it sound like those interfaces are being found, but not connecting.
Again, have a look at dmesg for the boot messages. There might be a driver conflict that requires you to blacklist something - doesn't explain why plugging in later works tho'.
 
Old 11-08-2008, 10:29 PM   #4
accpilot
LQ Newbie
 
Registered: Nov 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by SkyEye View Post
Hi and welcome to LQ!

There's a couple of things not clear here. Let's get started by clearing them out.
  1. What's the distro you are using. Is it Fedora or RHEL or something else? I fet the feeling it's Fedora 9, but it's not clear in the post.
  2. You said if you boot with cable plugged in, it can only ping itself. Do you mean to say (or is it) that when this occurs, the machine has a zeroconf IP assigned. Zeroconf assigned IPs are non-routable. Can you verify this? If the machine is assigned an IP in the same range as your LAN (or network segment), you can safely eliminate the zeroconf possibility.
  3. How's the interface configured, to use static IP or DHCP? There is a possibility it's having DHCP issues.
  4. Check whether the interface is managed by the Network Manager and how. You can verify this by several methods. One is to try the Network Manager applet in the GUI.
  5. And finally check why the boot process takes so long. You might get to learn something there. I've seen cases where DNS and DHCP settings caused long boot ups among other things.

Hope this helps. Good luck.
Sorry it took me a while to get back. my dual boot laptop stopped working on the windows side, and I have been trying to fix it. I am so glad I had FC for the other OS.

1. the server I am having issues with is a distro of RHEL I am not sure what version. I am not where the machine is, so I will try to answer everything the best that I can.

2.it is assigned an IP address in the same range as the LAN. when it boots up with the cable in, I can ping its IP address.

3. Static IP.

4. I will check that when I get to the machine on Monday.

the Kernel is 2.6.18-103. I downloaded the package and installed it using RPM. it didn't seem odd or anything.

what does dmesg show? I will run it when I get there on Monday too.

Thank you for some of the ideas. if there is anything else for me to check, please let me know.
 
Old 11-09-2008, 03:16 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Have a look at man dmesg - you need to know about this as a debug tool.
Sounds like modules are loading - let's see what you find.
 
Old 11-11-2008, 05:52 AM   #6
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Rep: Reputation: 62
When you updated the kernel, did it update the modules fro that kernel as well?
 
Old 11-11-2008, 10:25 AM   #7
accpilot
LQ Newbie
 
Registered: Nov 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by fotoguy View Post
When you updated the kernel, did it update the modules fro that kernel as well?
Hi Fotoguy, I am not sure if it did or not. how might I check that? I hope to get to this machine today, and try looking at some of the things to see what is going on.
 
Old 11-12-2008, 01:41 PM   #8
accpilot
LQ Newbie
 
Registered: Nov 2008
Posts: 4

Original Poster
Rep: Reputation: 0
well I am not sure what to think now. there are two of these network cards on this motherboard. and I thought for fun I would see if the other one was doing the same thing. I went into the network set up, activated the second card, setup the IP address. unselected static IP address and deactivated the 1st card. then did /etc/init.d network stop/start. and the 2nd card started to work. then I did a reboot with the cable in, and nothing, just what I thought. so I did another reboot with the cable unplugged, signed in, plugged the network cable in and nothing. did the network stop/start again, still nothing. I had to reconfigure the 1st card again.

I did dmesg and it fills the buffer of the terminal window. and I am not sure what I should be looking for.
 
Old 11-13-2008, 06:41 AM   #9
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Rep: Reputation: 62
Quote:
Originally Posted by accpilot View Post
Hi Fotoguy, I am not sure if it did or not. how might I check that? I hope to get to this machine today, and try looking at some of the things to see what is going on.
The modules, if installed, will be under /lib/modules/"kernel-version"

If they are installed, you may need to update the links for the new modules for them to be loaded during bootup, you can do this via the command line as root, try:

Code:
depmod -a "kernel-version"
 
  


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
Detect network cable being plugged in Vgui Slackware 7 01-03-2009 06:22 AM
if( ethernet-cable-is-plugged-in ) { ... mrtwice Linux - Networking 13 10-08-2006 02:57 PM
What happens when a network cable is plugged in ? balajipriya Linux - Networking 1 08-12-2004 09:10 AM
dhcpcd, no network cable plugged in meyert Slackware 3 04-28-2004 08:34 PM
Automatically Connect when cable is plugged in?? NovaBurst Fedora 2 02-18-2004 09:15 AM

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

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