Sunday, January 25, 2009

Handy Networking Commands For Ubuntu

I use mii-tool or ethtool command to make sure my Ethernet interface is talking at GigE speed. I use the iwconfig command to check my wireless reception on my laptop.

>sudo mii-tool -v



eth1: negotiated 1000baseT-HD flow-control, link ok
product info: vendor 00:07:32, model 17 rev 0
basic mode: autonegotiation enabled
basic status: autonegotiation complete, link ok
capabilities: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
link partner: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control


>sudo ethtool eth2



Settings for eth2:
Supported ports: [ FIBRE ]
Supported link modes: 1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: Not reported
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: FIBRE
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000033 (51)
Link detected: yes



>iwconfig



eth1 IEEE 802.11g ESSID:"SomeNameGoesHere"
Mode:Managed Frequency:2.437 GHz Access Point: FF:FF:FF:FF:FF:FF
Bit Rate:54 Mb/s Tx-Power=20 dBm Sensitivity=8/0
Retry limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=83/100 Signal level=-47 dBm Noise level=-86 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:1



Post a Comment