12 April, 2015

Setting ethernet interface speed in /etc/network/interfaces

There is an easy way to set the network interface speed in Ubuntu 14.04:

In the iface section of the /etc/network/interfaces you can add the link-speed and link-duplex parameters, to pass them to ethtool.

The example below sets the link speed to 100 Mbit/sec:

iface eth1 inet static
        link-speed 100
        link-duplex full

No comments: