Type of Traffic Policies
Type of Traffic Policies Type of traffic policy routing allows you to make routing decisions based on the type of traffic that is crossing the policy router. Refer to Figure 10.4. In this scenario, we need to create a policy on R1 so that all traffic entering R1 from R2 and R3 will be routed based on the type of traffic. In this case, we need to send all SMTP traffic over the connection to ISP 2 and all other traffic over the connection to ISP 1. This time, we will set the next hop instead of the exit interface: R1#conf t Enter configuration commands, one per line. End with CNTL/Z. R1(config)#access-list 100 permit tcp any any eq smtp R1(config)#route-map TRAFFICPOLICY1 permit 10 R1(config-route-map)#match ip address 100 R1(config-route-map)#set ip next-hop 172.16.80.1 R1(config-route-map)#route-map TRAFFICPOLICY1 permit 20 R1(config-route-map)#set ip next-hop 172.16.90.1 R1(config-route-map)#exit R1(config)#interface s1/0 R1(config-if)#ip policy route-map TRAFFICPOLICY1 R1(config-if)#exit R1(config)#interface S1/1 Policy-Based Routing 331 R1(config-if)#ip policy route-map TRAFFICPOLICY1 R1(config-if)#^Z R1#
172 times read
|
|
|
Did you enjoy this article?
(total 0 votes)
|