cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Bookmark
|
Subscribe
|
1014
Views
0
Helpful
1
Replies

Use of route-map continue for load balancing

tvtdbaeza
Level 1
Level 1

Hi Experts!

Im trying to load-balance with route-maps and the continue statment.

The thing is it work at first, but, after few seconds/minutes, It stop working as I want.

Im doing it in GNS3 Lab with 7200 advipservices, but the real scenario is with an ASR1002X.

AS10 is publishing all those prefixes:

ip prefix-list Mitad1_Out seq 10 permit 100.154.19.0/24
ip prefix-list Mitad1_Out seq 15 permit 100.232.18.0/23
ip prefix-list Mitad1_Out seq 20 permit 100.232.19.0/24
ip prefix-list Mitad1_Out seq 25 permit 100.76.154.0/24
ip prefix-list Mitad1_Out seq 100 deny 0.0.0.0/0 le 32
!
ip prefix-list Mitad2_Out seq 30 permit 100.156.86.0/24
ip prefix-list Mitad2_Out seq 35 permit 100.156.91.0/24
ip prefix-list Mitad2_Out seq 40 permit 100.29.68.0/22
ip prefix-list Mitad2_Out seq 45 permit 100.29.68.0/23
ip prefix-list Mitad2_Out seq 50 permit 100.29.70.0/23
ip prefix-list Mitad2_Out seq 55 permit 100.69.8.0/22
ip prefix-list Mitad2_Out seq 100 deny 0.0.0.0/0 le 32

With this route-maps:

route-map AS30-OUT permit 10
 match ip address prefix-list Mitad2_Out
 continue 20
!
route-map AS30-OUT permit 20
 match ip address prefix-list Mitad1_Out
 set as-path prepend 10 10 10
!
route-map AS20-OUT permit 10
 match ip address prefix-list Mitad1_Out
 continue 20
!
route-map AS20-OUT permit 20
 match ip address prefix-list Mitad2_Out
 set as-path prepend 10 10 10

Configured as:

neighbor 10.10.10.2 activate
  neighbor 10.10.10.2 next-hop-self
  neighbor 10.10.10.2 route-map AS20-OUT out
  neighbor 20.20.20.2 activate
  neighbor 20.20.20.2 next-hop-self
  neighbor 20.20.20.2 route-map AS30-OUT out

In the AS40 in the first moment I recieve the routing table as I want:

*> 100.154.19.0/24    30.30.30.1                             0 20 10 i
*> 100.232.18.0/23   30.30.30.1                             0 20 10 i
*> 100.76.154.0/24   30.30.30.1                             0 20 10 i
*> 100.156.86.0/24  40.40.40.1                             0 30 10 i
*                   30.30.30.1                             0 20 10 10 10 10 i
*> 100.156.91.0/24  40.40.40.1                             0 30 10 i
*                   30.30.30.1                             0 20 10 10 10 10 i
*> 100.29.68.0/23   40.40.40.1                             0 30 10 i
*                   30.30.30.1                             0 20 10 10 10 10 i
*> 100.29.68.0/22   40.40.40.1                             0 30 10 i
*                   30.30.30.1                             0 20 10 10 10 10 i
   Network          Next Hop            Metric LocPrf Weight Path
*> 100.29.70.0/23   40.40.40.1                             0 30 10 i
*                   30.30.30.1                             0 20 10 10 10 10 i
*> 100.69.8.0/22    40.40.40.1                             0 30 10 i
*                   30.30.30.1                             0 20 10 10 10 10 i

After a while, the bgp table changes to that:

*> 100.154.19.0/24    30.30.30.1                             0 20 10 i
*> 100.232.18.0/23   30.30.30.1                             0 20 10 i
*> 100.76.154.0/24   30.30.30.1                             0 20 10 i
*> 100.156.86.0/24  40.40.40.1                             0 30 10 i
*> 100.156.91.0/24  40.40.40.1                             0 30 10 i
*> 100.29.68.0/23   40.40.40.1                             0 30 10 i
*> 100.29.68.0/22   40.40.40.1                             0 30 10 i
*> 100.29.70.0/23   40.40.40.1                             0 30 10 i
*> 100.69.8.0/22    40.40.40.1                             0 30 10 i

I've readed about how the continue works, and as I have configured It never should work as intended, but why for the first seconds It works and then change?

Im very sorry for my english.

Thanks in advance

PS: Of course, those aren't my real prefixes, I've changed them :)

 

1 Reply 1

tvtdbaeza
Level 1
Level 1

Nobody knows why this behavior??