1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
allow-hotplug eth1
iface eth1 inet static
address 1.1.1.2
netmask 255.255.255.0
gateway 1.1.1.1

iface eth1 inet6 static
address 2001:da8::2
netmask 64
gateway 2001:da8::1

# https://wiki.debian.org/NetworkConfiguration#Bridges_and_VLANs
# see this for why VLAN interfaces don't need to be declared first here
auto br-lan
iface br-lan inet static
address 192.168.0.1
netmask 255.255.255.0
bridge_ports enp2s0.177 enp1s0
bridge_stp on
bridge_maxwait 10

iface br-lan inet6 static
address 2001:da8::1
netmask 64

auto sit-test
iface sit-test inet6 v4tunnel
address 2001:db8::d:2
netmask 128
ttl 255
endpoint 1.1.1.1
local 2.2.2.2
up ip -6 r add 2001:db8::d:1/128 dev sit-test

# when behind NAT use address on NIC in 'local'
# GRE tunnels can also carry IPv6 traffic, use post-up stmt to add IPv6 addresses and routes
auto gre-test
iface gre-test inet tunnel
mode gre
local 10.0.0.2
endpoint 1.1.1.1
address 215.0.0.2
netmask 32
dstaddr 215.0.0.1
ttl 255