GNS3
http://forum.gns3.net/

bgp route-map behaves differently according to direction
http://forum.gns3.net/topic8466.html
Page 1 of 1

Author:  purefog [ Thu Feb 13, 2014 1:26 pm ]
Post subject:  bgp route-map behaves differently according to direction

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?

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/