cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

130
Views
0
Helpful
2
Replies
Beginner

MPLS import filters on our Cisco 7606.

Hi,

I am importing two VRFs (VRF-TEST1 and VRF-TEST2) into a third VRF (VRF-TEST3). Both VRFs have default routes, so I am trying to filter out default routes from one of them, but without much success. I cannot play with export filters, only imports.

Seeing as the “import map” command is not bound to a Route-target, I can’t see how this is possible.

Ideally it would look something like this, if commands allowed ….

ip vrf VRF-TEST3
rd 333:333
route-target import 111:111 route map Filter_Default_Route
route-target import 222:222

……………………………………………………………………
Any ideas would be really appreciated.
thanks

Here's my test BASE TEST config


ip vrf VRF-TEST1
rd 111:111
route-target export 111:111


show ip route vrf VRF-TEST1

S* 0.0.0.0/0 [1/0] via 192.168.10.1
B 10.10.10.0/24 [200/0] via 10.255.255.4,
C 192.168.165.0/29 is directly connected, Vlan1165

………………………………………………………………


ip vrf VRF-TEST2
rd 222:222
route-target export 222:222

show ip route vrf VRF-TEST2

S* 0.0.0.0/0 [1/0] via 192.168.20.1
B 10.20.20.0/24 [200/0] via 10.255.255.4,

………………………………………………………………

ip vrf VRF-TEST3
rd 333:333
route-target import 111:111
route-target import 222:222


I Would like to see something like this in VRF-TEST3 Routing table

show ip route vrf VRF-TEST3

B* 0.0.0.0/0 [1/0] via 192.168.10.1 (VRF-TEST1)
B 10.10.10.0/24 [200/0] via 10.255.255.4 (VRF-TEST1)
B 192.168.165.0/29 is directly connected (VRF-TEST1)
B 10.20.20.0/24 [200/0] via 10.255.255.4 (VRF-TEST2)

2 REPLIES 2
VIP Advisor

Not a complete solution, but

Not a complete solution, but enough to give you the jist:

ip prefix-list test1-export-prefix-list permit ...
route-map test1-export-route-map
  match ip address prefix-list test3-export-prefix-list
ip vrf VRF-TEST1
  export map test1-export-route-map
VIP Advisor

Or got the other way ...

Or go the other way ...

 

ip vrf VRF-TEST3
  import map test3-import-route-map
CreatePlease to create content
Content for Community-Ad
August's Community Spotlight Awards