LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-22-2011, 12:50 PM   #1
mobile_doug
LQ Newbie
 
Registered: Jun 2011
Posts: 2

Rep: Reputation: Disabled
NetworkManager not reliably starting interface directly wired between two computers


I have two computers that have a direct ethernet wire between them. The interface is set to a static ip address on each side, and under control of the NetworkManager.

About 1/10 the time the interface does not start. The messages log file will show:

Jun 22 13:01:22 owl10 NetworkManager[601]: <info> (p6p1): carrier is OFF
Jun 22 13:01:22 owl10 NetworkManager[601]: <info> (p6p1): new Ethernet device (driver: 'r8169' ifindex: 2)
Jun 22 13:01:22 owl10 NetworkManager[601]: <info> (p6p1): exported as /org/freedesktop/NetworkManager/Devices/0
Jun 22 13:01:22 owl10 NetworkManager[601]: <info> (p6p1): now managed
Jun 22 13:01:22 owl10 NetworkManager[601]: <info> (p6p1): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Jun 22 13:01:22 owl10 NetworkManager[601]: <info> (p6p1): bringing up device.
Jun 22 13:01:22 owl10 NetworkManager[601]: <info> (p6p1): preparing device.
Jun 22 13:01:22 owl10 NetworkManager[601]: <info> (p6p1): deactivating device (reason: 2).
Jun 22 13:01:22 owl10 kernel: [ 4.932240] r8169 0000:05:00.0: p6p1: link down
Jun 22 13:01:22 owl10 kernel: [ 4.932248] r8169 0000:05:00.0: p6p1: link down
Jun 22 13:01:22 owl10 kernel: [ 4.932634] ADDRCONF(NETDEV_UP): p6p1: link is not ready


And, if I just physically unplug the cable and plug it back in NetworkManager starts the interface:

