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:
- Configure IPV6 on Apple and Windows Do you have IPV6 network ready in your office? Lets...
- ifconfig – NIC capabilities / functions find out what is the capability of an network interface,...
- How to Change MySQL Data Directory in Linux Centos By default Linux CentOS or other Linux Distro installation, MySQL...
- How to Change Hostname in Unix FreeBSD We have interesting hostname for our all our servers. Some...
- How to Find Out Public IP Address via Command Line in Unix/Linux Machine If you have more than 100 servers in your network;...
- How to Check Linux Version and Distro Who run more than 10 Linux servers with different version...
- Change or Set User Password in FreeBSD If you notice, during FreeBSD installation, it doesn’t have a...
- How to Change Timezone in FreeBSD By default, FreeBSD is configured with UTC timezone. In order...
- PECL Manual Install on Linux Centos Just bought a VPS server hosting to play around from...
- How to Change User’s Shell Environment in FreeBSD In FreeBSD, user’s default shell environment is either sh or...
January 15th, 2008 at 12:58 am
ethtool is damm powerful
March 31st, 2008 at 3:34 pm
Planet Lowyat : yap, it does a great job of changing the settings of the network…