BeginnerPublished 2026-07-03
BGP Lab 2: Exact-Match Prefix Origination
Bundle lab
Configure eBGP between two routers and originate select connected /24s using the exact-match 'network ... mask' command. Verify that only the intended prefixes are advertised and learned by the neighbor, and use host-based tests to confirm reachability to the advertised networks. This beginner CCNP lab reinforces that the BGP network statement only advertises a route if an exact match exists in the RIB, and that the 'mask' keyword is mandatory for non-classful advertisements.
Learning objectives
- Stand up an eBGP session over a directly connected /30 with correct neighbor remote-as on both ends.
- Originate specific connected routes into BGP using the exact-match 'network A.B.C.D mask M.M.M.M' syntax.
- Demonstrate why the mask keyword is required for non-classful prefixes and how omission silently prevents advertisement.
- Verify advertised and received routes using 'show ip bgp', 'show ip bgp neighbors ... advertised-routes', and 'show ip route bgp'.
- Validate reachability from a LAN host behind the eBGP neighbor to the originated prefixes and confirm that non-originated routes remain unreachable.
Troubleshooting focus
- Neighbor stuck in Idle/Active due to incorrect remote-as or wrong neighbor IP.
- Expected prefixes missing on the neighbor because the 'mask' keyword is omitted or the exact route is absent from the RIB.
- Host reachability asymmetry when return routing to the host's LAN is missing.
- Accidental advertisement of unintended subnets when using overly broad network statements.
- Misinterpreting 'show ip bgp neighbors advertised-routes' vs 'received-routes' and drawing incorrect conclusions.
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.