Implementing Cisco Enterprise Advanced Routing and Services (ENARSI) — Question 395
An engineer configures PBR on R5 and wants to create a policy that matches traffic destined toward 10.10.10.0/24 and forwards it toward 10.1.1.1. This traffic must also have its IP precedence set to 5. All other traffic should be forwarded toward 10.1.1.2 and have its IP precedence set to 0. Which configuration meets the requirements?
Answer options
- A. access-list 100 permit ip any 10.10.10.0 0.0.0.255 route-map CCNP permit 10 match ip address 100 set ip next-hop 10.1.1.1 set ip precedence 5 ! route-map CCNP permit 20 set ip next-hop 10.1.1.2 set ip precedence 0
- B. access-list 100 permit ip any 10.10.10.0 0.0.0.255 route-map CCNP permit 10 match ip address 100 set ip next-hop 10.1.1.1 set ip precedence 0 ! route-map CCNP permit 20 set ip next-hop 10.1.1.2 set ip precedence 5 ! route-map CCNP permit 30
- C. access-list 1 permit 10.10.10.0 0.0.0.255 route-map CCNP permit 10 match ip address 1 set ip next-hop 10.1.1.1 set ip precedence 5 ! route-map CCNP permit 20 set ip next-hop 10.1.1.2 set ip precedence 0
- D. access-list 1 permit 10.10.10.0 0.0.0.255 access-list 2 permit any route-map CCNP permit 10 match ip address 1 set ip next-hop 10.1.1.1 set ip precedence 5 ! route-map CCNP permit 20 match ip address 2 set ip next-hop 10.1.1.2 set ip precedence 0 ! route-map CCNP permit 30
Correct answer: A
Explanation
Option A is correct as it accurately matches traffic for 10.10.10.0/24 and sets the next-hop to 10.1.1.1 with IP precedence 5, while all other traffic is directed to 10.1.1.2 with precedence 0. Option B incorrectly sets the IP precedence for the matched traffic to 0 instead of 5. Option C uses an access-list with a different number and does not affect the correctness of the next-hop or precedence settings. Option D adds an unnecessary access-list and does not change the core functionality, but it's more complex than needed.