Thursday, August 11, 2011

Modify speed and duplex settings in ubuntu

apt-get install ethtool

ethtool -s eth0 autoneg off speed 10 duplex half

ethtool eth0

Some basic networking commands in ubuntu

ifconfig eth0 Ip

ifconfig eth0 netmask subnetmask

route add default gw gatewayip

ifconfig eth0 up

/etc/init.d/networking restart

gedit  /etc/resolv.conf

nameserver dnsserverip

/etc/init.d/networking restart