BGP & OSPF Multi-Area Routing Lab: ISP Peering & Route Redistribution

Search for a command to run...

No comments yet. Be the first to comment.
Welcome back to Bits Of Progress, a space where I reflect on hands-on technical experiences, explore systems thinking, and break down the design patterns that keep our infrastructure moving forward. L

When an organization’s growth outpaces its systems implementation capabilities for years, big problems are on the horizon. I have been living in that gap. My name is Patrick Rivers, and I currently se

This lab was designed to simulate what a real-world edge network might look like when connecting internal private IP address space to the internet using BGP and NAT. It covers multi-AS BGP peering, static NAT, PAT, and includes real packet analysis u...

Everywhere you look online, you’ll find gurus, books, and courses promising to take you from the land of misery—where you hate your job—to the promised land, where you wake up every morning excited to do work you love. That’s a noble goal. I believe ...

Bits of Progress
5 posts
This lab simulates an enterprise network peering with two ISP routers via BGP, while utilizing a multi-layered, multi-area OSPF topology for internal routing. The goal of this setup is to explore BGP peering, OSPF multi-area configuration, route redistribution, VLAN segmentation, DHCP services, and external DNS integration.
This is part of my Bits of Progress journey, where I document my hands-on networking experience. Rather than a step-by-step tutorial, this blog post presents my thought process, configurations, and the learning experience gained from building this lab.
ISP Routers (BGP AS 65010 & 65020) – Simulate two separate ISPs peering with the enterprise network.
Core Routers (BGP AS 65001, OSPF Backbone Area 0) – Serve as the backbone of the enterprise, interconnecting various OSPF areas and managing route redistribution.
Access Routers (OSPF Area 1, DHCP Services) – Provide connectivity to end devices in separate VLANs.
Access Switches (Layer 2 VLAN Segmentation) – Facilitate communication between clients, servers, and IoT devices.
ISP Exchange Router (BGP AS 65050) – Acts as an intermediary router simulating upstream internet access.
The core routers establish BGP sessions with the ISP routers while also redistributing internal OSPF routes into BGP.
router bgp 65001
bgp log-neighbor-changes
aggregate-address 192.168.0.0 255.255.0.0 summary-only
aggregate-address 10.0.0.0 255.0.0.0 summary-only
redistribute ospf 1 match internal external 1 external 2
neighbor 172.16.2.1 remote-as 65010
Redistributes OSPF routes into BGP, allowing the enterprise network to advertise summarized internal networks to the ISPs.
Uses aggregate addressing to reduce the number of advertised routes.
router bgp 65010
bgp log-neighbor-changes
network 172.16.1.0 mask 255.255.255.252
network 172.16.2.0 mask 255.255.255.252
neighbor 172.16.1.2 remote-as 65020
neighbor 172.16.2.2 remote-as 65001
neighbor 172.16.2.2 route-map ADVERTISE-DEFAULT-ROUTE out
neighbor 172.16.4.1 remote-as 65050
router bgp 65020
bgp log-neighbor-changes
network 172.16.3.0 mask 255.255.255.252
network 172.16.5.0 mask 255.255.255.252
neighbor 172.16.1.1 remote-as 65010
neighbor 172.16.3.2 remote-as 65001
neighbor 172.16.3.2 route-map ADVERTISE-DEFAULT-ONLY out
neighbor 172.16.5.1 remote-as 65050
Both ISPs advertise a default route to the enterprise network.
ISPRouter2 (AS 65020) also peers with ISPRouter1 (AS 65010), forming a redundant external connection.
The enterprise network follows a structured OSPF design with multiple areas for efficient routing and scalability.
router ospf 1
router-id 1.1.1.1
network 10.1.0.0 0.0.0.3 area 0
network 10.1.1.0 0.0.0.3 area 0
network 10.1.2.0 0.0.0.3 area 0
default-information originate metric-type 1
OSPF Backbone (Area 0) connects all access routers.
Advertises the default route to propagate internet access throughout the network.
router ospf 1
router-id 2.2.1.1
network 192.168.10.0 0.0.0.255 area 1
network 192.168.20.0 0.0.0.255 area 1
network 192.168.30.0 0.0.0.255 area 1
Belongs to Area 1 and connects local VLANs to the enterprise network.
Establishes an OSPF adjacency with CoreRouter1.
Each Access Router provides DHCP services for clients, servers, and IoT devices.
ip dhcp pool CLIENTS1
network 192.168.10.0 255.255.255.0
default-router 192.168.10.1
dns-server 8.8.8.8
Assigns IPs dynamically to devices in VLAN 10 (Clients).
Uses Google’s DNS (8.8.8.8) for external name resolution.
Checking BGP peers from CoreRouter1:
CoreRouter1# show ip bgp summary
Checking OSPF neighbors on AccessRouter1:
AccessRouter1# show ip ospf neighbor
Checking advertised routes on ISP Routers:
ISPRouter1# show ip bgp
This lab was a great learning experience in BGP peering, OSPF multi-area routing, and network services like VLANs and DHCP. By configuring an ISP environment and enterprise network, I gained hands-on insight into real-world networking scenarios.
This is just one step in my Bits of Progress journey. Stay tuned for more labs and technical deep dives.
📺 Watch the Lab in Action: https://youtu.be/cb68HlbxOk8
📂 Download Config Files: https://github.com/PRivers251/RoutingLab_BGP_OSPF_3-6-25