<div dir="ltr"><div><div><div><div><div><div><div>Hello, Ilya.<br>I think you can implement such behaviour with setting of the krt_prefsrc attribute value inside of the export filter of a kernel protocol section.<br><br>Simple example:<br><br>protocol kernel k_main {<br> scan time 10;<br> import none;<br> export filter {<br> krt_prefsrc = 10.0.100.1;<br> accept;<br> }<br>}<br><br>Also, you can set the krt_prefsrc inside of the 'if' statement of comparing of the next hop attribute value.<br><br></div></div></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-02-27 21:50 GMT+03:00 Илья Шипицин <span dir="ltr"><<a href="mailto:chipitsine@gmail.com" target="_blank">chipitsine@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>Hello,<br><br></div>I run bird on centos with multiple ip addresses.<br></div>what I want to achive might be easily done by running command<br><br>ip route change default via $def src N.N.N.N<br><br><br></div>where $def is variable and N.N.N.N is local address <br></div>how can I achive that with bird ? any ospf route magic ? scripting after bird applies routes (I need to pick $def from that script)<br><br></div>thanks!<br></div>Ilya Shipitsin<br></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Anton.</div>
</div>