apt-get install ethtool: 

qntal:/proc/sys/net# ethtool eth0
Settings for eth0:
        Supported ports: [ MII ]
        Supported link modes:   10baseT/Half 10baseT/Full 
                                100baseT/Half 100baseT/Full 
        Supports auto-negotiation: Yes
        Advertised link modes:  1000baseT/Full 
        Advertised auto-negotiation: Yes
        Speed: 100Mb/s
        Duplex: Full
        Port: Twisted Pair
        PHYAD: 1
        Transceiver: internal
        Auto-negotiation: on
        Current message level: 0x000000ff (255)
        Link detected: yes

Some drivers spit out some information, but I don't know it they all do 

qntal:/proc/sys/net# dmesg | grep eth0
eth0: Broadcom 4400 10/100BaseT Ethernet 00:01:80:3a:02:55
b44: eth0: Link is down.
b44: eth0: Link is up at 100 Mbps, full duplex.


Other options are the packages
nictools-pci || nictools-nopci for EEPROM manipulations of certain cards (nictools-pci 
contains no broadcom tools :-( so this is not very usefull to me)

Or mii-diag:

qntal:/proc/sys/net# mii-diag 
Using the default interface 'eth0'.
Basic registers of MII PHY #1:  1000 782d 0040 6360 0de1 45e1 0007 2001.
 The autonegotiated capability is 01e0.
The autonegotiated media type is 100baseTx-FD.
 Basic mode control register 0x1000: Auto-negotiation enabled.
 You have link beat, and everything is working OK.
 Your link partner advertised 45e1: Flow-control 100baseTx-FD 100baseTx 10baseT-FD 
10baseT, w/ 802.3X flow control.
   End of basic transceiver information.

qntal:/proc/sys/net# mii-tool 
eth0: negotiated 100baseTx-FD flow-control, link ok

hth
Elie De Brauwer 

> Hi,
> 
> I've run yet into another problem....
> I want to know what the network settings concerning speed and mode are (10
> Mb, 100Mb, FDX, HDX).
> How can I check (and change) those ? Under Solaris, this can be checked /
> changed with ndd, but it seems (as far as I can tell)
> that Debian doesn't have such a command ?
> 
> best regards,
> 
> Andy Kannberg
> System Manager
> SITE UNIX group
> LG Philips Displays Eindhoven
> The Netherlands
> tel: 040 - 2304678
> fax: 040 - 2785405
> e-mail: [EMAIL PROTECTED]


-- 
Elie De Brauwer
http://www.de-brauwer.be


Hope is the worst of all evils, for it prolongs the torment of a man...
--Friedrich Nietzsche--


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to