I am trying to configure OSPF (using bird) to reach a subnet from a router that has no direct connection to the node with the subnet, something like this:
The AS has two networks, but for testing purposes, I am announcing them in different VMs,
VM1 advertises fdad:23e:f50::/48
VM2 advertises fdba:54:32::/48
Between VM1 and VM2 I have a wireguard tunnel and can reach/ping the networks
In VM3 I would like to use network fdba:54:32::2/64
, I have a wireguad tunnel between VM2 and VM3 and I can ping/reach the IP's.
The problem I have is that from VM1 I can't reach VM3 and vice versa, this is my OSPF config:
VM2 configuration:
protocol ospf v3 wg6 {
ipv6 {
export all;
};
area 0 {
interface "wg.4242421477";
interface "wg.stub";
};
}
VM3 configuration
protocol ospf v3 wg6 {
ipv6 {
export all;
};
area 0 {
interface "wg.stub";
interface "ens192";
};
}
From VM3 (the stub) This is the output of show route for
the IP In VM1
bird> show route for fdad:23e:f50::1
Table master6:
fdad:23e:f50::/48 unicast [wg6 17:35:44.984] E2 (150/20/10000) [217.160.50.77]
via fe80::1:45:136:71:70 on wg.stub
How to use VM2 as the router between VM1 and VM2?