CCNP ENARSI lab 18 of 35
BGP policy: prefix lists, AS-path filters and communities
Protect an edge router from bad Internet routes with prefix lists and AS-path filters, act on a partner's communities, and use the no-export community so that more-specific routes help your provider without leaking into the global table.
Run this lab
It needs Lite: its 4 nodes are set to 4 vCPU and 2,048 MB in total. That fits the free demo too.
In your workspace: Shared, then CCNP ENARSI 300-410 guided labs, then 18 - BGP policy - prefix lists AS-path filters and communities
- Level
- Advanced
- Time
- About 75 minutes
- Nodes need
- 4 vCPU, 2,048 MB
- Smallest plan
- Lite
The scenario
Merlin Bank (AS 64500, R1) has one Internet provider (R2, AS 64501) and a payments partner (R3, AS 64520) connected directly. Today R1 accepts everything and advertises everything, and an audit found three problems: R1 accepts routes that should never be trusted, the partner's internal network is visible on the Internet through Merlin, and Merlin's two /25 traffic-engineering routes are visible far beyond the provider.
The new BGP policy:
- From the ISP: accept the default route and prefixes from /8 to /24 only, and nothing whose AS path contains AS 64666 (a sanctioned network).
- From the partner: accept only the partner's block 198.18.0.0/15, at /24 or shorter.
- To the ISP: advertise Merlin's 203.0.113.0/24; advertise the two /25s only to the ISP itself (tag them
no-export); pass on partner routes only if the partner tagged them 64520:100 (production). Nothing else.
| Device | Interface | Address | Peer |
|---|---|---|---|
| R1 | Gi0/0 | 172.16.12.1/30 | ISP R2 172.16.12.2 (AS 64501) |
| R1 | Gi0/1 | 172.16.13.1/30 | partner R3 172.16.13.2 (AS 64520) |
| R1 | Lo1 / Lo2 | 203.0.113.1/25 / 203.0.113.129/25 | public block halves |
| R3 | Lo1 / Lo2 | 198.18.1.1/24 / 198.18.9.1/24 | partner production / internal |
| R4 (AS 64510) | Lo1 / Lo2 / Lo3 | 192.0.2.1/24 / 198.51.100.1/24 / 198.19.10.1/28 | Internet routes |
R4 sends 198.51.100.0/24 with AS 64666 in its path, and a /28. R3 tags its routes with communities 64520:100 (production) and 64520:999 (internal, do not pass on).
What you’ll practise
- Filter inbound BGP routes by prefix and length with prefix lists
- Write AS-path access lists with regular expressions and apply them as filter lists
- Match standard communities with community lists and set well-known communities
- Build an outbound policy that advertises only what the business allows
- Explain the order in which IOS applies prefix lists, filter lists and route maps
The tasks
- See what crosses the edge today
- Filter the ISP's routes by prefix
- Filter by AS path
- Accept only the partner's block
- Build the outbound policy to the ISP with communities
- Test
The Lab Tasks pane has the scenario, these tasks, the checks to run, hints and the full solution.
Topology and devices
The network as it opens in EVE-NG, drawn from the lab’s own canvas, and the image each node runs.
Every link, as text
- R1
Gi0/0to R2Gi0/0 - R1
Gi0/1to R3Gi0/0 - R2
Gi0/1to R4Gi0/0
| Node | Device | Image in Add Node | Set to |
|---|---|---|---|
| R1 | Cisco IOSv | vios-adventerprisek9-m.spa.159-3.m9 | 1 vCPU, 512 MB |
| R2 | Cisco IOSv | vios-adventerprisek9-m.spa.159-3.m9 | 1 vCPU, 512 MB |
| R3 | Cisco IOSv | vios-adventerprisek9-m.spa.159-3.m9 | 1 vCPU, 512 MB |
| R4 | Cisco IOSv | vios-adventerprisek9-m.spa.159-3.m9 | 1 vCPU, 512 MB |
How to open this lab
Sign in to your workspace at
lab.cloudlabbox.com.In File Manager, open Shared, then the folder
CCNP ENARSI 300-410 guided labs.Open
18 - BGP policy - prefix lists AS-path filters and communitiesand start its nodes, then open Lab Tasks for the scenario and the steps.
The lab is read-only. You can start the nodes and configure the devices, but changes to the topology can’t be saved. To change it, rebuild it in your own folder.
More CCNP ENARSI labs
Related labs in other courses
CloudLabBox is independent of Cisco. The lab follows exam topics and isn’t vendor training material; vendor names identify the exams and the images in the workspace.