Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857
Rep:
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.
Distribution: Redhat, Open BSD, SuSe, Debian, CentOS
Posts: 177
Rep:
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.