/etc/network/interfaces

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface em1 inet static
    address 192.168.1.100
    netmask 255.255.255.0
    network 192.168.1.0
    broadcast 192.168.1.255 # optional
    gateway 192.168.1.254

# Wireless interface
auto wlp3s0
iface wlp3s0 inet dhcp
Template for static & dhcp
Comments