Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 01-09-2003, 03:19 PM   #1
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
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 called "mii-diag" but I have never seen or used it.

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

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

Rep: Reputation: 30
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


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
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 > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:26 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration