10-22-2014 08:25 AM - edited 03-05-2019 12:01 AM
Scenario is a hub router in an MPLS environment with DMVPN backup. MPLS runs over BGP and DMVPN uses EIGRP. All spokes are EIGRP stubs, hub has mutual redistribution to allow route exchange with 3rd parties who also run EIGRP.
I would like to prevent the hub from redistributing to BGP, any routes that come from the Tunnel interface. I can obviously develop and maintain a route map based on an ACL or prefix list, however I was wondering if I could somehow tag the routes that are learned over the tunnel? This makes things much easier to maintain in the long run, but my research so far has turned up empty.
Thanks in advance for any tips and tricks!
Solved! Go to Solution.
11-04-2014 02:40 PM
If you get the tag into the route, just create a route-map and deny redistributing that tag:
route-map DenyTag deny 10
match tag 40
route-map DenyTag permit 20
router bgp 1
redistribute eigrp 100 route-map DenyTag
10-22-2014 11:10 AM
Yes you can:
route-map Test permit 10
match interface Tunnel1
set tag 40
Once you redistribute into whichever protocol you want, you'll append this route-map to the redistribution line:
router ospf 1
redistribute eigrp 100 route-map Test subnets
R3#sh ip route 2.2.2.0
Routing entry for 2.2.2.0/24
Known via "ospf 1", distance 110, metric 20
Tag 40, type extern 2, forward metric 10
Last update from 172.13.0.1 on FastEthernet0/0, 00:00:09 ago
Routing Descriptor Blocks:
* 172.13.0.1, from 192.168.12.1, 00:00:09 ago, via FastEthernet0/0
Route metric is 20, traffic share count is 1
Route tag 40
The protocol used over the tunnel is eigrp only...
HTH,
John
11-04-2014 02:15 PM
John,
Thanks for the reply, sorry for taking so long to get back to you. I see how the tag is applying and showing up, but I want to apply the tag and then based on that tag NOT redistribute it. Essentially saying redistribute eigrp into bgp except with tag x, where tag x has been applied to all routes inbound over Tunnel 1.
Does that make sense?
11-04-2014 02:40 PM
If you get the tag into the route, just create a route-map and deny redistributing that tag:
route-map DenyTag deny 10
match tag 40
route-map DenyTag permit 20
router bgp 1
redistribute eigrp 100 route-map DenyTag
11-05-2014 05:01 AM
Thanks for the assistance that nudge in the right direction got me exactly what I wanted:
SPOKES:
route-map DMVPN-TAG permit 10
set tag 99
router eigrp XXX
distribute-list route-map DMVPN-TAG out Tunnel1
HUB:
route-map DENY-DMVPN deny 10
match tag 99
route-map DENY-DMVPN permit 20
router bgp XXXXX
redistribute eigrp 69 route-map DENY-DMVPN
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: