Checking if bgp_next_hop matches bgp neighbor

Ondrej Filip feela at network.cz
Thu Sep 2 22:17:27 CEST 2010


On 2.9.2010 16:10, Peter Lieven wrote:
> Hi,
> 
> just wondering what the correct way is to filter if the advertised
> bgp_next_hop matches the neighbor address in a filter.
> 
> Would
> 
> if from != bgp_next_hop then reject;

Yes, this clause is fine and it should do what you're looking for.

			Ondrej


> 
> do the trick, or do I have to define a function as inbound filter and
> pass the neighbor address as a parameter?
> 
> Thanks,
> Peter
> 
> # Kind Regards/Mit freundlichen Gruessen
> #
> # PEERING GmbH - Devision ECIX
> # Lindenallee 27, 14050 Berlin, Germany
> #
> # Geschaeftsfuehrer: Stefan Wahl, Peter Lieven
> # Amtsgericht Charlottenburg, HRB 97752B, USt-Id-Nr: DE2746301838
> #
> # Web: http://www.ecix.de/
> # Phone: +49 30 81495450
> # Fax:   +49 30 81495459
> 




More information about the Bird-users mailing list