Static IP using ifconfig and route
192.168.1.2 is the IP address of my computer. 192.168.1.1 is the IP address of my router.
# ifconfig eth0 192.168.1.2 broadcast 192.168.1.255 netmask 255.255.255.0 up # route add default gw 192.168.1.1
You will also have to edit /etc/resolv.conf and enter your name servers. You can either look up some public name servers or use those provided by your ISP.
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=3 »
[Click to add or edit comments])
Please prepend comments below including a date