Skip to content

Instantly share code, notes, and snippets.

@steveharriss
Created June 4, 2020 08:02
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 steveharriss/8e2b4c4cc7c306fab4013418587cadc7 to your computer and use it in GitHub Desktop.
Save steveharriss/8e2b4c4cc7c306fab4013418587cadc7 to your computer and use it in GitHub Desktop.
Network Interfaces - No Gateway on reboot
# 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
iface eth0 inet static
address 85.119.xx.xx
netmask 255.255.248.0
gateway 85.119.80.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 85.119.80.232 85.119.80.233 2001:ba8:1f1:f205::53
iface eth0 inet static
address 85.119.xx.xx/32
iface eth0 inet6 static
address 2001:ba8:1f1:xxxx::2
netmask 64
gateway 2001:ba8:1f1:xxxx::1
pre-up echo "/proc/sys/net/ipv6/conf/default/forwarding=0" && echo 0 > /proc/sys/net/ipv6/conf/default/forwarding || true
pre-up echo "/proc/sys/net/ipv6/conf/all/forwarding=0" && echo 0 > /proc/sys/net/ipv6/conf/all/forwarding || true
pre-up echo "/proc/sys/net/ipv6/conf/default/accept_ra=0" && echo 0 > /proc/sys/net/ipv6/conf/default/accept_ra || true
pre-up echo "/proc/sys/net/ipv6/conf/all/accept_ra=0" && echo 0 > /proc/sys/net/ipv6/conf/all/accept_ra || true
pre-up echo "/proc/sys/net/ipv6/conf/$IFACE/accept_ra=0" && echo 0 > /proc/sys/net/ipv6/conf/${IFACE}/accept_ra || true
pre-up echo "/proc/sys/net/ipv6/conf/default/autoconf=0" && echo 0 > /proc/sys/net/ipv6/conf/default/autoconf || true
pre-up echo "/proc/sys/net/ipv6/conf/all/autoconf=0" && echo 0 > /proc/sys/net/ipv6/conf/all/autoconf || true
pre-up echo "/proc/sys/net/ipv6/conf/$IFACE/autoconf=0" && echo 0 > /proc/sys/net/ipv6/conf/${IFACE}/autoconf || true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment