VNet1 uses the address space 10.1.0.0/16 and contains a GatewaySubnet of 10.1.200.0/27. A route-based VPN gateway in VNet1 has a BGP-enabled site-to-site connection to the head office, which uses 192.168.1.0/24. You plan to configure forced tunneling by using BGP so that all Internet-bound traffic from VNet1 is sent through the S2S tunnel to the head office.
Which route must the head office advertise to Azure over BGP?
To force tunnel with BGP, the on-premises site announces the 0.0.0.0/0 default route to Azure over the BGP session. Azure then sends the VNet's Internet-bound traffic through the S2S tunnel to the on-premises location. Prefixes that describe only the VNet, the gateway subnet or the head office network do not include Internet destinations.
- Correct: 0.0.0.0/0. With the BGP method, the head office announces the 0.0.0.0/0 default route to Azure, so traffic from the VNet is sent through the VPN Gateway S2S tunnel.
- Not correct: 10.1.0.0/16. This prefix is the VNet1 address space. It does not cover Internet destinations, while the BGP method relies on the 0.0.0.0/0 default route.
- Not correct: 192.168.1.0/24. This is the head office prefix and covers only traffic to the head office. The BGP method needs the 0.0.0.0/0 default route to capture Internet-bound traffic.
- Not correct: 10.1.200.0/27. This is the GatewaySubnet range inside VNet1. It does not cover Internet destinations, so it is not the default route that forced tunneling through BGP depends on.
- About forced tunneling for site-to-site - Azure VPN GatewayMicrosoft Learn