Tuesday, July 19, 2011

How to use ethtool ?

■ Requirement : Use of ethtool
■ OS Environment : Linux[RHEL, Centos]
■ Application: ethtool
■ Resolution :

$ ethtool -g|--show-ring eth0
$ ethtool -A ethX [autoneg on|off] [rx on|off] [tx on|off]
$ ethtool -c|--show-coalesce ethX
$ ethtool -C|--coalesce ethX //change coalesce values

    To avoid flooding the host system with too many interrupts, packets are collected and one single interrupt is generated for multiple packets. This is called interrupt coalescing.

$ ethtool -G|--set-ring ethX [rx N] [rx-mini N] [rx-jumbo N] [tx N]
$ ethtool -i|--driver ethX
$ ethtool -k|--show-offload ethX
$ ethtool -K|--offload ethX [rx on|off] [tx on|off] [sg on|off] [tso on|off] [ufo on|off] [gso on|off] [gro on|off] [lro on|off]
$ ethtool -S|--statistics ethX //Queries the specified ethernet device for NIC- and driver-specific statistics.
$ ethtool -t|--test ethX [offline|online]
#ethtool -s ethX speed N [duplex half|full] [port tp|aui|bnc|mii] [autoneg on|off] [advertise N] [phyad N] [xcvr inter-
nal|external] [wol p|u|m|b|a|g|s|d...] [sopass xx:yy:zz:aa:bb:cc] [msglvl N]

No comments:

Post a Comment