From IT Mission Linux Tips, Hacks, Tutorials, Howtos - Itmission.org

Main: UbuntuNetworkConfiguration

Most ethernet configuration is centralized in a single file, /etc/network/interfaces.

To assign the IP address 192.168.0.2 to the device eth0, with the typical netmask of 255.255.255.0. Your default gateway's IP address is 192.168.0.1. You would enter something like this into /etc/network/interfaces:

iface eth0 inet static

	address 192.168.0.2
	netmask 255.255.255.0
	gateway 192.168.0.1
       nameserver 4.2.2.2
Retrieved from http://www.itmission.org/Main/UbuntuNetworkConfiguration
Page last modified on April 14, 2007, at 05:29 AM