I'm not familar with dynamic routing protocol like rip, ospf and bgp.
I've multiples remotes sites, connected with WG to a central site ; i think, it's a common architecture.
At this, time, each remote has its own subnets (ipv4/ipv6).
And i put manually routes (ipv4/ipv6 lua) on boths site each time. It's easy, it work... but hard to maintain.
Looking for a way to automate routes transfert when WG is connected (and remove when it's disconnected).
What is the best protocol ? i think it's ibgp, not sure...
And i'm searching for a quick example. Already ask IA, but they return me commands for routeros6, so deprecated.
I imagine a config on both peer and a way to select somes routes to send... but i'm stupid, i don't understand how.
With protocols like OpenVPN, WireGuard, etc it usually isn’t required to have dynamic routes when you plan correctly beforehand. You would create the correct policies where you have one big contiguous subnet at the central site and give each leaf site a small part of that. Each leaf site would know to send all traffic for other sites to the central site (because that is the only thing it knows about) and when the traffic actually is for another leaf site the central site would know to forward it to the correct leaf site due to the policy of that connected leaf site.
Having routes and an autorouting protocol only becomes necessary when your configuration is a (partial) mesh so there may be alternative paths to the same destination, and it becomes necessary to determine the best path.