AdvancedPublished 2026-07-03
AS-Path Filtering: Accept Only Neighbor’s Own Routes
Bundle lab
Advanced CCNP BGP policy lab focusing on inbound AS-path filtering at the edge. You will build a simple eBGP chain (AS 65003 — AS 65002 — AS 65001), originate prefixes from the two upstream routers, confirm that the edge learns multiple routes, then enforce a policy on the edge (R1) to accept only routes originated by its directly connected eBGP neighbor (AS 65002) while rejecting routes that transited AS 65003. Verification relies entirely on R1’s BGP table and AS-path regular-expression queries.
Learning objectives
- Configure eBGP adjacencies over /30 point-to-point transits with correct remote-as values
- Originate exact-match prefixes into BGP and understand network mask requirements
- Implement inbound AS-path filtering using Cisco regex and filter-lists
- Verify routes and AS-paths using show ip bgp and show ip bgp regexp
- Reason about policy effects on accepted and rejected routes
Troubleshooting focus
- Diagnose eBGP session formation issues (wrong remote-as or address reachability)
- Identify missing prefix origination due to absent exact RIB match or mask keyword
- Confirm filter direction and sequence so that intended routes are not unintentionally dropped
- Use regex testing with show ip bgp regexp to confirm matching behavior before committing policy
Topology
Subscribe to preview this lab's topology.
See plansGrade your work
How this lab is graded
- Build it your way. Where a lab lets you choose a value — a VLAN name, an interface description — grading checks that you configured it, not which name you picked. Names that another line has to reference, like an ACL applied with
access-class, are stated in the guide and do have to match. - Addresses, modes and protocol keywords are exact. An IP address, a subnet mask,
switchport mode trunk, an encapsulation — these carry the meaning of the lab, so they are graded as written in the guide. - Grading reads your saved configuration. Export the lab from CML after you have configured it, and make sure anything you set is in the running-config — a change that only exists in a terminal session never reaches the grader.
- You can submit as many times as you like. Your best score stands, and each attempt tells you which checks passed so you can work the gaps.
- Scored something you believe is correct? Use Report an issue on this page — that is exactly how the grading fixes in the changelog got found.
Create a free account to submit your lab for grading.
Create a free accountFound a problem with this lab?
Please sign in to report a problem — tying it to your attempts lets us reproduce and fix it faster.