Skip to content

Instantly share code, notes, and snippets.

@level09
Created January 16, 2013 20:51
Show Gist options
  • Save level09/4550839 to your computer and use it in GitHub Desktop.
Save level09/4550839 to your computer and use it in GitHub Desktop.
static ip Configuration on linode
# The loopback interface
auto lo
iface lo inet loopback
# Configuration for eth0 and aliases
# This line ensures that the interface will be brought up during boot.
auto eth0 eth0:0
# eth0 - This is the main IP address that will be used for most outbound connections.
# The address, netmask and gateway are all necessary.
iface eth0 inet static
address 12.34.56.78
netmask 255.255.255.0
gateway 12.34.56.1
# eth0:0 - Private IPs have no gateway (they are not publicly routable) so all you need to
# specify is the address and netmask.
iface eth0:0 inet static
address 192.168.133.234
netmask 255.255.128.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment