<div dir="ltr">Hi I'm having troubles in BIRD configuration, and I'm pretty sure it's just a trivial wrong configure issue but I really tried my best >_<<br><div class="gmail_quote"><div dir="ltr"><br>Let me give you some background.<br><br>1. There are 2 hosts connected by wire (so that they are L2 reachable), one with IPv4 10.22.12.88, and another is 10.22.12.44. Here's one the arp record from "ip neigh sh":<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">10.22.12.88 dev bond0 lladdr f8:6e:ee:8b:cf:90 REACHABLE<br></blockquote><br>2. Both 2 hosts have some KVM virtual machines, with corresponding routes from host to vm, here's one of the routes from "ip r":<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">10.233.25.178 dev yap35caa1e88854 scope link src 10.22.12.44 </blockquote>The 10.233.25.178 is the address of a VM, and the dev yap35caa1e88854 is a tap device connecting eth0 inside the VM.<br><br>What I want to do is to build routes between these 2 hosts, in order to let VMs on host A be able to connect VMs on host B.<br><br>Hope I make myself clear.<br><br><div>So I'm using BIRD 2.0.3 on Ubuntu 16.04, with the config file as follows:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
<pre style="color:rgb(0,0,0);background:rgb(255,255,255) none repeat scroll 0% 0%"><span style="color:rgb(96,48,0)">log</span> syslog all<span style="color:rgb(128,0,128)">;</span>
router id <span style="color:rgb(0,128,0)">10.22</span><span style="color:rgb(128,128,48)">.</span><span style="color:rgb(0,128,0)">12.44</span><span style="color:rgb(128,0,128)">;</span>
protocol device <span style="color:rgb(128,0,128)">{</span>
debug <span style="color:rgb(128,0,128)">{</span> states <span style="color:rgb(128,0,128)">}</span><span style="color:rgb(128,0,128)">;</span>
scan <span style="color:rgb(96,48,0)">time</span> <span style="color:rgb(0,140,0)">2</span><span style="color:rgb(128,0,128)">;</span>
<span style="color:rgb(128,0,128)">}</span>
protocol kernel <span style="color:rgb(128,0,128)">{</span>
learn<span style="color:rgb(128,0,128)">;</span>
persist<span style="color:rgb(128,0,128)">;</span>
scan <span style="color:rgb(96,48,0)">time</span> <span style="color:rgb(0,140,0)">10</span><span style="color:rgb(128,0,128)">;</span>
ipv4 <span style="color:rgb(128,0,128)">{</span>
<span style="color:rgb(128,0,0);font-weight:bold">import</span> all<span style="color:rgb(128,0,128)">;</span>
<span style="color:rgb(128,0,0);font-weight:bold">export</span> all<span style="color:rgb(128,0,128)">;</span>
<span style="color:rgb(128,0,128)">}</span><span style="color:rgb(128,0,128)">;</span>
<span style="color:rgb(128,0,128)">}</span>
protocol bgp <span style="color:rgb(128,0,128)">{</span>
debug <span style="color:rgb(128,0,128)">{</span> states <span style="color:rgb(128,0,128)">}</span><span style="color:rgb(128,0,128)">;</span>
local as <span style="color:rgb(0,140,0)">65000</span><span style="color:rgb(128,0,128)">;</span>
neighbor <span style="color:rgb(0,128,0)">10.22</span><span style="color:rgb(128,128,48)">.</span><span style="color:rgb(0,128,0)">12.88</span> as <span style="color:rgb(0,140,0)">65000</span><span style="color:rgb(128,0,128)">;</span>
source address <span style="color:rgb(0,128,0)">10.22</span><span style="color:rgb(128,128,48)">.</span><span style="color:rgb(0,128,0)">12.44</span><span style="color:rgb(128,0,128)">;</span>
multihop<span style="color:rgb(128,0,128)">;</span>
ipv4 <span style="color:rgb(128,0,128)">{</span>
<span style="color:rgb(128,0,0);font-weight:bold">export</span> filter <span style="color:rgb(128,0,128)">{</span>
<span style="color:rgb(128,0,0);font-weight:bold">if</span> <span style="color:rgb(128,128,48)">(</span> net <span style="color:rgb(128,128,48)">~</span> <span style="color:rgb(0,128,0)">10.233</span><span style="color:rgb(128,128,48)">.</span><span style="color:rgb(0,128,0)">0.0</span><span style="color:rgb(128,128,48)">/</span><span style="color:rgb(0,140,0)">16</span> <span style="color:rgb(128,128,48)">)</span> then <span style="color:rgb(128,0,128)">{</span>
accept<span style="color:rgb(128,0,128)">;</span>
<span style="color:rgb(128,0,128)">}</span>
reject<span style="color:rgb(128,0,128)">;</span>
<span style="color:rgb(128,0,128)">}</span><span style="color:rgb(128,0,128)">;</span>
<span style="color:rgb(128,0,0);font-weight:bold">import</span> all<span style="color:rgb(128,0,128)">;</span>
next hop self on<span style="color:rgb(128,0,128)">;</span>
gateway recursive<span style="color:rgb(128,0,128)">;</span>
add paths on<span style="color:rgb(128,0,128)">;</span>
<span style="color:rgb(128,0,128)">}</span><span style="color:rgb(128,0,128)">;</span>
<span style="color:rgb(128,0,128)">}</span>
</pre>
</div></blockquote><div><br></div><div>But this doesn't work well, the peer BIRD show the info as follows:</div><div><br></div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><pre style="color:rgb(0,0,0);background:rgb(255,255,255) none repeat scroll 0% 0%">bird<span style="color:rgb(128,128,48)">></span> show route protocol bgp1
Table master4<span style="color:rgb(128,0,128)">:</span>
<span style="color:rgb(0,128,0)">10.233</span><span style="color:rgb(128,128,48)">.</span><span style="color:rgb(0,128,0)">25.178</span><span style="color:rgb(128,128,48)">/</span><span style="color:rgb(0,140,0)">32</span> unicast <span style="color:rgb(128,128,48)">[</span>bgp1 <span style="color:rgb(0,140,0)">18</span><span style="color:rgb(128,0,128)">:</span><span style="color:rgb(0,140,0)">47</span><span style="color:rgb(128,0,128)">:</span><span style="color:rgb(0,128,0)">32.910</span> from <span style="color:rgb(0,128,0)">10.22</span><span style="color:rgb(128,128,48)">.</span><span style="color:rgb(0,128,0)">12.44</span><span style="color:rgb(128,128,48)">]</span> <span style="color:rgb(128,128,48)">*</span> <span style="color:rgb(128,128,48)">(</span><span style="color:rgb(0,140,0)">100</span><span style="color:rgb(128,128,48)">/</span><span style="color:rgb(128,0,128)">?</span><span style="color:rgb(128,128,48)">)</span> <span style="color:rgb(128,128,48)">[</span>i<span style="color:rgb(128,128,48)">]</span>
via <span style="color:rgb(0,128,0)">10.22</span><span style="color:rgb(128,128,48)">.</span><span style="color:rgb(0,128,0)">12.1</span> on enp2s0f0 onlink
bird<span style="color:rgb(128,128,48)">></span> show route <span style="color:rgb(128,0,0);font-weight:bold">export</span> kernel1
Table master4<span style="color:rgb(128,0,128)">:</span>
<span style="color:rgb(0,128,0)">10.233</span><span style="color:rgb(128,128,48)">.</span><span style="color:rgb(0,128,0)">25.178</span><span style="color:rgb(128,128,48)">/</span><span style="color:rgb(0,140,0)">32</span> unicast <span style="color:rgb(128,128,48)">[</span>bgp1 <span style="color:rgb(0,140,0)">18</span><span style="color:rgb(128,0,128)">:</span><span style="color:rgb(0,140,0)">47</span><span style="color:rgb(128,0,128)">:</span><span style="color:rgb(0,128,0)">32.910</span> from <span style="color:rgb(0,128,0)">10.22</span><span style="color:rgb(128,128,48)">.</span><span style="color:rgb(0,128,0)">12.44</span><span style="color:rgb(128,128,48)">]</span> <span style="color:rgb(128,128,48)">*</span> <span style="color:rgb(128,128,48)">(</span><span style="color:rgb(0,140,0)">100</span><span style="color:rgb(128,128,48)">/</span><span style="color:rgb(128,0,128)">?</span><span style="color:rgb(128,128,48)">)</span> <span style="color:rgb(128,128,48)">[</span>i<span style="color:rgb(128,128,48)">]</span>
via <span style="color:rgb(0,128,0)">10.22</span><span style="color:rgb(128,128,48)">.</span><span style="color:rgb(0,128,0)">12.1</span> on enp2s0f0 onlink
</pre></blockquote>
<div><br></div><div>The problem happened on the gateway, I was hoping the routes should have "via 10.22.12.44" instead of "via 10.22.12.1"; <br></div><div><br></div><div>10.22.12.1 came from the host default gateway:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">default via 10.22.12.1 dev bond0 onlink </blockquote><div>But I have no idea how to prevent BIRD from using it.</div><div><br> </div><div>The other information may be helpful is included below:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
<pre style="color:rgb(0,0,0);background:rgb(255,255,255) none repeat scroll 0% 0%">bird<span style="color:rgb(128,128,48)">></span> show protocols all bgp1
Name Proto Table State Since Info
bgp1 BGP <span style="color:rgb(128,128,48)">-</span><span style="color:rgb(128,128,48)">-</span><span style="color:rgb(128,128,48)">-</span> up <span style="color:rgb(0,140,0)">18</span><span style="color:rgb(128,0,128)">:</span><span style="color:rgb(0,140,0)">28</span><span style="color:rgb(128,0,128)">:</span><span style="color:rgb(0,128,0)">46.888</span> Established
BGP state<span style="color:rgb(128,0,128)">:</span> Established
Neighbor address<span style="color:rgb(128,0,128)">:</span> <span style="color:rgb(0,128,0)">10.22</span><span style="color:rgb(128,128,48)">.</span><span style="color:rgb(0,128,0)">12.88</span>
Neighbor AS<span style="color:rgb(128,0,128)">:</span> <span style="color:rgb(0,140,0)">65000</span>
Neighbor ID<span style="color:rgb(128,0,128)">:</span> <span style="color:rgb(0,128,0)">10.22</span><span style="color:rgb(128,128,48)">.</span><span style="color:rgb(0,128,0)">12.88</span>
Local capabilities
Multiprotocol
AF announced<span style="color:rgb(128,0,128)">:</span> ipv4
Route refresh
Graceful restart
<span style="color:rgb(0,140,0)">4</span><span style="color:rgb(128,128,48)">-</span>octet AS numbers
ADD<span style="color:rgb(128,128,48)">-</span>PATH
<span style="color:rgb(227,74,220)"> RX:</span> ipv4
<span style="color:rgb(227,74,220)"> TX:</span> ipv4
<span style="color:rgb(96,48,0)">Enhanced</span> refresh
Long<span style="color:rgb(128,128,48)">-</span>lived graceful restart
Neighbor capabilities
Multiprotocol
AF announced<span style="color:rgb(128,0,128)">:</span> ipv4
Route refresh
Graceful restart
<span style="color:rgb(0,140,0)">4</span><span style="color:rgb(128,128,48)">-</span>octet AS numbers
<span style="color:rgb(96,48,0)">Enhanced</span> refresh
Long<span style="color:rgb(128,128,48)">-</span>lived graceful restart
<span style="color:rgb(227,74,220)"> Session:</span> internal multihop AS4
Source address<span style="color:rgb(128,0,128)">:</span> <span style="color:rgb(0,128,0)">10.22</span><span style="color:rgb(128,128,48)">.</span><span style="color:rgb(0,128,0)">12.44</span>
Hold timer<span style="color:rgb(128,0,128)">:</span> <span style="color:rgb(0,128,0)">117.086</span><span style="color:rgb(128,128,48)">/</span><span style="color:rgb(0,140,0)">240</span>
Keepalive timer<span style="color:rgb(128,0,128)">:</span> <span style="color:rgb(0,128,0)">52.520</span><span style="color:rgb(128,128,48)">/</span><span style="color:rgb(0,140,0)">80</span>
Channel ipv4
<span style="color:rgb(227,74,220)"> State:</span> UP
<span style="color:rgb(227,74,220)"> Table:</span> master4
<span style="color:rgb(227,74,220)"> Preference:</span> <span style="color:rgb(0,140,0)">100</span>
Input filter<span style="color:rgb(128,0,128)">:</span> ACCEPT
Output filter<span style="color:rgb(128,0,128)">:</span> <span style="color:rgb(128,128,48)">(</span>unnamed<span style="color:rgb(128,128,48)">)</span>
<span style="color:rgb(227,74,220)"> Routes:</span> <span style="color:rgb(0,140,0)">2</span> imported<span style="color:rgb(128,128,48)">,</span> <span style="color:rgb(0,140,0)">20</span> exported
Route change stats<span style="color:rgb(128,0,128)">:</span> received rejected filtered ignored accepted
Import updates<span style="color:rgb(128,0,128)">:</span> <span style="color:rgb(0,140,0)">2</span> <span style="color:rgb(0,140,0)">0</span> <span style="color:rgb(0,140,0)">0</span> <span style="color:rgb(0,140,0)">0</span> <span style="color:rgb(0,140,0)">2</span>
Import withdraws<span style="color:rgb(128,0,128)">:</span> <span style="color:rgb(0,140,0)">0</span> <span style="color:rgb(0,140,0)">0</span> <span style="color:rgb(128,128,48)">-</span><span style="color:rgb(128,128,48)">-</span><span style="color:rgb(128,128,48)">-</span> <span style="color:rgb(0,140,0)">0</span> <span style="color:rgb(0,140,0)">0</span>
Export updates<span style="color:rgb(128,0,128)">:</span> <span style="color:rgb(0,140,0)">49</span> <span style="color:rgb(0,140,0)">6</span> <span style="color:rgb(0,140,0)">23</span> <span style="color:rgb(128,128,48)">-</span><span style="color:rgb(128,128,48)">-</span><span style="color:rgb(128,128,48)">-</span> <span style="color:rgb(0,140,0)">20</span>
Export withdraws<span style="color:rgb(128,0,128)">:</span> <span style="color:rgb(0,140,0)">0</span> <span style="color:rgb(128,128,48)">-</span><span style="color:rgb(128,128,48)">-</span><span style="color:rgb(128,128,48)">-</span> <span style="color:rgb(128,128,48)">-</span><span style="color:rgb(128,128,48)">-</span><span style="color:rgb(128,128,48)">-</span> <span style="color:rgb(128,128,48)">-</span><span style="color:rgb(128,128,48)">-</span><span style="color:rgb(128,128,48)">-</span> <span style="color:rgb(0,140,0)">4</span>
BGP Next hop<span style="color:rgb(128,0,128)">:</span> <span style="color:rgb(0,128,0)">10.22</span><span style="color:rgb(128,128,48)">.</span><span style="color:rgb(0,128,0)">12.44</span>
IGP IPv4 table<span style="color:rgb(128,0,128)">:</span> master4
</pre></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
<pre style="color:rgb(0,0,0);background:rgb(255,255,255) none repeat scroll 0% 0%">bird<span style="color:rgb(128,128,48)">></span> show route <span style="color:rgb(128,0,0);font-weight:bold">export</span> bgp1
Table master4<span style="color:rgb(128,0,128)">:</span>
<span style="color:rgb(0,128,0)">10.233</span><span style="color:rgb(128,128,48)">.</span><span style="color:rgb(0,128,0)">25.178</span><span style="color:rgb(128,128,48)">/</span><span style="color:rgb(0,140,0)">32</span> unicast <span style="color:rgb(128,128,48)">[</span>kernel1 <span style="color:rgb(0,140,0)">18</span><span style="color:rgb(128,0,128)">:</span><span style="color:rgb(0,140,0)">04</span><span style="color:rgb(128,0,128)">:</span><span style="color:rgb(0,128,0)">09.483</span><span style="color:rgb(128,128,48)">]</span> <span style="color:rgb(128,128,48)">(</span><span style="color:rgb(0,140,0)">10</span><span style="color:rgb(128,128,48)">)</span>
dev yap35caa1e88854</pre></div></blockquote><div><br></div><div>Please enlighten me with some advice, and I'll appreciate that very much.</div><div><br></div><div>Thank you!<br></div></div></div>
</div></div>