05-15-2024 06:30 AM
I have a basic Centralized Policy (listed below) attached to vSmart - it matches & accepts Routes & TLOCs from Site 1, and then rejects everything else out to all other Sites (2-999).
Everything is working as expected, with Spokes only seeing DC routes. My question is why is sequence 11 needed to match Site 1 TLOCs? If I remove sequence 11, and match only the Site 1 routes, vSmart drops them in the outbound advertisement to the other sites. Only if the Routes and TLOCs are matched will the advertisements be sent.
Does anyone know why - or have a documentation link with more details as to why - you need to match the TLOCs separately from the Routes?
I would have assumed that the TLOC is a function of the Route, and that matching the Route would implicitly match its TLOC, but that is not the case.
TIA!
policy
lists
site-list DC
site-id 1
!
site-list SPOKES
site-id 2-999
!
prefix-list _AnyIpv4PrefixList
ip-prefix 0.0.0.0/0 le 32
!
!
control-policy filter-spoke-to-spoke
sequence 1
match route
prefix-list _AnyIpv4PrefixList
site-list DC
!
action accept
!
!
sequence 11
match tloc
site-list DC
!
action accept
!
!
default-action reject
!
!
apply-policy
site-list SPOKES
control-policy filter-spoke-to-spoke out
!
!
05-15-2024 07:20 AM
you use Hub and spoke
and you make all traffic pass to Hub and there is no traffic spoke to spoke
MHM
05-15-2024 07:35 AM
Hi,
OMP routes (vRoutes) and TLOC routes as routing information are separate.
With your policy, you have default reject action.
If you don't allow TLOC routes then there will not be any BFD and OMP routes with that(those) TLOC(s) will not be installed since next-too (TLOC) is unreachable (no BFD due to missing TLOC route).
Due to default action drop(reject) you need to advertise TLOCs route explicitly.
05-16-2024 04:53 AM
Correct. I understand that is the behavior, that if you do not match the TLOC & the Route, then the routes will not be advertised. My question is why is that the behavior?
Does anyone have a documentation link that explains why TLOCs must be matched separately in the policy logic?
05-16-2024 07:37 AM
I Will assume Your bgp background is prefect
Any routr-map there is AND abd OR between match
You can specify
Match 1
Match 2
Since each one of match in different line then there is AND between match'
That meaning if prefix is match1 it mandatory to match 2 to take effect of Set
But
These tow match inbetween AND have one important rule' both must check same prefix (which send via one update) not prefix 1 match 1 and prefix 2 match 2
And here it come OMP and TLOC
We can not use both match OMP AND TLOC since both send in different update.
That why route-map of policy separate the match in two different seq
Hope this clear to you
Goodluck
MHM
05-17-2024 03:59 AM
@MHM Cisco World wrote:We can not use both match OMP AND TLOC since both send in different update.
This might be the answer I'm looking for. Do you know any documentation links that talk about this in more detail?
05-16-2024 02:21 PM
The reason is policy structure. You have separate block for "TLOC match" , "Route match" and default action. There is no separate default action for each TLOC/Route blocks, you one one default action for routes (vRoute or TLOC route).
Default Action
If a selected route or TLOC does not match any of the match conditions in a centralized control policy, a default action is applied to it.
By default, the route or TLOC is rejected.
Search default action from below link:
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