LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-11-2010, 03:37 PM   #1
FireRaven
Member
 
Registered: Apr 2006
Location: Australia
Distribution: Debian Squeeze
Posts: 135

Rep: Reputation: 18
Sometimes 1000mbps and sometimes only 100mbps?


This morning I knocked around some cables near the gigabit switch and one of the servers turned orange instead of the usual green on the switch.
I SSH'd into that server and saw under /var/log/syslog this message:

Code:
Oct 12 07:07:01 nas kernel: [3507982.947307] atl1 0000:03:00.0: eth1 link is down
Oct 12 07:07:03 nas kernel: [3507985.468783] atl1 0000:03:00.0: eth1 link is up 1000 Mbps full duplex
Oct 12 07:07:16 nas kernel: [3507998.342862] atl1 0000:03:00.0: eth1 link is down
Oct 12 07:07:27 nas kernel: [3508009.412212] atl1 0000:03:00.0: eth1 link is up 100 Mbps full duplex
Oct 12 07:16:00 nas postfix/qmgr[1220]: 5E325D342: from=<>, size=8131, nrcpt=1 (queue active)
So bumping around cables had this machine take it's eth1 down then up again but only at 100mbps.

Does anyone know why this might have happened?
I am positive I did not unplug the switch at all.

I think it's a 5m Cat5e or Cat6 link (too hard to determine which one) about 1 year old. What determines if the server brings up as 100mbps or 1000mbps?
 
Old 10-11-2010, 03:46 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
Quality of service.
 
Old 10-11-2010, 04:19 PM   #3
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
If your link has changed after touching cables it is likely that the cables (and connectors) are poor quality. For 1Gb they are more "sensitive" for imperfection. Try replacing them.

Quote:
What determines if the server brings up as 100mbps or 1000mbps?
It is automatic by default, but you can force it:
Code:
ethtool -s eth1 autoneg off speed 1000
and check current settings by
Code:
ethtool eth1

Last edited by eSelix; 10-11-2010 at 04:40 PM.
 
Old 10-11-2010, 04:39 PM   #4
FireRaven
Member
 
Registered: Apr 2006
Location: Australia
Distribution: Debian Squeeze
Posts: 135

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by eSelix View Post
If your link has changed after touching cables it is likely that the cables (and connectors) are poor quality. For 1Gb they are more "sensitive" for imperfection. Try replacing them.
Thanks I will do this.
Is there a way to force linux to connect at 1000mbps though?
I take it somehow know when to decide to connect to 100 vs 1000 as in the logs...
 
Old 10-11-2010, 10:39 PM   #5
marauderx
LQ Newbie
 
Registered: Oct 2010
Posts: 12

Rep: Reputation: 0
Yes with miitools.
 
Old 10-11-2010, 10:58 PM   #6
FireRaven
Member
 
Registered: Apr 2006
Location: Australia
Distribution: Debian Squeeze
Posts: 135

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by marauderx View Post
Yes with miitools.
Thanks will try that if it happens again. I fixed it by turning the server completely off at the wall (to disable the light at the switch) then restart it.

Just doing soft reboot didn't do it, had to be hard reboot.

Code:
#mii-tool --force=1000baseT-FD
 
Old 10-12-2010, 04:51 AM   #7
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I agree with eSelix, the cable may be low quality or damaged, I would get a new one if it keeps happening.
 
Old 10-12-2010, 08:32 AM   #8
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

One more thought: You could have a poor connector at the switch.
 
Old 10-12-2010, 03:49 PM   #9
FireRaven
Member
 
Registered: Apr 2006
Location: Australia
Distribution: Debian Squeeze
Posts: 135

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by H_TeXMeX_H View Post
I agree with eSelix, the cable may be low quality or damaged, I would get a new one if it keeps happening.
It is just cat5e cable. I might try upgrading it to cat6. I believe this should make a difference for long distances such as this.
 
Old 10-14-2010, 03:00 AM   #10
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
CAT-5e is rated for 1000 megabit. Also it should be able to handle 5 meters or about 16 feet. If it can not and you made the cable, you did not do it correctly. Make sure the jacket of the cable is in the connector and make sure the teeth is making a connection. Also make sure the connector is designed for the cable you are using. If you are using stranded cable, use a connector designed for stranded. If the cable uses solid, use the connector designed for solid.

The network will always go to the lowest denominator, so check your network to find any 100 megabit devices. If there are 100 megabit devices, then your connection will be 100 megabit and it does not matter what category of Ethernet cable that you use.
 
Old 10-14-2010, 07:01 AM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
FYI 1000Base-T uses all 4 wire pairs but 100Base-T only uses 2. As stated if the cable/connector is marginal then the link will fall back to 100. Auto negotiation is strictly a hardware function but you can force it as previously stated.

In addition use ethtool, mii-tool is obsolete and does not support 1000Base-T network adapters.
 
  


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
Simulate a 500Mbps link on a 1000Mbps one... silealdo Linux - Networking 2 04-01-2010 03:42 PM
SY-VIA-GA (SYBA) 10/100/1000Mbps NIC sadarax Linux - Hardware 1 05-27-2006 10:33 PM
RH9 - Slow Network - 10/100/1000Mbps BarryT Linux - Networking 3 07-21-2005 08:35 PM
howto switch from 10mbps to 100mbps kingterr0r Linux - Networking 2 02-14-2005 05:28 PM
400Mbps on 100Mbps ethernet soichih Linux - Networking 4 05-09-2004 07:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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