Using Ethtool on Boot


Using Ethtool on Boot

Ethtool allows you to configure most network drivers with settings such as full or half duplex, speeds of 10 or 100, and auto negotiation. In order to have these settings take affect on boot, you need to add them to the boot process somewhere. There are various approaches for this, but if you use /etc/network/interfaces to configure your network (Debian, Ubuntu, etc), then this is the way to go:

# The primary network interface
auto eth0
iface eth0 inet static
post-up ethtool -s eth0 speed 100 duplex full autoneg off

This will set the NIC at eth0 to 100 full duplex with no auto negotiation. It’s important for the post-up to be the last line. To view the current settings for eth0, just run:

ethtool eth0


Related Posts Plugin for WordPress, Blogger...

Tell us what you think