Set NIC to use 100 Fullduplex

1. Check the speed used by the NIC

/sbin/ethtool eth1

[root@test]# /sbin/ethtool eth1
Settings for eth1:
Supported ports: [ TP ]
Supported link modes:   10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes:  10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised auto-negotiation: Yes
        Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000001 (1)
Link detected: yes

As you can see Speed is set to 1000Mb/s

2. Now change the speed

Edit /etc/sysconfig/network-scripts/ifcfg-eth1

Add the line on the bottom:
ETHTOOL_OPTS=”speed 100 duplex full autoneg off”

Ex.

# Intel Corporation 82574L Gigabit Network Connection
DEVICE=eth1
BOOTPROTO=static
HWADDR=5C:F3:FC:26:20:2C
ONBOOT=yes
HOTPLUG=no
TYPE=Ethernet
IPADDR=x.x.x.x
NETMASK=x.x.x.x
GATEWAY=x.x.x.x
ETHTOOL_OPTS=”speed 100 duplex full autoneg off”

3. Save the file

4. Restart the network

/sbin/network service restart

5. Once you have change it verify the speed again

[root@test]# /sbin/ethtool eth1
Settings for eth1:
Supported ports: [ TP ]
Supported link modes:   10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes:  Not reported
Advertised auto-negotiation: No
        Speed: 100Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: off
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000001 (1)
Link detected: yes

Speed is now set to 100Mb/s

Advertisements

Mag-iwan ng Tugon

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 / Baguhin )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s