<div dir="ltr">Hello<br> I try this configuration in the bgp section and it works, but i don't know where is the problem<br><br>protocol bgp {<br> local 10.20.2.2 as 114108;<br> source address 10.20.2.2;<br> neighbor 10.20.2.1 as 111796;<br> ipv4 {<br> <b>next hop self;</b><br> import none;<br> export filter rr_export;<br> };<br>}<br><div><br></div><div>Thanks in advance</div><div><br></div><div>Oriol</div></div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El mié, 25 oct 2023 a las 10:02, Oriol Rico (<<a href="mailto:oriol.rico@gmail.com">oriol.rico@gmail.com</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello everybody<br>
I have a bird daemon with this configuration<br>
<br>
# Configure logging<br>
log syslog all;<br>
log "/var/log/bird.log" all;<br>
log stderr all;<br>
#debug protocols { routes, interfaces };<br>
<br>
# Override router ID<br>
router id 10.20.2.2;<br>
<br>
# Sync bird routing table with kernel<br>
protocol kernel {<br>
learn;<br>
ipv4 {<br>
import all;<br>
export all;<br>
};<br>
}<br>
<br>
protocol device {<br>
scan time 10;<br>
}<br>
<br>
# Include directly connected networks<br>
protocol direct {<br>
ipv4;<br>
}<br>
<br>
protocol static static4 {<br>
ipv4 { export all;};<br>
route <a href="http://10.0.0.0/8" rel="noreferrer" target="_blank">10.0.0.0/8</a> via 10.20.2.1;<br>
route <a href="http://0.0.0.0/0" rel="noreferrer" target="_blank">0.0.0.0/0</a> via 10.20.2.1;<br>
}<br>
<br>
protocol babel {<br>
interface "wlan0" {<br>
type wireless;<br>
hello interval 1 s;<br>
rx buffer 15000;<br>
};<br>
interface "br-lan" {<br>
type wired;<br>
};<br>
ipv4 {<br>
export where (source = RTS_DEVICE) || (source = RTS_BABEL) || (source<br>
= RTS_STATIC);<br>
};<br>
}<br>
<br>
filter rr_export {<br>
if ( net ~ [ <a href="http://10.0.0.0/8%7B24,32%7D" rel="noreferrer" target="_blank">10.0.0.0/8{24,32}</a> ] ) then<br>
{<br>
accept;<br>
}<br>
else{<br>
reject;<br>
}<br>
}<br>
<br>
protocol bgp {<br>
local 10.20.2.2 as 114108;<br>
source address 10.20.2.2;<br>
neighbor 10.20.2.1 as 111796;<br>
ipv4 {<br>
import none;<br>
export filter rr_export;<br>
};<br>
}<br>
<br>
I received a route via br-lan with the prefix <a href="http://10.20.3.32/27" rel="noreferrer" target="_blank">10.20.3.32/27</a> via<br>
babel protocol, but when i export via bgp the peer logs a Withdrawn,<br>
but when i am in the router with the setup i send i can reach<br>
<a href="http://10.20.3.32/27" rel="noreferrer" target="_blank">10.20.3.32/27</a> via br-lan over babel.<br>
I don't know where is the problem. All other config it's ok.<br>
Can you help me?<br>
<br>
Thanks in advanced<br>
<br>
Oriol<br>
</blockquote></div>