Recent Changes - Search:

Navigation

Articles

Linux Downloads

Search Packages

Error log

Distros/ OS

Softwares

CMS

Help & Man Pages

Others

.

UbuntuNetworkConfiguration

  • Ubuntu Network Configuration

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
  • Specify your DNS servers manually in /etc/resolv.conf, which should look something like this:
       nameserver 4.2.2.2
  • To manage hosts:
    Add, edit, or remove hosts from /etc/hosts file.
Edit - History - Print - Recent Changes - Search
Page last modified on April 14, 2007, at 05:29 AM