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 12-12-2007, 12:07 PM   #1
luizzz
LQ Newbie
 
Registered: Nov 2007
Posts: 3

Rep: Reputation: 0
Why ifup (boot scripts) script puts my eth1 up despite of cable absence?


Hello, I'm working on linux 2.6.14.
My system has 2 on-chip ethernet ports (eth0-eth1).
I have included startup scripts for both ports in etc/sysconfig/network-scripts,
piloting each interface to be up on boot.
Point is: when I bootstrap without cable, my syslog is flooded by
the typical "Trying Speed..." printed by the auto negotiation machine.
Moreover if I perform a ethtool request on that interface, link is declared UP (!!).
This behavior stops when I insert a cable in the interface.

This is not correct in my opinion: indeed, when I plug off the cable again, syslog is no more flooded, and auto negotiation machine is started by the LINK UP event.
Is there any option I can use for having the correct event-driven behavior from the beginning?

Thanks!

L.
 
Old 12-12-2007, 05:35 PM   #2
rsashok
Member
 
Registered: Nov 2006
Location: USA, CA
Distribution: RedHat, Debian
Posts: 202

Rep: Reputation: 31
Probably it depends on the driver you are using. Ideally, you want driver software to have 'carrier detect' when it gets initialized. But in your case it looks like it only has 'carrier lost' and 'carrier sense' events after the driver is being installed. Though, not all drivers are the same, and maybe if you'd had other hardware it would've been different.
 
Old 12-13-2007, 05:16 AM   #3
luizzz
LQ Newbie
 
Registered: Nov 2007
Posts: 3

Original Poster
Rep: Reputation: 0
I'd agree, but what puzzles me is that when I insert the cable (link up etc..) and then remove it again, there's no more "Trying..." activity, and everything starts to work correctly in a carrier detect fashion...
 
  


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
cannot activate eth1 using ifup or using ifcfg-eth1 akay Linux - Hardware 10 12-16-2010 05:10 AM
both eth0 and eth1 ping fail when one ethernet cable is unplugged powah Linux - Networking 12 04-10-2007 02:54 PM
ifup eth1 gives error but successfully ups and works why? cranium2004 Linux - Networking 2 04-06-2005 06:49 AM
Must run /sbin/ifup eth1 everytime I boot Reo5th Linux - Networking 2 02-27-2004 10:29 AM
how do I add script to set default gateway on boot for eth1 abg Linux - Networking 3 10-01-2003 05:22 PM

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

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