Network interfaces, configuring

From Ubuntuwiki.net

Jump to: navigation, search

Ubuntu keeps its network configuration information in the file /etc/network/interfaces.

Sample:

# loopback
auto lo
iface lo inet loopback

# primary network interface - static
auto eth0
iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
gateway 192.168.0.1

# secondary network interface - dynamic
auto eth1
iface eth1 inet dhcp
Personal tools