Local Policy Base Routing

    PBR: Local Policy Based Routing (Cisco)
    Technology: Routing

    Area: PBR

    Vendor: Cisco

    Title: Local Policy Base Routing

    Software: 12.X , 15.X, IP Services

    Platform: Catalyst 3560, 3750, 3850, 4500, 6500, ISR/ASR Routers

     

    Local policy based routing in contrary to normal policy feature affects purely locally generated traffic by the router instead of traffic traversing the router. It offers the same flexibility as normal PBR.

     To configure a basic local policy which route locally originated traffic to a single host “192.168.178.1” via next hop of 20.1.1.2 in agreement with pre-define policy:

    R1#configure terminal
    R1(config)# ip access-list extended FROM_ROUTER
    R1(config-ext-nacl)# permit ip host 192.168.1.1 host 192.168.178.1

    R1(config)# route-map PBR-Aviums permit 10
    R1(config-route-map)# match ip address FROM_ROUTER
    R1(config-route-map)# set ip next-hop 20.1.1.2

    R1(config)# ip local policy route-map PBR-Aviums

    Verification commands:

    To check if the policy is attached to device:

    R1# show ip policy
    Interface Route map
    local PBR-Aviums

    Once the policy is applied we can check the route-map status to observe how many packets match configured patterns.

    R1# show route-map PBR-Aviums
    -map PBR-Aviums, permit, sequence 10
    Match clauses:
    ip address (access-lists): FROM_ROUTER
    Set clauses:
    ip next-hop 20.1.1.2
    Policy routing matches: 204 packets, 23923 bytes

     

     

    We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.