Use of route-map continue for load balancing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2015 04:26 AM - edited 03-05-2019 12:31 AM
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 :)
- Labels:
-
Other Routing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2015 03:19 AM
Nobody knows why this behavior??
