Change NIC characteristic in linux

For some reason, my debian box does not enable my NIC’s gigabit capability. The manual way is :

1. apt-get install ethtool

2. ethtool <interface> -s speed <link speed> duplex full autoneg off – e.g. ethtool eth0 -s speed 100 duplex full autoneg off

3. ifconfig eth0 down

4. ifconfig eth0 up

5. route add default gw <gateway> – e.g. route add default gw 192.168.0.1

run “ethtool eth0″ to check the interface speed.

To make it permanent, add the following to /etc/network/interfaces :

post-up /usr/bin/ethtool eth0 -s speed 100 duplex full autoneg off
post-up route add default gw 192.168.0.1

Cheers !!!

Related posts:

  1. Configure IPV6 on Apple and Windows Do you have IPV6 network ready in your office? Lets...
  2. ifconfig – NIC capabilities / functions find out what is the capability of an network interface,...
  3. How to Change Hostname in Unix FreeBSD We have interesting hostname for our all our servers. Some...

2 Responses to “Change NIC characteristic in linux”

  1. Planet Lowyat Says:

    ethtool is damm powerful

  2. mymac Says:

    Planet Lowyat : yap, it does a great job of changing the settings of the network… :)

Leave a Reply