protocol bgp ibgp4_bgp02 {
description "Internal BGP to BGP02";
local 10.0.0.1 as 65501;
neighbor 10.0.0.2 as 65502;
ipv4 {
export all;
import filter { krt_prefsrc = 78.22.46.1; };
table ibgp4;
};
}
Perfect, that will do what i want. Thank you.But will it not be better to have that setting on an in-filter per route basis?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".2018-01-15 9:36 GMT+01:00 Alexander Zubkov <green@qrator.net>:Hi,
You can set krt_prefsrc when exporting to kernel in Linux.On Mon, Jan 15, 2018 at 8:49 AM, Michael Rack <mail@michaelrack.de> wrote:Hi all!Is it possible to set the SRC-Attribute on routes that will be inserted to kernel?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.Lets say 78.22.45.0/24 and 78.22.46.0/24 is my public network address space.router#1.lo = 78.22.46.1/32router#1.eth1 = 10.0.0.1/31----- eBGP -----router#2.eth1 = 10.0.0.2/31router#2.eth2 = 78.22.45.1/24router#1.lo = 78.22.46.2/32On 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.2On Unix / Linux you can accomplish that feature withrouter#1# ip route add 78.22.45.0/24 via 10.0.0.2 src 78.22.46.1So how can i set "src" with bird on import route filtering process?