Tuesday, December 14, 2010

Commands to set network settings in Ubuntu

ifconfig eth0 192.168.1.24 netmask 255.255.255.0

route add default gw 192.168.1.1

echo nameserver 192.168.1.10 > /etc/resolv.conf

ifconfig eth0 up

0 comments:

Post a Comment