CISCO Policy Routing (PBR) Configuration Example

  
                  

Policy routing can choose to modify the next hop address and tag packets to provide a network service that is not available. The PBR is generally used to modify the next hop address based on the source address. Recommended implementation: PBR marks the IP precedence of outgoing IP packets, which facilitates the implementation of QoS policies. In general, PBR is configured through route mapping.

See a detailed configuration example, you will understand more:

defines two access lists: 10 and 20, configured to make the next packet from the network 192.168.1.0/24 The hop address is changed to 192.168.100.1; the next hop address of the packet from 192.168.2.0/24 is changed to 192.168.100.2. The packets originating from other sources are normally routed.

The command is as follows:

access-list 10 permit 192.168.1.0
access-list 20 permit 192.168.2.0
!
int e0
ip policy route- Map nexthop
!
route-map nexthop permit 10
match ip address 10
set ip next-hop 192.168.100.1
!
route-map nexthop permit 20
match Ip address 20
set ip next-hop 192.168.100.2
!
route-map nexthop permit 30

Copyright © Windows knowledge All Rights Reserved