• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 446
  • Last Modified:

Determening duplex setting on NIC

Hi All,

We have a couple of Redhat 7.x servers

I need to document the NIC duplex settings and speed.

On kernel 2.4.18-3, I use mii-tool and get the info I want.

However, some of the servers still run kernel 2.2.19-x and mii-tool doesn't seem to be installed.

Short from downloading and installing the rpm, what command can I use to determine the duplex / speed of the NIC?

Regards,
Jo
0
m0nk3yza
Asked:
m0nk3yza
  • 2
2 Solutions
 
evangineerXCommented:
Is there anything useful in the dmesg output?
0
 
wnrossCommented:
Chances are that kernels that old are running hardware that does not support MII tranceiver status, but assuming
that the hardware DOES support it, simply download mii-diag from Donald Becker

wget ftp://ftp.scyld.com/pub/diag/mii-diag.c
make mii-diag
mv mii-diag /usr/local/sbin

PS: He's the guy who probably wrote the device driver for your card, so you should be able to trust the code here

Cheers,
-Bill
0
 
joolsCommented:
Does ethtool exist on that version?

It's been so long I really can't remember.


Jools
0
 
wnrossCommented:
It may have been.  

A *quick* check for ethtool seems to indicate it wasn't in RH6.1, but I don't have that distro handy.

But since mii-diag is such a small program (one file), its probably easier and faster to grab it rather than track down
any rpm's for his systems.

Cheers,
-Bill
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now