LinuxQuestions.org
Register a domain and help support LQ
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 01-04-2011, 04:25 AM   #1
ijdickinson
LQ Newbie
 
Registered: Feb 2006
Posts: 6

Rep: Reputation: 0
Odd networking problem with Ubuntu 10.10


I have a weird problem with my Ubuntu system, which I've just upgraded to 10.10 (via clean install, not in-place update). My machine has a single wired ethernet connection to my local DSL router. When I first log on, eth0 is down. However, if I straightaway take eth0 down and back up with ifconfig, it comes back to life perfectly. Alternatively I achieve the same end by disabling and enabling networking via NetworkManager. I see the following output in /var/log/messages:
Quote:
ian@rowan-15 $ uname -a
Linux rowan-15 2.6.35-24-generic #42-Ubuntu SMP Thu Dec 2 02:41:37 UTC 2010 x86_64 GNU/Linux
ian@rowan-15 $ grep eth0 /var/log/messages | tail
Jan 4 00:41:30 rowan-15 kernel: [ 16.613607] ADDRCONF(NETDEV_UP): eth0: link is not ready
Jan 4 00:42:14 rowan-15 kernel: [ 60.673116] r8169 0000:02:00.0: eth0: link up
Jan 4 08:19:03 rowan-15 kernel: [ 1.545644] r8169 0000:02:00.0: eth0: RTL8168d/8111d at 0xffffc900117fa000, 00:26:18:ee:02:2a, XID 083000c0 IRQ 44
Jan 4 08:19:07 rowan-15 kernel: [ 14.121935] r8169 0000:02:00.0: eth0: link down
Jan 4 08:19:07 rowan-15 kernel: [ 14.122624] ADDRCONF(NETDEV_UP): eth0: link is not ready
Jan 4 08:20:29 rowan-15 kernel: [ 96.792759] r8169 0000:02:00.0: eth0: link up
Jan 4 08:57:34 rowan-15 kernel: [ 1.527312] r8169 0000:02:00.0: eth0: RTL8168d/8111d at 0xffffc900117c8000, 00:26:18:ee:02:2a, XID 083000c0 IRQ 45
Jan 4 08:57:37 rowan-15 kernel: [ 15.835840] r8169 0000:02:00.0: eth0: link down
Jan 4 08:57:37 rowan-15 kernel: [ 15.836477] ADDRCONF(NETDEV_UP): eth0: link is not ready
Jan 4 08:58:31 rowan-15 kernel: [ 69.013433] r8169 0000:02:00.0: eth0: link up
The last line is as a result of the manual 'ifconfig eth0 up'.

This network interface worked fine under previous versions of Ubuntu, and still works OK if I dual-boot into Windows (which I only do for occasional gaming), so I don't think it's a hardware issue. I'm wondering if it's a timing issue related to the kernel I'm now running. I tried upgrading to the latest 2.6.35-24 from maverick proposed, but nothing changed.

Suggestions for diagnostics to run, logs to look at or config changes to try gratefully received.

Thanks,
Ian
 
Old 01-04-2011, 06:26 PM   #2
thelastquincy
LQ Newbie
 
Registered: Apr 2009
Location: Chico, CA
Distribution: Ubuntu 10.10
Posts: 9

Rep: Reputation: 1
Do you have the Ethernet connected upon boot or do you have unplugged not sure if this could be a problem, but worth looking at? Also I'll try finding the link I had when I was working on my wlan, Have you used iwlist or iwconfig before? or it also works all your connections not just your wlan. Check them out.
 
Old 01-05-2011, 04:19 AM   #3
ijdickinson
LQ Newbie
 
Registered: Feb 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by thelastquincy View Post
Do you have the Ethernet connected upon boot or do you have unplugged not sure if this could be a problem, but worth looking at?
The Ethernet cable is permanently plugged in. In Ubuntu pre 10.10, and in Windows, the Ethernet connection came up on boot perfectly OK.

Quote:
Also I'll try finding the link I had when I was working on my wlan, Have you used iwlist or iwconfig before? or it also works all your connections not just your wlan. Check them out.
But what am I looking for? I can see the various parameters on my nic from various sources, but I'm not sure what clues I'm looking for that would help me to find out wth is causing eth0 not to be ready as it was before.

One diagnostic I'd like to run is to install an older kernel, but I'm not sure how to specify a specific version to apt-get, nor which repository to use. Any suggestions?

Ian
 
Old 01-06-2011, 08:45 AM   #4
devwatchdog
Member
 
Registered: Jan 2010
Posts: 198

