Hallo, ist there any way to implement BGP and Redistibute Static with AS-Prepend. I would like to implement following configuration: -------- protocol static { route 2.2.2.2/32 via 10.1.2.1; } protocol bgp test { local as 65501; neighbor 10.2.3.3 as 65501; export filter { if ( source = RTS_STATIC && net = 2.2.2.2/32 ) then { bgp_path.prepend(65502); accept; }; }; }; --------- On the other router i got following: R2#sh ip bgp . Network Next Hop Metric LocPrf Weight Path *> 2.2.2.2/32 10.2.2.2 0 65502 65501 ? I want this (65501 65502) not (65502 65501). Any help would be greatly appreciated. Mit freundlichen Grüßen Wojtek Kubacki
It`s weird that you need something like that, can you explain what aim do you want to reach in that way. I think that prepend can only be added after yours autonomus system. 2013/1/2 Kubacki Wojciech <W.Kubacki@heidelberg-it.de>
Hallo, ist there any way to implement BGP and Redistibute Static with AS-Prepend.
I would like to implement following configuration: -------- protocol static { route 2.2.2.2/32 via 10.1.2.1; }
protocol bgp test { local as 65501; neighbor 10.2.3.3 as 65501; export filter { if ( source = RTS_STATIC && net = 2.2.2.2/32 ) then { bgp_path.prepend(65502); accept; }; }; }; ---------
On the other router i got following:
R2#sh ip bgp . Network Next Hop Metric LocPrf Weight Path *> 2.2.2.2/32 10.2.2.2 0 65502 65501 ?
I want this (65501 65502) not (65502 65501).
Any help would be greatly appreciated.
Mit freundlichen Grüßen
Wojtek Kubacki
[SOLVED] For other user with the same problem: I got replay from Roman Skopenko, he gave me solution that works. protocol bgp test { local as 65501; neighbor 10.2.3.3 as 65501; export filter { if ( source = RTS_STATIC && net = 2.2.2.2/32 ) then { bgp_path.empty; bgp_path.prepend(65502); bgp_path.prepend(65501); accept; }; }; }; So "bgp_path.empty" was that what I need. Many tnx to Roman. @ Vadim. I have network connected with static route to my BGP router. This network has his own as-nr. I want announce this as-nr (my_as static-net_as) to other BGP-Routers. Best Regards. Wojtek.
Many tnx just before New Year i was looking how to solve that moment to Vadim: we have clients with their own networks and AS numbers sometime some of them facing with strange problems with their equipment or with configuration for expample bgp on dlink switches or foxgate switches and they asking to announce their networks (clients are crying) of course it is needed to prepend their networks with proper AS num On 03.01.2013 09:49, Kubacki Wojciech wrote:
[SOLVED] For other user with the same problem: I got replay from Roman Skopenko, he gave me solution that works.
protocol bgp test { local as 65501; neighbor 10.2.3.3 as 65501; export filter { if ( source = RTS_STATIC && net = 2.2.2.2/32 ) then { bgp_path.empty; bgp_path.prepend(65502); bgp_path.prepend(65501); accept; }; }; };
So "bgp_path.empty" was that what I need.
Many tnx to Roman.
@ Vadim. I have network connected with static route to my BGP router. This network has his own as-nr. I want announce this as-nr (my_as static-net_as) to other BGP-Routers.
Best Regards. Wojtek.
-- --- Арнаутов Артем ISP NetAssist +380 44 2398989
participants (3)
-
Arnautov Artem -
Kubacki Wojciech -
Vadim Urazaev