Most networking is configured by editing two files:
Other networking files:
|auto||Indicates the device should be setup at boot time.|
|eth0||Ethernet device 0, typically the primary network adaptor.|
|inet||Indicates network adaptor has an IPv4 address space.|
|dhcp||Network adapter gets its configuration from a DHCP server.|
|static||Indicates the adaptor uses fixed IP configuration.|
|address||The IP address of the host. netmask Network subnet mask.|
|network||The network portion of the IP address.|
|nameserver||The IP of a DNS.|
For static interfaces, you may also need to edit /etc/resolv.conf to specify DNS servers.
Ubuntu refers to this file to resolve host names before contacting a DNS. Good for frequently used hostnames, or internal network hosts.
|Ping||Test that an internet host is reachable.|
|ifconfigtd>||Administer a TCP/IP network interface.|
|sudo /etc/init.d/ networking||stop, start, restart as arguments; controls network status.|
|route||Examine and configure the host’s routing table.|