Configuring a Local Network on Debian and Ubuntu
Introduction
Not always easy to remember what to put in these damn files, right? Here are some simple examples.
Configuring Network Interfaces
Edit the file /etc/network/interfaces
.
Static IP Addressing
For example, here's how I configure my eth0 interface:
Dynamic IP Addressing
If I want dynamic addressing, it's even simpler:
Configuring DNS Servers
Edit the file /etc/resolv.conf
: