2024-07-11

Script to see network interface connection speed

cat network-speed

#!/usr/bin/bash

# ethtool enp2s0 | grep Speed

ethtool $1 | grep Speed

# mii-tool -v enp2s0

mii-tool -v $1






  network-speed enp1s0

        Speed: 1000Mb/s

enp1s0: negotiated 1000baseT-FD flow-control, link ok

  product info: vendor 00:07:32, model 0 rev 0

  basic mode:   autonegotiation enabled

  basic status: autonegotiation complete, link ok

  capabilities: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD

  advertising:  1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control

  link partner: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD

No comments:

Post a Comment

Script to see network interface connection speed

cat network-speed #!/usr/bin/bash # ethtool enp2s0 | grep Speed ethtool $1 | grep Speed # mii-tool -v enp2s0 mii-tool -v $1   network-speed ...