Define network interface on Ubuntu Linux systems. See /etc/sysconfig/network-scripts/ifcfg-eth0 for RedHat systems and /etc/conf.d/net for Gentoo.
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.168.9
netmask 255.255.255.0
network 192.168.168.0
broadcast 192.168.168.255
gateway 192.168.168.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.168.8
dns-search example.com
# ifconfig <dev> <ip> netmask <sub>
name server xxx.xxx.xxx.xxx
# apt-get remove dhcp-client
# /etc/init.d/networking restart
From Gnome you can run System > Administration > Network > Devices.
Incidently, you can change the hostname with the following:
# hostname myhostnamesend host-name "myhostname";