[quagga-users 11320] Re: Inbound route-map filter with Quagga (BGP)

Alexis Rosen quagga-users at alexis.users.panix.com
Fri Jan 22 00:38:42 GMT 2010


On Jan 21, 2010, at 12:13 PM, Nick Hilliard wrote:
> On 21/01/2010 16:23, Sim wrote:
>> Can I filter specific inbound network with Quagga (bgp)?
>
> yes.  You can use distribute-lists or route maps.
>
>> Something like this:
>>
>> router bgp 111
>>  [..]
>>  neighbor 1.2.3.4 route-map example-in in
>>
>> route-map example-in ....
>>   filter 192.168.0.0/16
>
> --
> route-map example-in in
> match ip address 100
>
> access-list 100 permit ip host 192.168.0.0 host 255.255.0.0
> --
>
> or:
> --
> router bgp 111
> neighbor 1.2.3.4 distribute-list 100 in
> --
>
> For smaller scale systems, distribute-lists are fine.  For larger  
> scale
> networks, you really need to use route-maps, as they are much more  
> flexible.

Alternatively, you can specify a prefix-list either directly (neighbor  
x.x.x.x prefix list...) or inside a route-map. Prefix-lists are a lot  
easier to read and type, though they don't allow for oddball prefix  
masking (which is virtually never used anyway).

/a


More information about the Quagga-users mailing list