Some questions
Katie Petrusha katie at ripe.net
Fri Oct 3 09:58:51 CEST 2003
On Thu, Oct 02, 2003 at 04:35:12PM +0300, Alexander Moskalenko wrote: Dear Alexander, > Hello ! > > I'm trying to automate cisco prefix-lists configuration. > > 1. Is it possible to set name for prefix-list ? Not for now but will be implemented soon. Now you can only set the start number by @RtConfig set cisco_prefix_acl_no = 0 if you're using prefix lists. 'pl' prefix is hardcoded but I'll make it configurable in the next release. > 2. I have a strange situation > In RIPE DB: > import: from AS3261 action pref=400; accept ANY > export: to AS3261 announce AS-TeleportSV > remarks: . > import: from AS6849 action pref=400; accept ANY > export: to AS6849 announce AS-TeleportSV > > RtConfig gives the following: > > !Fticom > Warning: filter matches ANY/NOT ANY > ! > no ip prefix-list pl106 > ip prefix-list pl106 permit 0.0.0.0/0 le 32 > ! > !UkrTelecom > Warning: filter matches ANY/NOT ANY > ! > > > ^^^^^^ > There is no prefix-list for second upstream but the routing policy is the > same As you may have noticed, the identical prefix/access lists are not printed for optimization by default. However, if you want the identical prefix/access lists to be printed, you may turn on this option: -disable_access_list_cache RtConfig caches the access-lists (and in the future ip as-path access-lists and route- maps) that it generates so that the same access-list number can be reused instead of generating a new access list. If you do not want RtConfig to consume much memory, -dis- able_access_list_cache option can be used to turn off this feature. However, if you are short on memory on your cisco box, you should leave this feature enabled. Then RtConfig will print for you another list as well. So your output may then look like: no ip prefix-list pl100 ip prefix-list pl100 permit 0.0.0.0/0 le 32 ! no route-map MyMap_3261_1 ! route-map MyMap_3261_1 permit 1 match ip address prefix-list pl100 set local-preference 600 ! router bgp 15785 neighbor 2.2.2.2 route-map MyMap_3261_1 in !UkrTelecom Warning: filter matches ANY/NOT ANY ! no ip prefix-list pl101 ip prefix-list pl101 permit 0.0.0.0/0 le 32 ! no route-map MyMap_6849_2 ! route-map MyMap_6849_2 permit 1 match ip address prefix-list pl101 set local-preference 600 ! router bgp 15785 neighbor 4.4.4.4 route-map MyMap_6849_2 in (Notice that pl101 and pl100 are identical, but I've used -disable_access_list_cache option). Don't hesitate to ask if you have any further questions. > > Here is my template: > > @RtConfig set cisco_access_list_no = 0 > ! > <skipped> > ! > !Fticom > @RtConfig import AS15785 <my router> AS3261 <peer's router> > ! > !UkrTelecom > @RtConfig import AS15785 <my router> AS6849 <peer's router> > ! -- Kind regards, Katie Petrusha RIPE NCC