summaryrefslogtreecommitdiff
path: root/etc/systemd/network/10-cloud-init-eth0.network
blob: 1bc579b973aded41bd883f6a841dd9628a0dec10 (plain)
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
# not fully understood
# https://unix.stackexchange.com/q/509430/
# man `systemd.network`
# https://superuser.com/q/1562380
# https://docs.netgate.com/pfsense/en/latest/network/ipv6/subnets.html

[Match]
Name=eth0

[Address]
Address=38.175.201.185/22

[Address]
Address=2606:a8c0:3::75f/128

[Address]
# ...:1/64 also works, but I use ...:a/64 because crunchbits panel reverse DNS support this address
Address=2606:a8c0:3:773::a/64
# use the following will not need GatewayOnLink=yes in [Route] section, but I'm not sure if it is correct, I'm not sure if those ips could be accessed without gateway, more see https://superuser.com/q/1562380
#Address=2606:a8c0:3:773::a/48

[Route]
Gateway=38.175.200.1

[Route]
Gateway=2606:a8c0:3::1
# GatewayOnLink=yes needed for 2606:a8c0:3::1 gateway, maybe because 2606:a8c0:3::1 is not in the same subnet as 2606:a8c0:3:38d::a/64? see: https://serverfault.com/q/814419
GatewayOnLink=yes