Skip to content

Instantly share code, notes, and snippets.

@tracker1
Created February 7, 2014 01:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tracker1/8855795 to your computer and use it in GitHub Desktop.
Save tracker1/8855795 to your computer and use it in GitHub Desktop.
network config, multiple ips for a single interface.
# 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
iface lo inet loopback
# The primary network interface
auto eth0
#wan ip
iface eth0:0 inet static
address 184.183.6.212
netmask 255.255.255.240
gateway 184.183.6.209
dns-nameservers 8.8.8.8 8.8.4.4
auto eth0:0
#lan ip
iface eth0:1 inet static
address 192.168.44.212
netmask 255.255.255.0
auto eth0:1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment