Skip to content

Instantly share code, notes, and snippets.

@joninvski
Created February 19, 2014 11:28
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 joninvski/9090230 to your computer and use it in GitHub Desktop.
Save joninvski/9090230 to your computer and use it in GitHub Desktop.
# 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
allow-hotplug eth0
iface eth0 inet dhcp
## address 172.20.41.200
## netmask 255.255.255.0
## network 172.20.41.0
## broadcast 172.20.41.255
## gateway 172.20.41.254
## # dns-* options are implemented by the resolvconf package, if installed
## dns-nameservers 193.136.166.104 193.136.166.65 193.136.166.3
dns-search inesc-id.pt
up ip address add 193.136.166.141/32 dev eth0 || true
up echo '...'
up ip route show
up ip route del default via 172.20.41.254 || true
up echo '...'
up ip route show
up ip route add default via 172.20.41.254 dev eth0 src 193.136.166.141
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment