pbr on an mpls enabled interface

From: Ovidiu Neghina <o.neghina_at_gmail.com>
Date: Wed, 8 Sep 2010 12:37:08 +0300

Hi,

Should PBR on an mpls enabled interface work ?
I am having a lab where I have a pbr policy on an interface
that has mpls enabled through BGP IPv4 send label
R8#sh run int ser 4/0.801
interface Serial4/0.801 point-to-point
 ip address 125.8.1.8 255.255.255.0
 ip policy route-map PBR
 mpls bgp forwarding
 frame-relay interface-dlci 801 IETF

R8#sh route-map PBR
route-map PBR, permit, sequence 10
  Match clauses:
    ip address (access-lists): 100
  Set clauses:
    interface Tunnel87
  Policy routing matches: 0 packets, 0 bytes

R8#sh access-list 100
Extended IP access list 100
    10 permit ip host 125.125.125.1 host 150.140.130.120

R8#sh mpls forwarding-table 150.140.130.120
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or VC or Tunnel Id Switched interface
39 Pop Label 0.0.0.0/0 2676 Fa0/0.807 192.168.87.7
R8#
As we can see the traffic to 150.140.130.120 is coming in the interface
labeled. I belive that because of this PBR is not active.

If I deactivate the send label option the trafic comes in unlabbeled
and it does go
through the tunnel so PBR works.

Is this expected ?

br
Ovidiu

Blogs and organic groups at http://www.ccie.net
Received on Wed Sep 08 2010 - 12:37:08 ART

This archive was generated by hypermail 2.2.0 : Fri Oct 01 2010 - 05:58:05 ART