UnixServerAdmin

Server Administration & Management

How to change Duplex settings of NIC Card

If you are experiencing slow speeds and packet loss on a Linux server, you may need to have the NIC settings restored to full duplex, to accomplish this please do the following:

1. Login to server as root and run the following commands:

# ethtool eth0     (or eth1, etc)

2. If you get a response back from the previous command, do the following:

# ethtool -s eth0 speed 100

# ethtool -s eth0 autoneg off

# ethtool -s eth0 duplex full

3. If you do not get a response back from the ethtool command, you’ll need one of the following:

# mii-tool -rR     (for 100mbit)

# mii-tool -F 10baseT-FD     (for 10mbit)

4. Once the above steps are followed the server speed can be checked using the command as

# mii-tool eth0

Output should be:

eth0: 100 Mbit, full duplex, link ok

5. Accordingly you can change the above 3 commands to make it work in Half duplex mode, or 10 mbps (setting your NIC to 100mbit, if you are only allocated 10mbits will result in your server going offline and will require a Hivelocity technician to console the server).

6. To make the change permanent for 10mbits on Red Hat based systems, add the following to

# vi /etc/sysconfig/network-scripts/ifcfg-eth0

ETHTOOL_OPTS=”speed 10 duplex full autoneg off”

7. For Debian based systems, add the following to

# vi /etc/network/interfaces

up mii-tool -F 10baseT-FD

This will help you resolve packetloss and slow speed issues.

November 18, 2011 - Posted by | Tips & Tricks, Unix/Linux | , ,

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

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

Google photo

You are commenting using your Google 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 )

Connecting to %s

%d bloggers like this: