Home » Cisco » 300-101 » Lab Simulation 4 – Policy Based Routing
Lab Simulation 4 – Policy Based Routing
You are a network engineer with ROUTE.com, a small IT company. ROUTE.com has two connections to the Internet; one via a frame relay link and one via an EoMPLS link. IT policy requires that all outbound HTTP traffic use the frame relay link when it is available. All other traffic may use either link. No static or default routing is allowed.
Choose and configure the appropriate path selection feature to accomplish this task.
You may use the Test Workstation to generate HTTP traffic to validate your solution.
Answer:
(1) First create the access list that catches the HTTP traffic:
R1(config)# access-list 101 permit tcp any any eq www
R1(config)# access-list 101 permit tcp any any eq www
(2) Configure the route map that sets the next hop address to be ISP1 and permits the rest of the traffic:
R1(config)# route-map pbr permit 10
R1(config-route-map)# match ip address 101
R1(config-route-map)# set ip next-hop 10.1.100.2
R1(config-route-map)# exit
R1(config)# route-map pbr permit 20
(3) Apply the route-map on the interface to the server in the EIGRP Network:
R1(config-route-map)# exit
R1(config)# int fa0/1
R1(config-if)# ip policy route-map pbr
R1(config-if)# exit
R1(config)# exit
Hi,
How do you validate that the route-map is filtering and directing the traffic as it should do?
Put the command “show route-map”, the packets should be increasing when you send the traffic and display this command.
R1(config)# route-map pbr permit 10
R1(config-route-map)# match ip address 100
R1(config-route-map)# set ip next-hop 10.1.100.2
In addition, it is not necessary to set the last command to permit other traffic:
R1(config)# route-map pbr permit 20
Therefore, this question should look like this:
R1(config)# access-list 101 permit tcp any any eq www
R1(config)# route-map pbr permit 10
R1(config-route-map)# match ip address 100 (Traffic will pass through that subnet)
R1(config-route-map)# set ip next-hop 10.1.100.2
R1(config-route-map)# exit
R1(config)# int fa0/1
R1(config-if)# ip policy route-map pbr
R1(config-if)# exit