/interfaces Secret
Created
June 4, 2020 08:02
Network Interfaces - No Gateway on reboot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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