cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1201
Views
0
Helpful
2
Replies

MPLS, vrf-select and PBR

sbrobak
Level 1
Level 1

Trying to configure some cs2821 with MPLS PE and vrf select based on PBR.

interface GigabitEthernet0/1.2

description ** Customer **

encapsulation dot1Q 2

ip vrf forwarding cust

ip address 10.10.2.1 255.255.255.252

ip policy route-map cust-pbr

!

route-map cust-pbr permit 10

match ip address custA

set vrf custA

!

route-map cust-pbr permit 20

match ip address custB

set vrf custB

!

It works, execpt that when I boot the router it removes the "set vrf " command.

I can't find any documentation except:

http://www.cisco.com/en/US/docs/ios/mpls/configuration/guide/mp_vpn_vrf_select_rt.html

Any ideas?

And, is PBR under vrf interface supported?

2 Replies 2

Reza Sharifi
Hall of Fame
Hall of Fame

Can you try "set ip vrf" instead or set ip next-hop and test again?

SUMMARY STEPS

1. enable

2. configure terminal

3. route-map map-tag [permit | deny] [sequence-number]

4. set ip vrf vrf-name next-hop {ip-address [... ip-address] | recursive ip-address}

or

set ip next-hop recursive vrf vrf-name ip-address [ip-address]

or

set ip global next-hop ip-address [ip-address]

5. match ip address {access-list-number [access-list-number... | access-list-name...] | access-list-name [access-list-number...| access-list-name] | prefix-list prefix-list-name [prefix-list-name...]}

or

match length minimum-length maximum-length

6. end

http://www.cisco.com/en/US/docs/ios/mpls/configuration/guide/mp_mltvrf_slct_pbr.html#wp1053974

Thanks for the feedback, but these (as i understand) relates if your running vrf-lite (vrf forwarding on ingress and egress). Actually, found the following CSCdu70318. Looks like what I'm trying to do is not supported at this time.