<div dir="ltr">Perfect, that will do what i want. Thank you.<div><br></div><div>But will it not be better to have that setting on an in-filter per route basis?</div><div><br></div><div>On MIKROTIK BGP / OSPF you do that on a per route basis, so you can do some fancy things like "if routes learned from peer 1 set src to x.x.x.x, if learned from peer 2 set src to y.y.y.y".</div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-01-15 9:36 GMT+01:00 Alexander Zubkov <span dir="ltr"><<a href="mailto:green@qrator.net" target="_blank">green@qrator.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<br><br>You can set krt_prefsrc when exporting to kernel in Linux.<code><span><br></span></code></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 15, 2018 at 8:49 AM, Michael Rack <span dir="ltr"><<a href="mailto:mail@michaelrack.de" target="_blank">mail@michaelrack.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all!<div><br></div><div>Is it possible to set the SRC-Attribute on routes that will be inserted to kernel?</div><div><br></div><div>I have private /31 networks to connect to other routers in my network and i don't want to see these private ip-addesses on a traceroute from a network with public ips. Every Router have a public IP-Address on his Loopback-Interface, so i can use that address for ICMP-Replies.</div><div><br></div><div>Lets say <a href="http://78.22.45.0/24" target="_blank">78.22.45.0/24</a> and <a href="http://78.22.46.0/24" target="_blank">78.22.46.0/24</a> is my public network address space.</div><div><br></div><div>router#1.lo = <a href="http://78.22.46.1/32" target="_blank">78.22.46.1/32</a><br></div><div>router#1.eth1 = <a href="http://10.0.0.1/31" target="_blank">10.0.0.1/31</a></div><div> ----- eBGP -----</div><div>router#2.eth1 = <a href="http://10.0.0.2/31" target="_blank">10.0.0.2/31</a></div><div>router#2.eth2 = <a href="http://78.22.45.1/24" target="_blank">78.22.45.1/24</a><br></div><div>router#1.lo = <a href="http://78.22.46.2/32" target="_blank">78.22.46.2/32</a><br></div><div><br></div><div>On traceroutes i like to reply from a specific ip-address. In case of router#1 with 78.22.46.1 and for router#2 with 78.22.46.2</div><div><br></div><div>On Unix / Linux you can accomplish that feature with</div><div>router#1# ip route add <a href="http://78.22.45.0/24" target="_blank">78.22.45.0/24</a> via 10.0.0.2 src 78.22.46.1</div><div><br></div><div>So how can i set "src" with bird on import route filtering process?</div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>