How to change speed and duplex settings Ethernet

| May 2, 2011 | 0 Comments

mii-tool or ethtool package which allows modify/change and view the negotiated speed of network interface card

Install mii-tool and ethtool tools

# yum install ethtool net-tools

Get speed and other information for eth0

Type following command as root user:

# ethtool eth0

Or use mii-tool command as follows:

# mii-tool eth0

Change the speed and duplex settings

Setup eth0 negotiated speed with mii-tool

Disable autonegotiation, and force the MII to either 100baseTx-FD, 100baseTx-HD, 10baseT-FD, or 10baseT-HD:

# mii-tool -F 100baseTx-HD
# mii-tool -F 10baseT-HD

Setup eth0 negotiated speed with ethtool

# ethtool -s eth0 speed 100 duplex full
# ethtool -s eth0 speed 10 duplex half

Add following lines to /etc/rc.local for work persistant

ethtool -s eth0 speed 100 duplex full autoneg on 1>/dev/null 2>/dev/null
ethtool -s eth1 speed 100 duplex full autoneg on 1>/dev/null 2>/dev/null

Tags: , , ,

Category: Linux Administration

Leave a Reply

You must be logged in to post a comment.