- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2022 11:32 PM - last edited on 04-19-2022 03:27 AM by Translator
I was trying to use route-map for some bgp neighbor what is configure in vrf. I have noticed the route-map is working only for OUT filter, but IN filter is not working. Ex: I have allowed the neighbor 10.40.40.2 to rcv specific IP inbound IN route map(GGC_CUSTOMER_IN). but it is also receiving the IP prefix 10.0.0.0/23 from 10.40.40.2 which is not permitted by the route-map IN. On the other hand the outbound route-map(GGC_CUSTOMER_OUT_L3) is working good in the same neighbor.
Now the question is why the neighbor is not doing according the route-map, how it is receiving the prefix 10.0.0.0/23 while I have not allowed it in Route-map with ip prefix-list.
The config is:
----------------------------
!
ip vrf FNA
rd 111:2
!
ip vrf GGC
rd 111:1
!
router bgp 111111
bgp router-id 1.1.1.1
bgp log-neighbor-changes
network 10.138.250.0 mask 255.255.255.0
!
address-family ipv4 vrf GGC
bgp router-id 10.40.40.1
network 10.138.250.0 mask 255.255.255.0
network 10.138.251.0 mask 255.255.255.0
neighbor 10.40.40.2 remote-as 222222
neighbor 10.40.40.2 activate
neighbor 10.40.40.2 next-hop-self
neighbor 10.40.40.2 soft-reconfiguration inbound
neighbor 10.40.40.2 route-map GGC_CUSTOMER_IN in
neighbor 10.40.40.2 route-map GGC_CUSTOMER_OUT_L3 out
exit-address-family
ip route vrf GGC 10.138.250.0 255.255.255.0 Null0
ip route vrf GGC 10.138.251.0 255.255.255.0 Null0
!
ip prefix-list GGC_CUSTOMER_IN seq 1 permit 10.138.250.0/24 le 29
ip prefix-list GGC_CUSTOMER_IN seq 2 permit 10.138.251.0/24 le 29
ip prefix-list GGC_CUSTOMER_IN seq 99 deny 0.0.0.0/0 le 32
!
ip prefix-list GGC_CUSTOMER_OUT_L3 seq 1 permit 40.40.40.0/24 le 29
ip prefix-list GGC_CUSTOMER_OUT_L3 seq 99 deny 0.0.0.0/0 le 32
!
route-map GGC_CUSTOMER_OUT_L3 permit 1
match ip address prefix-list GGC_CUSTOMER_OUT_L3
!
route-map GGC_CUSTOMER_IN permit 1
match ip address prefix-list GGC_CUSTOMER_IN
Solved! Go to Solution.
- Labels:
-
Other Routers
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2022 02:09 AM - last edited on 04-19-2022 03:31 AM by Translator
Your config is OK,
but you do
show ip bgp received-route
<- this the route received BEFORE IN filter
sow ip bgp
<- next hop is your BGP neighbor show you the prefix AFTER the IN filter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2022 02:09 AM - last edited on 04-19-2022 03:31 AM by Translator
Your config is OK,
but you do
show ip bgp received-route
<- this the route received BEFORE IN filter
sow ip bgp
<- next hop is your BGP neighbor show you the prefix AFTER the IN filter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2022 02:55 AM
Thank you very much for the information. It means a lot