cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1339
Views
0
Helpful
3
Replies

How does "match tag" works with vrf "export map" ?

Dears

Would like your assistance please regarding below

How does "match tag" works with vrf "export map" ?

I am asking this cause as I know "tag" only appears with static routes .. so when route is redistributed into BGP this tag disappears

Also export map should match on BGP routes and not static routes cause simply static routes may not be redistributed into BGP

So how it works ?

----------------------

ip route vrf test 10.0.0.0 255.255.255.0 se1/0 tag 80

ip vrf test

rd 10283:11004

export map VPN-export

route-target export 10283:1001

route-target import 10283:1001

route-map VPN-export permit 10

match tag 80

set community no-advertise

set extcommunity rt 10283:214000

router bgp 1

address-family ipv4 vrf test

redistribute static

----------------------------

Many Thanks

Sherif Ismail

3 Replies 3

I believe it works as below

1- "export map" go check all static routes, if there is match

2- then check if route is redistriubted into BGP or not

If yes then advertized into MP-BGP otherwise wont be advertized

Correct ?

Hi,

This is really interesting question and explanation you privded make sense to me. I was searching this on web but as usual for any vendor internal algorithm never shared so didn't find anything. If I found something surely let you know.

Regards # Mahesh

Thanks Mahesh