07-05-2011 05:37 AM
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?
07-05-2011 02:34 PM
Can you try "set ip vrf" instead or set ip next-hop and test again?
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
07-06-2011 01:12 PM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide