JNCIP-ENT lab 3 of 19
Routing policy in depth
Control what leaves an OSPF network with match types, prefix lists, policy chains and subroutines, and prove each one with test policy before you apply it.
Run this lab
It needs Standard: its 3 nodes are set to 9 vCPU and 10,752 MB in total.
In your workspace: Shared, then JNCIP-ENT JN0-650 guided labs, then 03 - Routing policy in depth
- Level
- Advanced
- Time
- About 80 minutes
- Nodes need
- 9 vCPU, 10,752 MB
- Smallest plan
- Standard
The scenario
R1 is Northmere's edge router. It holds static routes for partners, customers and a test network, and none of them are in OSPF yet. You'll write the policies that decide which ones go out, and how. Everything here is a tool you'll use again in the BGP labs: match types, prefix lists, chains, subroutines, expressions and test policy. The same policy language works for every protocol, and only the default action changes.
| Device | Interface | Address |
|---|---|---|
| R1 | ge-0/0/0, lo0 | 10.0.12.1/30, 10.255.0.1/32 |
| R2 | ge-0/0/0, ge-0/0/1, lo0 | 10.0.12.2/30, 10.0.23.1/30, 10.255.0.2/32 |
| R3 | Gi0/0, Lo0 | 10.0.23.2/30, 10.255.0.3/32 |
OSPF area 0 already runs across all three. R1's static discard routes:
| Group | Routes |
|---|---|
| Partners | 172.20.1.0/24, 172.20.2.0/24, 172.20.16.0/20, 172.20.17.0/25, 172.20.32.0/20 |
| Customers | 192.168.50.0/24, 192.168.51.0/24 |
| Test network | 10.99.1.0/24, 10.99.2.0/24 |
The rules: partners get out as /20 or shorter only. Customers get out with metric 200. The test network never gets out.
What you’ll practise
- Choose between route-filter match types
- Use prefix lists, prefix-list-filter and apply-path
- Work out how a policy chain ends, and fix one that breaks
- Use a policy as a subroutine
- Set OSPF external types and tags
- Explain what an OSPF import policy can and can't do
The tasks
- Choose the right match type
- Use a prefix list
- Build a policy chain
- Call a policy as a subroutine
- Set the external type and a tag
- Filter with an OSPF import policy
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
ge-0/0/0to R2ge-0/0/0 - R2
ge-0/0/1to R3Gi0/0
| Node | Device | Image in Add Node | Set to |
|---|---|---|---|
| R1 | Juniper vJunos-router | vjunosrouter-24.2R1-S2.5 | 4 vCPU, 5,120 MB |
| R2 | Juniper vJunos-router | vjunosrouter-24.2R1-S2.5 | 4 vCPU, 5,120 MB |
| R3 | 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
JNCIP-ENT JN0-650 guided labs.Open
03 - Routing policy in depthand 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 JNCIP-ENT labs
Related labs in other courses
CloudLabBox is independent of Cisco and Juniper Networks. The lab follows exam topics and isn’t vendor training material; vendor names identify the exams and the images in the workspace.