<html>
<head>
<meta content="text/html; charset=KOI8-U" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hello,<br>
<br>
Please try:<br>
<br>
<pre wrap="">if (net.len = 32 && bgp_community ~ [ (31210,*) ] && bgp_community ~ [ (0,666) ] ) then {
bgp_next_hop = 193.25.181.253;
return true;
}</pre>
<br>
<br>
Best Regards,<br>
<br>
<br>
<div class="moz-signature">
<meta http-equiv="Content-Type" content="text/html;
charset=KOI8-U">
<style>
<!--
.txt1{
font-family:Verdana;
color:#103e81;
font-size:12px;
}
.txt2{
font-family:Verdana;
color:#00ace5;
font-size:12px;
}
a:link{
color:00ace5;
text-decoration:none;
}
a:visited{
color:00ace5;
text-decoration:none;
}
--</style>
</div>
On 04.4.2014 Ç. 18:19, Alexander Shikov wrote:<br>
</div>
<blockquote cite="mid:20140404151928.GA72165@crete.itcons.net.ua"
type="cite">
<pre wrap="">Hi,
continuing the implemetation of blackhole in our IXP, I've faced with problem of
changing next-hop for the route.
Construction looks like
if (net.len = 32 && bgp_community ~ [ (31210,*) ] && bgp_community ~ [ (0,666) ] ) then {
gw = 193.25.181.253;
return true;
}
results in :
bird> show route for 95.67.13.2/32 all
95.67.13.2/32 via 193.25.181.253 on bge0 [COSMONOVA2 2014-04-04 17:59:19 from 193.25.180.133] * (50) [AS34867i]
Type: BGP unicast univ
BGP.origin: IGP
BGP.as_path: 34867
BGP.next_hop: 193.25.180.133
BGP.local_pref: 100
BGP.community: (0,666) (31210,31210)
And when this route is announced to other peer, next-hop remains unchanged:
Peerings.inet.0: 16708 destinations, 50556 routes (16627 active, 0 holddown, 88 hidden)
+ = Active Route, - = Last Active, * = Both
95.67.13.2/32 *[BGP/170] 00:12:14, localpref 100, from 193.25.180.255
AS path: 34867 I
> to 193.25.180.133 via xe-1/0/0.777
As far as I understand from User's Guide, gw is an read-write attribute,
so why it didn't change next-hop?
Thanks in advance!
</pre>
</blockquote>
<br>
</body>
</html>