Switch to both hosts routing
This commit is contained in:
parent
b529374c69
commit
4e0282f59d
|
@ -299,7 +299,8 @@ func main() {
|
||||||
// Unreachable routes
|
// Unreachable routes
|
||||||
ifs["lo"].Routes = append(ifs["lo"].Routes, s6netdev.Route{
|
ifs["lo"].Routes = append(ifs["lo"].Routes, s6netdev.Route{
|
||||||
Type: "unreachable",
|
Type: "unreachable",
|
||||||
Net: netip.MustParsePrefix("2a04:5b81:2060::/44"),
|
Default: true,
|
||||||
|
IPver: 6,
|
||||||
Vrf: ifs["vrf-v6"],
|
Vrf: ifs["vrf-v6"],
|
||||||
Metric: 4278198272,
|
Metric: 4278198272,
|
||||||
}, s6netdev.Route{
|
}, s6netdev.Route{
|
||||||
|
|
|
@ -230,6 +230,13 @@ func main() {
|
||||||
ifs[fmt.Sprintf("phys.%d", v)].Parent = ifs["phys"]
|
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
|
// Unreachable routes
|
||||||
ifs["lo"].Routes = append(ifs["lo"].Routes, s6netdev.Route{
|
ifs["lo"].Routes = append(ifs["lo"].Routes, s6netdev.Route{
|
||||||
Type: "unreachable",
|
Type: "unreachable",
|
||||||
|
@ -245,14 +252,6 @@ func main() {
|
||||||
Metric: 4278198272,
|
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 {
|
for _, v := range ifs {
|
||||||
t.Services(*v)
|
t.Services(*v)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue