LinuxQuestions.org
Help answer threads with 0 replies.
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 01-09-2003, 03:19 PM   #1
Dalma
LQ Newbie
 
Registered: Jan 2003
Location: Vancouver, BC Canada
Distribution: Red Hat 7.3
Posts: 13

Rep: Reputation: 0
NIC speeds


With RH 7.3 how does the machine know how to configure the NIC card at boot up.

I have a 10/100/1000 NIC card and seems to auto configure the communications speed at boot time. For example if connected to 10baseT hub it reports 10 half duplex at boot up but if moved to a 100baseT switch it reports 100 full duplex.

Is this managed via an init.d script or is it managed elsewhere. I know on some *nix's you can force it to configure at a given speed.
 
Old 01-09-2003, 03:59 PM   #2
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
this behavior is the default behavior . If you need to hard code the connection speed or duplex.. the method is dependent on the driver that the card uses.

For example:

Assuming we are using the eepro100 driver you need to make the following entries in /etc/modules.conf

alias eth0 eepro100
options eepro100 options=0x30

The various options are:
Hex Decimal Meaning
0x10 16 Force Full-Duplex operation (must be used with 0x20 or 0x40)
0x20 32 Force 100mbps-only operation
0x30 48 Force 100mbps-only with Full Duplex
0x40 64 Force 10mbps-only
0x50 80 Force 10mpps-only with Full Duplex

This information for a particular driver can usually be found in the doucmentation for that driver.

Someone told me there is a utilty available from Scyld.com called "mii-diag" but I have never seen or used it.

-KevinJ
 
Old 01-09-2003, 04:22 PM   #3
Dalma
LQ Newbie
 
Registered: Jan 2003
Location: Vancouver, BC Canada
Distribution: Red Hat 7.3
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks.
 
Old 01-09-2003, 10:22 PM   #4
rohang
Member
 
Registered: Aug 2002
Location: Sydney, Australia
Distribution: Redhat, Open BSD, SuSe, Debian, CentOS
Posts: 177

Rep: Reputation: 31
Thumbs up

You can try mii-tool which is installed on RedHat 8.0 (I can't remember if it's on any of the earlier dists though...)

[root@dcssl-smg-webids02 rohang]# mii-tool --help
usage: mii-tool [-VvRrwl] [-A media,... | -F media] [interface ...]
-V, --version display version information
-v, --verbose more verbose output
-R, --reset reset MII to poweron state
-r, --restart restart autonegotiation
-w, --watch monitor for link status changes
-l, --log with -w, write events to syslog
-A, --advertise=media,... advertise only specified media
-F, --force=media force specified media technology
media: 100baseT4, 100baseTx-FD, 100baseTx-HD, 10baseT-FD, 10baseT-HD,
(to advertise both HD and FD) 100baseTx, 10baseT
 
  


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
Distro speeds! mifan Linux - General 5 08-12-2005 06:27 PM
Download Speeds msound Linux - General 5 05-04-2005 06:38 PM
Network Speeds lin00b Linux - Networking 2 08-30-2004 09:40 AM
about downloading speeds the_imax General 7 05-15-2004 01:10 PM
determining/chaning NIC speeds GrungyApe Linux - Networking 0 08-14-2001 09:19 AM

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

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