Rep: Reputation: 44
The Gnome network manager was something I found to be a PITA in certain situations, such as where you unplug the network cable for whatever reason often. I was doing some work on a number of different devices where I'd have a different network definition for each which were defined via command line using the 'ifconfig' command. The Gnome network manager would drop the interface once the cable was unplugged, then reset it to the default config. Not a big deal, but when you've typed in a number of routes in for the situation, it became an annoyance. Enough so I would uninstall the network manager and use scripts to do what was needed for the default config.

Your situation is a bit different, however.

I'd look for issues related to the r8169 module.

Hmmnn...seems your issue is probably related to this:

http://ubuntuforums.org/showthread.php?t=538448

That was a rather simple search engine experience. Funny how that works.
 
Old 01-06-2011, 08:01 PM   #5
ijdickinson
LQ Newbie
 
Registered: Feb 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by devwatchdog View Post
The Gnome network manager was something I found to be a PITA in certain situations, such as where you unplug the network cable for whatever reason often. I was doing some work on a number of different devices where I'd have a different network definition for each which were defined via command line using the 'ifconfig' command. The Gnome network manager would drop the interface once the cable was unplugged, then reset it to the default config. Not a big deal, but when you've typed in a number of routes in for the situation, it became an annoyance. Enough so I would uninstall the network manager and use scripts to do what was needed for the default config.
Having searched and found other posts mentioning NetworkManager, I had already tried disabling it to see if it helped. It had no effect, which I pretty-much expected since the eth0 will re-enable using ifconfig, not touching NetworkManager.

Quote:
Your situation is a bit different, however.

I'd look for issues related to the r8169 module.

Hmmnn...seems your issue is probably related to this:

http://ubuntuforums.org/showthread.php?t=538448
That's a thread from 2007/08 with kernel 2.6.26. My issue only just occurred with the switch to Ubuntu 10.10 and 2.6.35. I couldn't see anything in that thread that would help. Perhaps I should re-post this issue on ubuntuforums though - I've previously not had much success there, maybe due to the high volume of posts that go by.

Quote:
That was a rather simple search engine experience. Funny how that works.
Perhaps you could teach me how to be sarcastic too. I'd really like to learn that. Perhaps I should google it.

Ian
 
Old 01-06-2011, 08:32 PM   #6
ijdickinson
LQ Newbie
 
Registered: Feb 2006
Posts: 6

Original Poster
Rep: Reputation: 0
So actually devwatchdog was right: I should have JFG'ed it. Turns out a bunch of people have had problems with r8169 cards, frequently linked to dual-boot systems. And that seems to be the case with my system: it looks like the wake-on-lan problem. I'm a bit baffled why it's only just started showing up now, but hey, I have an explanation & workaround.

Thank you, devwatchdog

Ian
 
Old 01-06-2011, 10:14 PM   #7
devwatchdog
Member
 
Registered: Jan 2010
Posts: 198

Rep: Reputation: 44
Heya ijdickinson!

Sorry 'bout coming across as a bit too sarcastic. I know that without sitting across from someone and actually interacting with them sometimes things written can look a bit more biting than was the intent. I apologize for that, for although I can be a seriously sarcastic sod, I really didn't mean for it to come across like that.

I'm glad you found a solution for your problem. Sometimes all that is needed is to inject something that is outside of the parameters being considered. I know I've got a NIC here somewhere that uses that module, but I'd be only using it in a linux system, perhaps an OpenBSD system, but that one uses an Atheros device as I recall. Either way, unless someone is dual booting, that issue isn't going to affect them. That's a pretty strange issue, one I don't know if I'd have figured out, although I will say I'm someone that just doesn't give up on that sort of a problem.

Either way, it's good you were able to dissect it to the point of which you have a grasp on it. Seems like a pretty straightforward solution, too.

I have to admit I like wake on lan - I use it on a few systems here at home, and I find it rather useful. I can log into my Vyatta router from a remote location and fire up the systems I use. It's a great component when you don't want to leave things running all the time.
 
  


Reply

Tags
ethernet, maverick, ubuntu


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] I've got an odd PPPoE packet redirection networking problem royce2020 Linux - Networking 12 02-11-2010 04:14 PM
Ubuntu-Very odd scrolling mouse pointer problem-Acer 3810T markw10 Ubuntu 3 09-03-2009 05:27 AM
Odd problem with Network Manager and Networking bcage Linux - Networking 0 06-21-2009 11:30 AM
Ubuntu odd problem: can't see any text in "Terminal" beeblequix Ubuntu 5 11-01-2007 10:40 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration