Wide World Importers connects its on-premises network to VNet1 through an ExpressRoute circuit with private peering. The only gateway in VNet1 is a virtual network gateway of type ExpressRoute in GatewaySubnet, and it exchanges routes with the on-premises edge routers over BGP. A new policy requires all internet-bound traffic from Subnet1 to be forced through the on-premises network so that it passes the corporate security stack before reaching the internet. Traffic from Subnet1 to on-premises destinations must keep its current path. What should you do?
Show answer and explanation
Correct answer: A · Configure the on-premises edge routers to advertise a 0.0.0.0/0 default route to Azure over BGP
A user-defined route with next hop type Virtual network gateway is supported only when the virtual network’s gateway is a VPN gateway, not an ExpressRoute gateway. With ExpressRoute, forced tunneling is done by advertising a default route into private peering. Azure learns 0.0.0.0/0 over BGP, and for the same prefix a BGP route beats the system Internet route, so internet-bound traffic goes on-premises. The more specific on-premises prefixes still win by longest prefix match, so that traffic is unchanged. The learned default route reaches every subnet with gateway route propagation enabled; any subnet that must keep direct internet access needs its own 0.0.0.0/0 route with next hop Internet.
Why the other choices do not fit
- B. This is the standard forced-tunneling step for a site-to-site VPN, which is why it looks right. Microsoft documents that you can’t create user-defined routes that force traffic to an ExpressRoute gateway, so it does not work in VNet1.
- C. The ExpressRoute gateway is not a network virtual appliance, and a Virtual appliance next hop that has to route through an ExpressRoute gateway makes the route invalid. It cannot be used to hand traffic to the gateway.
- D. Next hop None drops internet-bound traffic instead of tunneling it. Disabling propagation also removes the on-premises routes learned over BGP from Subnet1, which breaks the traffic that must keep its current path.
