Skip to content

Instantly share code, notes, and snippets.

@christianhanne
Created October 22, 2016 13:23
Show Gist options
  • Save christianhanne/23f64ef7837780b3c2508cce7a44b2f3 to your computer and use it in GitHub Desktop.
Save christianhanne/23f64ef7837780b3c2508cce7a44b2f3 to your computer and use it in GitHub Desktop.
Configurate a static ip address for a debian distribution.
File: /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo br0
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
# This is the important part. Above part may vary.
iface eth0 inet static
address 192.168.1.99 # The static ip address
netmask 255.255.255.0
gateway 192.168.1.1 # Your gateway
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment