Web Hosting Talk







View Full Version : How to check the NIC's speed is set at??


Eiv
08-17-2002, 01:35 PM
Does any body know if I can check what speed my NIC is set at from SSH access??

[root@cp cron]# cat /etc/modules.conf
alias parport_lowlevel parport_pc
alias eth0 eepro100
alias usb-controller usb-uhci

Does that say it is 10mbps or 100mbps??

bitserve
08-17-2002, 02:12 PM
That's not even a reliable way to see what kernel loadable driver is actually being used for your NIC, but eepro100 is just the name of the driver being specified to be loaded for eth0.

You might want to type lsmod to see what is actually being loaded as a driver for eth0.

If you are using the eepro100 driver for you NIC, you can visit the homepage for that driver that has information on options for it, including a diagnostics program.

http://www.scyld.com/network/eepro100.html
ftp://ftp.scyld.com/pub/diag/eepro100-diag.c

jic
08-17-2002, 03:45 PM
Also, it really doesn't matter how fast of a network card you have in there (10 mbit/100/ 1 Gig) it all depends on how fast the network your are connected to is.

mikeknoxv
08-17-2002, 04:27 PM
Originally posted by jic
Also, it really doesn't matter how fast of a network card you have in there (10 mbit/100/ 1 Gig) it all depends on how fast the network your are connected to is.

Well, if he had a 10mbit network card in his machine and was connected to a 100mbit network, I think the network card would make a difference.

manmythlgnd
08-17-2002, 05:32 PM
And to actually answer the question...

The ifconfig(8) manual page should help you find your way. Simply "man ifconfig" (sorry if I sound condescending, I don't know anything about skill level here).

And the quick answer:

Try "ifconfig eth0" (sorry, no linux here). The media type should reveal what it is set to (I'm assuming linux isn't braindead in this respect).

However, on a few of my bsd boxes:

bash-2.04$ ifconfig fxp0
[snip]
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet x.x.x.x netmask 0xffffff00 broadcast x.x.x.x
ether xx:xx:xx:xx:xx:xx
media: Ethernet (100baseTX <full-duplex>)
status: active

xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
media: Ethernet (10baseT)
status: active
inet x.x.x.x netmask 0xffffff00 broadcast x.x.x.x

bitserve
08-18-2002, 02:07 AM
Originally posted by manmythlgnd
[B]And to actually answer the question...

The ifconfig(8) manual page should help you find your way. Simply "man ifconfig" (sorry if I sound condescending, I don't know anything about skill level here).


I don't think I've seen a Linux NIC driver where the mediatype was actually supported for ifconfig.