View Single Post
Posts: 102 | Thanked: 140 times | Joined on Sep 2010 @ Israel
#227
To set static IP address root yourself then type:
Code:
ifconfig eth0 <ip-address> netmask <subnet-mask>
ifconfig eth0 up
Also add default gateway if you want Internet access:
Code:
route add default gw <default-gateway>
To specify DNS servers edit /etc/resolv.conf

Or, if you want the settings to persist reboots, just edit /etc/network/interfaces then type:
Code:
ifup eth0
Cheers.

Last edited by NiQ; 2011-05-01 at 16:16. Reason: typo.