From: Heiko Liedtke (heiko.liedtke@gmx.net)
Date: Sun Dec 17 2006 - 07:25:51 ART
If there is no le or ge statement in the prefix list, the list will only
match
if there is a route with exactly /23 bits network mask.
If you have 2 routes with /24 prefix, you should use either two permit
statements with /24 or the statement with 150.1.4.0/23 le 24.
If you search the archive of GS you should find a very good explanation
about behaviour of prefix lists.
Heiko
Mohammad Saeed schrieb:
> Hello Every Body,
> Here is the configuration...
>
> conf t
> !
> ip prefix-list VLAN45 seq 5 permit 150.1.4.0/23
> !
> route-map ADDASPATH permit 10
> match ip address prefix-list VLAN45
> set as-path prepend 100 100 100
> !
> route-map ADDASPATH permit 20
> router bgp 100
> neighbor 204.12.1.254 route-map ADDASPATH out
> end
> wr
>
> Now as per my understanding above IP prefix-list shall match 150.1.4.0
> and 150.1.5.0. But if IP Prefix list is like this:
>
> ip prefix-list VLAN45 seq 5 permit 150.1.4.0/23 le 24
>
> what diffirence it will make?
>
> And if it is like this:
>
> ip prefix-list VLAN45 seq 5 permit 150.1.4.0/24
> ip prefix-list VLAN45 seq 5 permit 150.1.5.0/24
> route-map ADDASPATH permit 10
> match ip address prefix-list VLAN45
> set as-path prepend 100 100 100
>
> Would the abobe route map will prepend 100 100 100 for both networks
> or it will add only for the first one?
>
> Thanks for any help in advance.
>
> Regards,
>
> Mohamamd Zahid Saeed
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
This archive was generated by hypermail 2.1.4 : Tue Jan 02 2007 - 07:50:38 ART