Course contentsShow
← Cloud and Infrastructure
Lesson 2204 of 2,98947. Advanced NetworkingFree lesson

ExpressRoute Routing and BGP

Configuring BGP routing, route filters, and peering relationships for ExpressRoute connections.

ExpressRoute Routing and BGP

What you'll learn: How to configure BGP routing, route filters, and peering relationships to control traffic flow over your Azure ExpressRoute connection.

Understanding ExpressRoute Routing

ExpressRoute uses the Border Gateway Protocol (BGP) to exchange routes between your on-premises network and Azure. Think of BGP as a sophisticated GPS system that helps data packets find the best path between two networks—it announces which destinations each side can reach and negotiates the optimal routes.

Unlike static routes you manually configure, BGP dynamically advertises prefixes (network ranges) between your edge routers and Microsoft's routers. This creates a resilient, self-healing network that automatically adapts when paths fail.

BGP Peering Relationships

When you establish an ExpressRoute circuit, you configure BGP peering sessions for different traffic types:

  • Private peering: Routes to your Azure VNets
  • Microsoft peering: Routes to Azure public services (like Storage, SQL)

Each peering requires you to specify BGP configuration: autonomous system numbers (ASNs), IP addresses for both sides, and shared keys for authentication. Microsoft's ASN is always 12076; you provide your own public or private ASN.

Route Filters

Route filters act like selective gatekeepers for Microsoft peering. By default, Microsoft could advertise thousands of public service prefixes. Route filters let you specify exactly which Azure services you want to receive routes for—reducing routing table bloat and improving security.

For example, you might filter to only receive routes for Storage in specific regions, blocking everything else.

Configuration Essentials

You'll configure MD5 authentication hashes, VLAN IDs for traffic separation, and prefix advertisements from your side. Monitor BGP session status continuously—a down session means no traffic flow.

Key Takeaway: ExpressRoute routing relies on BGP peering to dynamically exchange routes between your network and Azure, with route filters providing granular control over which services are reachable through Microsoft peering.