your computers ip = 192.168.1.2
your routers ip = 192.168.1.1

ifconfig eth0 192.168.1.2
route add default gw 192.168.1.1
echo "nameserver 192.168.1.1" > /etc/resolv.conf