<div dir="ltr">Hi Keenan and Ondrej,<div><br></div><div>I already update the configuration as your advice but the still couldn't be established, here is the new configuration:</div><div><br></div><div>Router A</div><div><br></div><div><div><br></div><div>protocol ospf {</div><div> router id 10.8.60.1;</div><div> debug all;</div><div> import filter ospf_in_routerb;</div><div> export filter ospf_out_routerb;</div><div> area 0 {</div><div> interface "bge0" {</div><div> cost 5;</div><div> hello 10; retransmit 2; wait 10; dead 40;</div><div> type broadcast;</div><div> };</div><div> interface "*" {</div><div> cost 1000;</div><div> stub;</div><div> };</div><div> };</div><div>}</div></div><div><br></div><div><div>Router B</div><div>protocol ospf {</div><div> router id 10.8.60.2;</div><div> debug all;</div><div> import filter ospf_in_routera;</div><div> export filter ospf_in_routera;</div><div> area 0 {</div><div> interface "bge0" {</div><div> cost 5;</div><div> hello 10; retransmit 2; wait 10; dead 40;</div><div> };</div><div> interface "*" {</div><div> cost 1000;</div><div> stub;</div><div> };</div><div> };</div><div>}</div></div><div><br></div><div><br></div><div><div>2016-12-31 10:44:51 <TRACE> ospf1: HELLO packet sent via bge0</div><div>2016-12-31 10:44:51 <ERR> ospf1: Socket error on bge0: Invalid argument</div></div><div><br></div><div>How to debug this instance in a deep level?</div><div><br></div><div>Thank you</div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><br><br>
Best regards,<br>David S.<br>
------------------------------------------------<br><div style="font-size:small"><div><div dir="ltr"><div dir="ltr">e. <a href="mailto:david@zeromail.us" style="color:rgb(17,85,204)" target="_blank">david@zeromail.us</a><br>w. <a href="http://pnyet.web.id/" style="color:rgb(17,85,204)" target="_blank">pnyet.web.id</a></div></div></div></div><span style="font-size:small">p. 087881216110</span><br></div></div></div></div></div></div>
<br><div class="gmail_quote">On Sat, Dec 31, 2016 at 9:19 AM, Ondrej Zajicek <span dir="ltr"><<a href="mailto:santiago@crfreenet.org" target="_blank">santiago@crfreenet.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Sat, Dec 31, 2016 at 08:00:58AM +0700, David S. wrote:<br>
> Dear All,<br>
><br>
> I have trouble to establish ospf on BIRD 1.6.3 using FreeBSD 11 amd64, here<br>
> is my topology and BIRD configuration:<br>
><br>
> router-a ------ router-b (directly connected use cat6)<br>
><br>
> router-a: <a href="http://10.22.40.17/30" rel="noreferrer" target="_blank">10.22.40.17/30</a><br>
> router-b: <a href="http://10.22.40.18/30" rel="noreferrer" target="_blank">10.22.40.18/30</a><br>
<br>
</span>Hi<br>
<span class=""><br>
> bird.conf in router-a<br>
><br>
> router id 10.5.16.1;<br>
> debug all;<br>
> import filter ospf_in_routerb;<br>
> export filter ospf_out_routerb;<br>
> tick 2;<br>
<br>
</span>Why tick 2?<br>
<span class=""><br>
> area 0 {<br>
> interface "bge0" {<br>
> stub;<br>
<br>
</span>There should not be 'stub' if the interface is supposed to be active.<br>
<br>
> networks {<br>
> <a href="http://103.22.40.16/30" rel="noreferrer" target="_blank">103.22.40.16/30</a>;<br>
> };<br>
<br>
'networks' is irrelevant unless you have multiple areas.<br>
<span class=""><br>
> interface "*" {<br>
> cost 1000;<br>
> stub;<br>
> };<br>
> };<br>
> }<br>
><br>
><br>
> I found the following error message from bird.log:<br>
><br>
> 2016-12-31 07:52:38 <ERR> ospf1: Socket error on bge0: Invalid argument<br>
> 2016-12-31 07:52:43 <ERR> ospf1: Socket error on bge0: Invalid argument<br>
> 2016-12-31 07:52:48 <ERR> ospf1: Socket error on bge0: Invalid argument<br>
<br>
</span>It is interesting what causes socket error if the interface is declared<br>
to be stub.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Elen sila lumenn' omentielvo<br>
<br>
Ondrej 'Santiago' Zajicek (email: <a href="mailto:santiago@crfreenet.org">santiago@crfreenet.org</a>)<br>
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, <a href="http://wwwkeys.pgp.net" rel="noreferrer" target="_blank">wwwkeys.pgp.net</a>)<br>
"To err is human -- to blame it on a computer is even more so."<br>
</font></span></blockquote></div><br></div>