It`s weird that you need something like that, can you explain what aim do you want to reach in that way.<div>I think that prepend can only be added after yours autonomus system. <br><br><div class="gmail_quote">2013/1/2 Kubacki Wojciech <span dir="ltr"><<a href="mailto:W.Kubacki@heidelberg-it.de" target="_blank">W.Kubacki@heidelberg-it.de</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hallo,<br>
ist there any way to implement BGP and Redistibute Static with AS-Prepend.<br>
<br>
I would like to implement following configuration:<br>
--------<br>
protocol static {<br>
route <a href="http://2.2.2.2/32" target="_blank">2.2.2.2/32</a> via 10.1.2.1; }<br>
<br>
protocol bgp test {<br>
local as 65501;<br>
neighbor 10.2.3.3 as 65501;<br>
export filter {<br>
if ( source = RTS_STATIC && net = <a href="http://2.2.2.2/32" target="_blank">2.2.2.2/32</a> ) then {<br>
bgp_path.prepend(65502);<br>
accept;<br>
};<br>
};<br>
};<br>
---------<br>
<br>
On the other router i got following:<br>
<br>
R2#sh ip bgp<br>
.<br>
Network Next Hop Metric LocPrf Weight Path<br>
*> <a href="http://2.2.2.2/32" target="_blank">2.2.2.2/32</a> 10.2.2.2 0 65502 65501 ?<br>
<br>
<br>
I want this (65501 65502) not (65502 65501).<br>
<br>
Any help would be greatly appreciated.<br>
<br>
<br>
Mit freundlichen Grüßen<br>
<br>
<br>
Wojtek Kubacki<br>
<br>
<br>
<br>
</blockquote></div><br></div>