Skip to content

Instantly share code, notes, and snippets.

@mnathani
Created July 25, 2017 02:42
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 mnathani/b2c682a497406cd765b068134263468a to your computer and use it in GitHub Desktop.
Save mnathani/b2c682a497406cd765b068134263468a to your computer and use it in GitHub Desktop.
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