Switch to both hosts routing

This commit is contained in:
Alex D. 2024-11-10 18:09:16 +00:00
parent b529374c69
commit 4e0282f59d
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
2 changed files with 12 additions and 12 deletions

View File

@ -299,7 +299,8 @@ func main() {
// Unreachable routes
ifs["lo"].Routes = append(ifs["lo"].Routes, s6netdev.Route{
Type: "unreachable",
Net: netip.MustParsePrefix("2a04:5b81:2060::/44"),
Default: true,
IPver: 6,
Vrf: ifs["vrf-v6"],
Metric: 4278198272,
}, s6netdev.Route{

View File

@ -230,6 +230,13 @@ func main() {
ifs[fmt.Sprintf("phys.%d", v)].Parent = ifs["phys"]
}
// Self-referencing
ifs["vultrbgp"].Routes = append(ifs["vultrbgp"].Routes, s6netdev.Route{
Default: true,
IPver: 6,
Vrf: ifs["vrf-v6"],
})
// Unreachable routes
ifs["lo"].Routes = append(ifs["lo"].Routes, s6netdev.Route{
Type: "unreachable",
@ -245,14 +252,6 @@ func main() {
Metric: 4278198272,
})
// Default router for vrf (defrtr from ra isn't installed if autoconf not enabled)
ifs["b00b"].Routes = append(ifs["b00b"].Routes, s6netdev.Route{
Default: true,
Via: netip.MustParseAddr("fe80::ff:fe00:b00b"), // Link local of lakewood.united-states
Vrf: ifs["vrf-v6"],
Metric: 4096,
})
for _, v := range ifs {
t.Services(*v)
}