etheroute-lon01: IPv4 renumber

This commit is contained in:
Luke Granger-Brown 2023-03-16 10:32:09 +00:00
parent 20e2cd4e2c
commit 24cd61c461
3 changed files with 12 additions and 12 deletions

View file

@ -14,5 +14,5 @@ Dedicated host running NixOS on Etheroute. PowerEdge R210.
Internet: Internet:
* 83.97.19.68/27 (gw 83.97.19.65) * 103.141.25.50/30 (gw 103.141.25.49)
* 2a07:242:800:64::68/64 (gw 2a07:242:800:64::1) * 2a07:242:800:64::68/64 (gw 2a07:242:800:64::1)

View file

@ -69,7 +69,7 @@ in {
}; };
}; };
boot.kernelParams = [ boot.kernelParams = [
"ip=83.97.19.68::83.97.19.65:255.255.255.224:etheroute-lon01:eno1:none" "ip=103.141.25.50::103.141.25.49:255.255.255.252:etheroute-lon01:eno1:none"
]; ];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.kernel.sysctl = { boot.kernel.sysctl = {
@ -121,7 +121,7 @@ in {
"8.8.4.4" "8.8.4.4"
]; ];
defaultGateway = { defaultGateway = {
address = "83.97.19.65"; address = "103.141.25.49";
interface = "eno1"; interface = "eno1";
}; };
defaultGateway6 = { defaultGateway6 = {
@ -129,7 +129,7 @@ in {
interface = "eno1"; interface = "eno1";
}; };
interfaces.eno1 = { interfaces.eno1 = {
ipv4.addresses = [{ address = "83.97.19.68"; prefixLength = 27; }]; ipv4.addresses = [{ address = "103.141.25.50"; prefixLength = 30; }];
ipv6.addresses = [{ address = "2a07:242:800:64::68"; prefixLength = 64; }]; ipv6.addresses = [{ address = "2a07:242:800:64::68"; prefixLength = 64; }];
}; };
interfaces.quadv1-4 = { interfaces.quadv1-4 = {
@ -169,7 +169,7 @@ in {
networking.greTunnels.quadv1-4 = { networking.greTunnels.quadv1-4 = {
remote = "82.163.116.66"; remote = "82.163.116.66";
local = "83.97.19.68"; local = "103.141.25.50";
dev = "eno1"; dev = "eno1";
type = "tun"; type = "tun";
}; };
@ -196,27 +196,27 @@ in {
enable = true; enable = true;
config = { config = {
local = { local = {
routerID = "83.97.19.68"; routerID = "103.141.25.50";
}; };
export.v4 = [ "92.118.31.0/24" ]; export.v4 = [ "92.118.31.0/24" ];
peering = { peering = {
etheroute = { etheroute = {
local = local // { local = local // {
v4 = "83.97.19.68"; v4 = "103.141.25.50";
v6 = "2a07:242:800:64::68"; v6 = "2a07:242:800:64::68";
}; };
remote = { remote = {
asn = 3170; asn = 3170;
export_community = 4000; export_community = 4000;
routers = [{ routers = [{
v4 = "83.97.19.65"; v4 = "103.141.25.49";
v6 = "2a07:242:800:64::1"; v6 = "2a07:242:800:64::1";
}]; }];
}; };
}; };
bgptoolscollector = { bgptoolscollector = {
local = local // { local = local // {
v4 = "83.97.19.68"; v4 = "103.141.25.50";
v6 = "2a07:242:800:64::68"; v6 = "2a07:242:800:64::68";
}; };
remote = { remote = {

View file

@ -1,9 +1,9 @@
; SPDX-FileCopyrightText: 2021 Luke Granger-Brown <depot@lukegb.com> ; SPDX-FileCopyrightText: 2023 Luke Granger-Brown <depot@lukegb.com>
; ;
; SPDX-License-Identifier: Apache-2.0 ; SPDX-License-Identifier: Apache-2.0
; MNAME RNAME SERIAL REFRESH RETRY EXPIRE TTL ; MNAME RNAME SERIAL REFRESH RETRY EXPIRE TTL
@ 600 IN SOA frantech-lux01.as205479.net. hostmaster.lukegb.com. 53 600 450 3600 300 @ 600 IN SOA frantech-lux01.as205479.net. hostmaster.lukegb.com. 54 600 450 3600 300
; NB: this are also glue records in Google Domains. ; NB: this are also glue records in Google Domains.
$INCLUDE tmpl.ns $INCLUDE tmpl.ns
@ -55,7 +55,7 @@ clouvider-lon01 3600 IN AAAA 2a0a:54c0:0:17::2
clouvider-lon01.int 3600 IN A 100.79.173.25 clouvider-lon01.int 3600 IN A 100.79.173.25
clouvider-lon01.int 3600 IN AAAA fd7a:115c:a1e0:ab12:4843:cd96:624f:ad19 clouvider-lon01.int 3600 IN AAAA fd7a:115c:a1e0:ab12:4843:cd96:624f:ad19
etheroute-lon01 3600 IN A 83.97.19.68 etheroute-lon01 3600 IN A 103.141.25.50
etheroute-lon01 3600 IN AAAA 2a07:242:800:64::68 etheroute-lon01 3600 IN AAAA 2a07:242:800:64::68
etheroute-lon01.int 3600 IN A 100.99.227.112 etheroute-lon01.int 3600 IN A 100.99.227.112
etheroute-lon01.int 3600 IN AAAA fd7a:115c:a1e0:ab12:4843:cd96:6263:e370 etheroute-lon01.int 3600 IN AAAA fd7a:115c:a1e0:ab12:4843:cd96:6263:e370