Jun 22 13:08:40 owl10 kernel: [ 442.658355] r8169 0000:05:00.0: p6p1: link up
Jun 22 13:08:40 owl10 kernel: [ 442.658875] ADDRCONF(NETDEV_CHANGE): p6p1: link becomes ready
Jun 22 13:08:40 owl10 NetworkManager[601]: <info> (p6p1): carrier now ON (device state 20)
Jun 22 13:08:40 owl10 NetworkManager[601]: <info> (p6p1): device state change: unavailable -> disconnected (reason 'carrier-changed') [20 30 40]
Jun 22 13:08:40 owl10 NetworkManager[601]: <info> Activation (p6p1) starting connection 'Middle Port'
Jun 22 13:08:40 owl10 NetworkManager[601]: <info> (p6p1): device state change: disconnected -> prepare (reason 'none') [30 40 0]
Jun 22 13:08:40 owl10 NetworkManager[601]: <info> Activation (p6p1) Stage 1 of 5 (Device Prepare) scheduled...
Jun 22 13:08:40 owl10 NetworkManager[601]: <info> Activation (p6p1) Stage 1 of 5 (Device Prepare) started...
Jun 22 13:08:40 owl10 NetworkManager[601]: <info> Activation (p6p1) Stage 2 of 5 (Device Configure) scheduled...
Jun 22 13:08:40 owl10 NetworkManager[601]: <info> Activation (p6p1) Stage 1 of 5 (Device Prepare) complete.
Jun 22 13:08:40 owl10 NetworkManager[601]: <info> Activation (p6p1) Stage 2 of 5 (Device Configure) starting...
Jun 22 13:08:40 owl10 NetworkManager[601]: <info> (p6p1): device state change: prepare -> config (reason 'none') [40 50 0]
Jun 22 13:08:40 owl10 NetworkManager[601]: <info> Activation (p6p1) Stage 2 of 5 (Device Configure) successful.
Jun 22 13:08:40 owl10 NetworkManager[601]: <info> Activation (p6p1) Stage 3 of 5 (IP Configure Start) scheduled.
Jun 22 13:08:40 owl10 NetworkManager[601]: <info> Activation (p6p1) Stage 2 of 5 (Device Configure) complete.
Jun 22 13:08:40 owl10 NetworkManager[601]: <info> Activation (p6p1) Stage 3 of 5 (IP Configure Start) started...
Jun 22 13:08:40 owl10 NetworkManager[601]: <info> (p6p1): device state change: config -> ip-config (reason 'none') [50 70 0]
Jun 22 13:08:40 owl10 NetworkManager[601]: <info> Activation (p6p1) Stage 4 of 5 (IP4 Configure Get) scheduled...
Jun 22 13:08:40 owl10 NetworkManager[601]: <info> Activation (p6p1) Stage 3 of 5 (IP Configure Start) complete.
Jun 22 13:08:40 owl10 NetworkManager[601]: <info> Activation (p6p1) Stage 4 of 5 (IP4 Configure Get) started...
Jun 22 13:08:40 owl10 NetworkManager[601]: <info> Activation (p6p1) Stage 5 of 5 (IP Configure Commit) scheduled...
Jun 22 13:08:40 owl10 NetworkManager[601]: <info> Activation (p6p1) Stage 4 of 5 (IP4 Configure Get) complete.
Jun 22 13:08:40 owl10 NetworkManager[601]: <info> Activation (p6p1) Stage 5 of 5 (IP Configure Commit) started...
Jun 22 13:08:40 owl10 avahi-daemon[614]: Joining mDNS multicast group on interface p6p1.IPv4 with address 192.168.3.10.
Jun 22 13:08:40 owl10 avahi-daemon[614]: New relevant interface p6p1.IPv4 for mDNS.
Jun 22 13:08:40 owl10 avahi-daemon[614]: Registering new address record for 192.168.3.10 on p6p1.IPv4.
Jun 22 13:08:41 owl10 NetworkManager[601]: <info> Policy set 'Side Port' (p7p1) as default for IPv4 routing and DNS.
Jun 22 13:08:41 owl10 NetworkManager[601]: <info> (p6p1): device state change: ip-config -> activated (reason 'none') [70 100 0]
Jun 22 13:08:41 owl10 NetworkManager[601]: <info> Activation (p6p1) successful, device activated.
Jun 22 13:08:41 owl10 NetworkManager[601]: <info> Activation (p6p1) Stage 5 of 5 (IP Configure Commit) complete.


So, I imagine there is a race condition where both boxes wait for the other to start the interface.

My question: Is there anyway to force NetworkManager to bring up an interface even if there is no Carrier?

BTW, this problem started recently on Fedora 13 after some upgrades. We upgraded to the latest Fedora 15 to try and solve it, and it now appears more often than it did on Fedora 13.

Doug
 
Old 06-23-2011, 03:46 PM   #2
jefro
Guru
 
Registered: Mar 2008
Posts: 11,317

Rep: Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386
I get the feeling it is a hardware issue. Bad cable or connectors or nic's.

What happens when you use ifconfig up or ifup or whatever is in that distro?

Looks like the new way to name is working but I'd check that.

Seems there are many issue with this release. N
 
Old 07-01-2011, 08:02 AM   #3
mobile_doug
LQ Newbie
 
Registered: Jun 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Discussion moved to network manager developers mailing list

I moved the discussion to the NetworkManager developers mailing list.
 
  


Reply


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
How to get wired and wireless connection at the same time using NetworkManager? veeruk101 Linux - Newbie 3 07-04-2011 10:58 PM
Problem Bridging Wired Interface to Wireless Interface. JivanAmara Linux - Networking 0 08-17-2009 01:25 AM
How to directly connect 2 computers - No router, no DHCP? GuyWhoKilledBear Linux - Networking 2 08-07-2009 12:41 PM
is it possible for 2 computers behind a router to talk directly or do i need vpn solusrex Linux - Networking 35 08-19-2006 04:44 AM
Connecting two computers directly Joe Soap General 6 02-05-2002 06:13 PM


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