11-22-2018 11:30 PM
Hi,
i have this config and output:
router bgp 1111
bgp log-neighbor-changes
neighbor 172.30.0.10 remote-as 700
neighbor 172.30.0.10 soft-reconfiguration inbound
neighbor 172.30.0.10 route-map local-pref in
neighbor 172.30.0.10 filter-list 1 out
neighbor 192.168.1.5 remote-as 1111
neighbor 192.168.1.5 next-hop-self
!
ip forward-protocol nd
!
ip as-path access-list 1 permit ^$
ip as-path access-list 2 permit .*
!
ip prefix-list 20.20.20.0/24-route seq 5 permit 20.20.20.0/24
!
route-map local-pref permit 10
match ip address prefix-list 20.20.20.0/24-route
set local-preference 150
!
route-map local-pref permit 20
!
But if i removed this line: route-map local-pref permit 20
2.2.2.0/24 is gone
router bgp 1111
bgp log-neighbor-changes
neighbor 172.30.0.10 remote-as 700
neighbor 172.30.0.10 soft-reconfiguration inbound
neighbor 172.30.0.10 route-map local-pref in
neighbor 172.30.0.10 filter-list 1 out
neighbor 192.168.1.5 remote-as 1111
neighbor 192.168.1.5 next-hop-self
!
ip forward-protocol nd
!
ip as-path access-list 1 permit ^$
ip as-path access-list 2 permit .*
!
ip prefix-list 20.20.20.0/24-route seq 5 permit 20.20.20.0/24
!
ip prefix-list prepend-0.0.0.0/0 seq 5 permit 0.0.0.0/0 le 32
!
ip prefix-list prepend-20.20.20.0/24 seq 5 permit 20.20.20.0/24
!
route-map local-pref permit 10
match ip address prefix-list 20.20.20.0/24-route
set local-preference 150
!
as far as i know, 2.2.2.0/24 should be gone with the first statement as it will be denied due to implicit deny. i dont know why it is still accepted and received.
Solved! Go to Solution.
11-24-2018 01:41 AM
Hello,
have a look at the two links below which I think explain the concept well. In your case, the important part is:
" If a route-map entry does not explicitly specify any matching conditions, then it always matches."
http://docs.frrouting.org/en/latest/routemap.html
https://www.examcollection.com/certification-training/ccnp-concept-of-route-maps.html
11-23-2018 12:31 AM
Hello,
that is expected behavior:
route-map local-pref permit 10
match ip address prefix-list 20.20.20.0/24-route
set local-preference 150
--> the first part sets the local preference for the specified prefix list to 150
route-map local-pref permit 20
--> the second part allows everything else that doesn't match the prefix list, with the default values
11-23-2018 12:48 AM
11-23-2018 01:09 AM
Hello,
the implicit deny is only for setting the local preference. With your second line (route-map local-pref permit 20) you allow everything else, with the default values...
11-23-2018 09:54 PM
11-23-2018 11:50 PM
Hello Roel,
the implicit deny filters all routes not specified, if you want to allow everything else with the default values, you need the second line. That is just how a route map works...
11-24-2018 01:24 AM
11-24-2018 01:41 AM
Hello,
have a look at the two links below which I think explain the concept well. In your case, the important part is:
" If a route-map entry does not explicitly specify any matching conditions, then it always matches."
http://docs.frrouting.org/en/latest/routemap.html
https://www.examcollection.com/certification-training/ccnp-concept-of-route-maps.html
11-23-2018 03:53 AM - edited 11-23-2018 03:58 AM
Hi ,first of all you use first line just for setting local preference not anything else and second line is empty that means everything else allowed , second i think this is because you use permit in your route-map if i remember right in logical process when you use deny in route-map command the match parameters will completely denied . look at the logic process of route map in image
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