Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
IPv6 /etc/network/interfaces
root@water:~# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto ens160
iface ens160 inet static
address A.B.C.G
netmask 255.255.255.240
network A.B.C.D
broadcast A.B.C.E
gateway A.B.C.F
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 8.8.8.8
dns-search winvive.com
iface ens160 inet6 static
address fe80::2
netmask 64
gateway fe80::1%ens160
iface ens160 inet6 static
address 2607:xyz:abc::71
netmask 64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment