title: ethtool
category: Server
time: 1731249342706
---

## Check status of `eth0`

### Check Ethernet driver
```
lspci | grep Ethernet
```

### Check Ethernet kernel message
```
dmesg | grep eth0
```

### Use `ethtool` to check Ethernet device
```
ethtool eth0

# Show feature of Ethernet device
ethtool -k eth0

# Show statictis of Ethernet device
ethtook -S eth0
```

### Force 1000 Mbps and full duplex on `eth0`
```
ethtool -s eth0 speed 1000 duplex full autoneg off
```
(CentOS / RHEL)

To make the changes permanent, edit `/etc/sysconfig/network-scripts/ifcfg-eth0`
```
ETHTOOL_OPTS="speed 1000 duplex full autoneg off"
```


***Reference: ***
- [ethtool - PhoenixWiki](https://wiki.phoenixlzx.com/page/ethtool/)
