Type of service policies
FIGURE 1 0 . 5 Type of service policies In this scenario, we will configure ToS policies on R1 and R4. The policy on R1 needs to set the ToS for network 192.168.1.0 /24 for maximum reliability and network 192.168.10.0 /24 for minimum delay, and all other traffic needs to be set to normal. The policy on R4 needs to set the ToS for network 192.168.100.0 /24 for maximum throughput and network 192.168.200.0 /24 for minimum monetary cost, and all other traffic needs to be set to normal. R1#conf t Enter configuration commands, one per line. End with CNTL/Z. R1(config)#access-list 1 permit 192.168.1.0 0.0.0.255 R1(config)#access-list 2 permit 192.168.10.0 0.0.0.255 R1(config)#route-map TOSPOLICY1 permit 10 R1(config-route-map)#match ip address 1 R1(config-route-map)#set ip tos max-reliability R1(config-route-map)#route-map TOSPOLICY1 permit 20 R1(config-route-map)#match ip address 2 R1(config-route-map)#set ip tos min-delay R1(config-route-map)#route-map TOSPOLICY1 permit 30 R1(config-route-map)#set ip tos normal .1 E0 .1 E0 .1 E0 .1 .1 .1 .1 .1 .1 .1 E0 Network Core S0 S1/1 S1/1 S1/0 S1/0 S1/2 S1/2 .2 S0 .2 S0 .2 S0 .2 10.10.10.0 /30 20.20.20.0 /30 30.30.30.0 /30 40.40.40.0 /30 R1 R4 R6 192.168.200.0 /24 R5 192.168.100.0 /24 R3 192.168.10.0 /24 R2 192.168.1.0 /24 Verifying and Troubleshooting Policy-Based Routing Operation 333 R1(config-route-map)#exit R1(config)#interface s1/0 R1(config-if)#ip policy route-map TOSPOLICY1 R1(config-if)#exit R1(config)#interface S1/1 R1(config-if)#ip policy route-map TOSPOLICY1 R1(config-if)#^Z R1# R4#conf t Enter configuration commands, one per line. End with CNTL/Z. R4(config)#access-list 1 permit 192.168.100.0 0.0.0.255 R4(config)#access-list 2 permit 192.168.200.0 0.0.0.255 R4(config)#route-map TOSPOLICY1 permit 10 R4(config-route-map)#match ip address 1 R4(config-route-map)#set ip tos max-throughput R4(config-route-map)#route-map TOSPOLICY1 permit 20 R4(config-route-map)#match ip address 2 R4(config-route-map)#set ip tos min-monetary-cost R4(config-route-map)#route-map TOSPOLICY1 permit 30 R4(config-route-map)#set ip tos normal R4(config-route-map)#exit R4(config)#interface s1/0 R4(config-if)#ip policy route-map TOSPOLICY1 R4(config-if)#exit R4(config)#interface S1/1 R4(config-if)#ip policy route-map TOSPOLICY1 R4(config-if)#^Z R4# Through the use of policy-based routing, the administrator will have better control of the path that a packet follows. Policy-based routing also allows the administrator to overcome the shortest path limitations put in place by standard destination-based routing protocols.
186 times read
|
|
|
Did you enjoy this article?
(total 0 votes)
|