IntermediatePublished 2026-07-03
BGP Lab 7: Filtering Advertised Prefixes (Prefix-List)
Bundle lab
Deploy eBGP between two routers and precisely control which locally-originated networks are advertised to a neighbor using an outbound prefix-list. R1 originates four /24 loopback routes but advertises only two to R2. Verify using IOS show commands and basic host reachability checks.
Learning objectives
- Configure an eBGP peering over a point-to-point /30 with correct remote-as values
- Originate exact-match routes into BGP using the network ... mask command
- Build and apply an outbound ip prefix-list to control advertised prefixes
- Verify advertised-routes and received routes with show ip bgp neighbors and show ip bgp
- Differentiate local BGP table visibility from eBGP neighbor visibility
Troubleshooting focus
- If the BGP session is not established: confirm both sides use the correct neighbor IP (the directly connected transit address) and matching remote-as values. Ensure the transit interface is up/up and pingable.
- If R2 receives all four routes: verify the prefix-list is applied in the correct direction (outbound on R1) and that there are no extra permits matching the suppressed prefixes.
- If R2 receives none: confirm the prefix-list exists before application and that it has the intended sequence permits. Also ensure R1 has exact routes to all four loopbacks in its RIB.
- If a specific loopback is missing from R1’s local BGP table: check the exact-match network statement and that the loopback interface is up with the correct mask.
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.