It is currently Mon Apr 22, 2019 4:40 am


All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: bgp route-map behaves differently according to direction
PostPosted: Thu Feb 13, 2014 1:26 pm 
Offline

Joined: Mon Jan 28, 2013 2:14 pm
Posts: 5
test setup is simple :
R6 is in AS2, R5 and R4 is in AS1
R6 send 6 bgp routes to R5:

1.1.1.1/32 community 0:1
1.1.1.2/32 community 0:2
1.1.1.3/32 community 0:3
2.2.2.1/32 community 0:4
2.2.2.2/32 community 0:5
2.2.2.3/32 community 0:6


on R4 the following route-map is configured:
route-map CHECK-CONTINUE permit 2
match ip address prefix-list first-pfl
continue 6
set local-preference 200
!
route-map CHECK-CONTINUE permit 4
match ip address prefix-list second-pfl
continue 7
set local-preference 300
!
route-map CHECK-CONTINUE permit 5
set metric 55
!
route-map CHECK-CONTINUE permit 6
match community comm0:1
set local-preference 500
!
route-map CHECK-CONTINUE permit 7
match community comm0:6
set local-preference 500
!
route-map CHECK-CONTINUE permit 10
!
ip prefix-list first-pfl seq 5 permit 1.1.1.0/24 le 32
ip prefix-list second-pfl seq 5 permit 2.2.2.0/24 le 32
ip community-list standard comm0:1 permit 0:1
ip community-list standard comm0:6 permit 0:6

if the route-map is applied on R5 to R6`s neighbor statement in the in direction this is the resulting bgp table:*> 1.1.1.1/32 56.0.0.2 0 500 0 2 ?
*> 1.1.1.2/32 56.0.0.2 0 200 0 2 ?
*> 1.1.1.3/32 56.0.0.2 0 200 0 2 ?
*> 2.2.2.1/32 56.0.0.2 0 300 0 2 ?
*> 2.2.2.2/32 56.0.0.2 0 300 0 2 ?
*> 2.2.2.3/32 56.0.0.2 0 500 0 2 ?

so far everything is as expected, but if the same route-map is applied as an outgoing policy towards R4 all routes are revoked by R5, this happens even if R4 is placed in another AS.
any explanation?




Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO