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 MySQL Data Directory in Linux Centos By default Linux CentOS or other Linux Distro installation, MySQL...
  4. How to Change Hostname in Unix FreeBSD We have interesting hostname for our all our servers. Some...
  5. How to Find Out Public IP Address via Command Line in Unix/Linux Machine If you have more than 100 servers in your network;...
  6. How to Check Linux Version and Distro Who run more than 10 Linux servers with different version...
  7. Change or Set User Password in FreeBSD If you notice, during FreeBSD installation, it doesn’t have a...
  8. How to Change Timezone in FreeBSD By default, FreeBSD is configured with UTC timezone. In order...
  9. PECL Manual Install on Linux Centos Just bought a VPS server hosting to play around from...
  10. How to Change User’s Shell Environment in FreeBSD In FreeBSD, user’s default shell environment is either sh or...

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