Network

Static IP

Configure a static address in /etc/network/interfaces:

auto lo eth0
iface lo inet loopback
iface eth0 inet <static|dynamic>
        address 192.168.1.101
        netmask 255.255.255.0
        gateway 192.168.1.1

DNS

DNS servers are listed in /etc/resolv.conf.

Restart

/etc/init.d/networking restart

Caution: restarting networking is an admin action.

Info

ifconfig
Updated: 2026 Aug 19