Using dynamic BGP routing in your Windows routing table
In the previous recipe, we added a single route to the routing table. For a lot of networks, this would be sufficient. However, in more complex networks, there might be dozens, hundreds, or even thousands of routes that would be beneficial to learn – especially if your server is acting as a VPN server or a remote gateway.
Thankfully, Windows does have a way to learn these routes from other routers on the network. The Border Gateway Routing (BGP) protocol has been in use since 1989 and is one of the key technologies that allows the internet to work. Because of this, with the cooperation of your networking team, you may be able to have your Windows server learn everything it needs to know about available routes from your corporate routers.
Getting ready
We have a Server 2019 server that will learn the routes. We will also need a network router that has BGP configured and has your server whitelisted to read its routes...