cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1154
Views
5
Helpful
2
Replies

Route-map IN is not working with bgp neighbor (VRF), OUT filter is ok

prottoy396
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

gggg.png

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

View solution in original post

2 Replies 2

gggg.png

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

Thank you very much for the information. It means a lot  

Getting Started

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:

Review Cisco Networking products for a $25 gift card