Created
May 11, 2020 18:23
-
-
Save mgedmin/a1073057a1d39edd4578ba7f3190088e to your computer and use it in GitHub Desktop.
/etc/network/interfaces with static IPv6
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
auto lo | |
iface lo inet loopback | |
auto eth0 | |
iface eth0 inet static | |
address X.X.X.X | |
pointopoint X.X.X.Y | |
netmask 255.255.255.255 | |
gateway X.X.X.Y | |
dns-nameservers A.B.C.D A.B.C.E A.B.C.F | |
iface eth0 inet6 static | |
address XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX | |
netmask 128 | |
post-up /bin/ip -6 route add XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:YYYY dev eth0 | |
post-up /bin/ip -6 route add default via XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:YYYY | |
pre-down /bin/ip -6 route del default via XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:YYYY | |
pre-down /bin/ip -6 route del XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:YYYY dev eth0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment