Tuesday, March 22, 2011

Backtrack basics: 6. Setting static IP address

We can set the IP, default gateway and DNS server with the following 3 commands:

ifconfig eth0 192.168.1.55/24
route add default gw 192.168.1.1
echo nameserver 192.168.1.1 > /etc/resolv.conf

No comments: