Linux nic (set Nic speed and mode) Ethtool is a command used to query and set Nic parameters. Summary: ethtool ethX // query ethX network port Basic settings ethtool-h // display ethtool Command help (help) ethtool-I ethX // query ethX network port information ethtool-d ethX // query ethX network port Registration Information ethtool-r ethX // reset ethX network port to adaptive mode ethtool-S ethX/ /query ethX network port receiving and receiving packet statistics ethtool-s ethX [speed 10 | 100 | 1000] /// set the network port rate to 10/100/1000 M [duplex half | full] /// set the network port half/Full Duplex [autoneg on | off] \ // sets whether the network port is self-negotiated [port tp | aui | bnc | mii] \ // sets the network port type [phyad N] \ [xcvr internal | exteral] \ [wol p | u | m | B | a | g | S | d...] \ [sopass xx: yy: zz: aa: bb: cc] \ [msglvl N] example: 1) [root @ linux/] # ethtool eth1 Settings for eth1: Supported ports: [TP] Supported link modes: 10 baseT/Half 10 baseT/Full 100 baseT/Half 100 baseT/Full 1000 baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10 baseT/Half 10 baseT/Full 100 baseT/Half 100 baseT/Full 1000 baseT/Full Advertised auto-negotiation: Yes Speed: 1000 Mb/s Duplex: Ful L Port: Twisted Pair PHYAD: 0 Transceiver: internal Auto-negotiation: on Supports Wake-on: umbg Wake-on: d Link detected: yes 2) [root @ linux/] # ethtool-I eth1 driver: e1000 version: 5.0.43-k1 firmware-version: N/A bus-info: 06:08. 1 3) [root @ linux/] # ethtool-S eth1 NIC statistics: rx_packets: 58068300 tx_packets: 87124083 rx_bytes: 1589713008 tx_bytes: 2165825901 rx_errors: 0 tx_errors: 0 rx_drop Ped: 0 tx_dropped: 0 multicast: 0 collisions: 0 errors: 0 rx_over_errors: 0 rx_crc_errors: 0 rx_frame_errors: 0 errors: 0 errors: 0 errors: 0 errors: 0 errors: 0 tx_heartbeat_errors: 0 tx_window_errors: 0 4) [root @ linux/] # ethtool-s eth1 autoneg off speed 100 duplex full related: 1) [root @ linux/] # which ethtool/sbin/ethtool 2) [root @ linux/] # r Pm-qf/sbin/ethtool ethtool-1.6-5 3) How to Make ethtool settings permanently stored on network devices? Solution 1: The ethtool settings can be saved in the/etc/sysconfig/network-scripts/ifcfg-ethX file to activate the options when the device starts next time. For example, ethtool-s eth0 speed 100 duplex full autoneg off this command sets the eth0 device to full-duplex adaptive, and the speed is MBS. To set these parameters when eth0 is started, modify the file/etc/sysconfig/network-scripts/ifcfg-eth0 and add the following line: ETHTOOL_OPTS = "speed 100 duplex full autoneg off" solution 2: write ethtool settings to/etc/rc. d/rc. local.