paperlined.org
rosetta_stone > os
document updated 13 years ago, on Dec 14, 2011

Debian/Ubuntu etc

static IP

edit /etc/network/interfaces

Linux

static IP

ifconfig eth0 192.168.1.101 netmask 255.255.255.0

default gateway

route add default gw 192.168.1.254 eth0

DNS server

edit /etc/resolv.conf

Solaris

IP address

edit /etc/hosts (using the name found in hostname.hme*)

netmask

edit /etc/netmasks

default gateway

Edit /etc/defaultrouter

Or route add default 192.168.1.1

DNS server

edit /etc/resolv.conf and /etc/nsswitch.conf

make changes take effect without rebooting

svcadm restart network/physical
    or
/etc/init.d/network restart