300-440 Question 30
Select 4A network engineer is tasked with configuring policy-based routing (PBR) on a Cisco router to force traffic from the sales department to use a specific next-hop IP address (10.1.1.1) regardless of the routing table. The engineer also wants to verify that the policy is correctly applied to the interface. Which of the following steps must the engineer take to achieve this?
- A
Create a route-map that matches traffic from the sales department and sets the next-hop to 10.1.1.1.
- B
Apply the route-map to the desired interface in the inbound direction.
- C
Verify the policy-based routing configuration using the 'show ip policy' command.
- D
Enable CEF (Cisco Express Forwarding) globally on the router.
- E
Configure a static route pointing to 10.1.1.1 in the routing table.
Show answer and explanation
Correct answers: A, B, C, D
Explanation
To configure and verify policy-based routing, the engineer must create a route-map to define the policy, apply the route-map to the appropriate interface, and verify the configuration using the 'show ip policy' command. CEF must also be enabled globally for PBR to function properly. A static route is unnecessary because policy-based routing takes precedence over the routing table for matched traffic.
- A. Correct.
Correct. A route-map must be created to explicitly match the traffic criteria (e.g., traffic from the sales department) and set the desired next-hop (10.1.1.1). This is the core configuration step of policy-based routing.
- B. Correct.
Correct. The route-map must be applied to an interface in the appropriate direction (inbound or outbound) to take effect. Without this step, the policy will not affect the traffic.
- C. Correct.
Correct. The 'show ip policy' command is used to verify that the route-map is applied to the interface and that the policy is functioning as intended.
- D. Correct.
Correct. CEF must be enabled for policy-based routing to work properly, as it is required for efficient packet forwarding on Cisco routers.
- E. Incorrect.
Incorrect. Configuring a static route is not required when using policy-based routing, as PBR overrides the normal routing table for matched traffic.