Menu

Poland

GRANDMETRIC Sp. z o.o.
ul. Metalowa 5, 60-118 Poznań, Poland
NIP 7792433527
+48 61 271 04 43
info@grandmetric.com

Sweden

Drottninggatan 86
111 36 Stockholm
+46 762 041 514
info@grandmetric.com

UK

Grandmetric LTD
Office 584b
182-184 High Street North
London
E6 2JA
+44 20 3321 5276
info@grandmetric.com

US Region

Grandmetric LLC
Lewes DE 19958
16192 Coastal Hwy USA
EIN: 98-1615498
+1 302 691 94 10
info@grandmetric.com

  • en
  • pl
  • se
  • PBR: Local Policy Based Routing (Cisco)

    Design & Configure

    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.155.1” via next hop of 10.1.1.2 in agreement with predefine 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.155.1

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

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

    Verification commands:

    To check if the policy is attached to device: 

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

    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-grandmetric
    -map PBR-grandmetric, permit, sequence 10
    Match clauses:
    ip address (access-lists): FROM_ROUTER
    Set clauses:
    ip next-hop 10.1.1.2
    Policy routing matches: 204 packets, 23923 bytes

    Author: Marcin Bialy
     
    Grandmetric