Change Speed and Duplex of NICs in RHEL

If you need to configure speed and duplex using CLI under RHEL or similar, use the following command.

# ethtool -s eth0 speed 10000 duplex full autoneg off

To permanently add the above rules, use the following command.

# cat <<EOF>> /etc/sysconfig/network-scripts/ifcfg-eth0
ETHTOOL_OPTS="speed 10000 duplex full autoneg off"
EOF
Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s