BIRD router/route server functions

Jan Maria Matejka jan.matejka at nic.cz
Thu Jun 14 13:15:47 CEST 2018


On host A, run:

nc <ip of host B> 179 <<<"any data you make out from thin air"

It should make at least a (failed) log entry on the other side. If not,
there is still something rotten in the iptables.

Are you really able to ping the other side? Don't you have more than one
interface in the same network segment? This doesn't seem to be BIRD's
problem at all, you just have somehow garbled network configuration.

If you run HTTP server on host B, are you able to connect to it directly
from A? Or any other service?

M.


On 06/14/2018 11:42 AM, Isaac HO wrote:
> the Error:  Last error:       Socket: No route to host
> 
> To added this rule on both routers' iptables:
> ACCEPT     tcp  --  192.168.199.0/24 <http://192.168.199.0/24>    
> anywhere             tcp dpt:bgp
> 
> upgrade the version
> birdc show protocols
> BIRD 1.6.4 ready.
> name     proto    table    state  since       info
> kernel1  Kernel   master   up     16:50:53   
> device1  Device   master   up     16:50:53   
> static_bgp Static   master   up     16:50:53   
> bgp1     BGP      master   start  16:50:53    Active        Socket: No
> route to host
> 
> 
> Would you please all advise?
> 
> 2018-06-12 8:51 GMT+08:00 Isaac HO <isaacho.jc at gmail.com
> <mailto:isaacho.jc at gmail.com>>:
> 
>     Seems i am using CentOS .... seems there is latest version for it.
>     Thanks  
> 
>     On Mon, 11 Jun 2018 at 23:27, Maria Jan Matějka <jan.matejka at nic.cz
>     <mailto:jan.matejka at nic.cz>> wrote:
> 
>         The last. If you don't care about new features, stay at 1.x,
>         current is 1.6.4, otherwise upgrade to 2.x where you have to
>         update also your configs quite a lot.
>         Maria
> 
> 
>         On June 11, 2018 4:41:56 PM GMT+02:00, Isaac HO
>         <isaacho.jc at gmail.com <mailto:isaacho.jc at gmail.com>> wrote:
> 
> 
>             Which version is recommended?
>             Thanks,
> 
>             On Mon, 11 Jun 2018 at 16:11, Jan Maria Matejka
>             <jan.matejka at nic.cz <mailto:jan.matejka at nic.cz>> wrote:
> 
>                 Remove the old one, install the new one, shutdown the
>                 old one, run the
>                 new one. BIRD is simple. No docker images, no upgrade
>                 procedures.
> 
>                 Maria
> 
>                 On 06/11/2018 05:35 AM, Isaac HO wrote:
>                 > Could provide me the upgrade procedure? Thanks.____
>                 >
>                 > Rae
>                 >
>                 > __ 
>                 >
>                 >
>                 > 2018-06-06 14:10 GMT+08:00 Rae Ho (ITSC)
>                 <raeho at cuhk.edu.hk <mailto:raeho at cuhk.edu.hk>
>                 > <mailto:raeho at cuhk.edu.hk <mailto:raeho at cuhk.edu.hk>>>:
>                 >
>                 >     You should also upgrade BIRD, version 1.4.5 is too
>                 old.____
>                 >
>                 >     Could provide me the upgrade procedure?____
>                 >
>                 >     __ __
>                 >
>                 >     Rae____
>                 >
>                 >     __ __
>                 >
>                 >     *From:*Rae Ho (ITSC)
>                 >     *Sent:* Wednesday, June 6, 2018 12:04 PM
>                 >     *To:* Rae Ho (ITSC) <raeho at cuhk.edu.hk
>                 <mailto:raeho at cuhk.edu.hk> <mailto:raeho at cuhk.edu.hk
>                 <mailto:raeho at cuhk.edu.hk>>>;
>                 >     Ondrej Zajicek <santiago at crfreenet.org
>                 <mailto:santiago at crfreenet.org>
>                 <mailto:santiago at crfreenet.org
>                 <mailto:santiago at crfreenet.org>>>
>                 >     *Cc:* bird-users at network.cz
>                 <mailto:bird-users at network.cz>
>                 <mailto:bird-users at network.cz
>                 <mailto:bird-users at network.cz>>
>                 >     *Subject:* RE: BIRD router/route server functions____
>                 >
>                 >     __ __
>                 >
>                 >     tcpdump -i ens160 'tcp port 179 and host
>                 192.168.199.13'____
>                 >
>                 >     tcpdump: verbose output suppressed, use -v or -vv
>                 for full protocol
>                 >     decode____
>                 >
>                 >     listening on ens160, link-type EN10MB (Ethernet),
>                 capture size 65535
>                 >     bytes____
>                 >
>                 >     11:52:14.026373 IP bird1.cuhk.edu.hk.54372 >
>                 192.168.199.13.bgp:
>                 >     Flags [S], seq 256428900, win 29200, options [mss
>                 1460,sackOK,TS val
>                 >     2230497637 ecr 0,nop,wscale 7], length 0____
>                 >
>                 >     11:52:14.401556 IP 192.168.199.13.51631 >
>                 bird1.cuhk.edu.hk.bgp:
>                 >     Flags [S], seq 3989668659, win 29200, options [mss
>                 1460,sackOK,TS
>                 >     val 2230734469 ecr 0,nop,wscale 7], length 0____
>                 >
>                 >     11:52:18.031631 IP bird1.cuhk.edu.hk.58460 >
>                 192.168.199.13.bgp:
>                 >     Flags [S], seq 3350460062, win 29200, options [mss
>                 1460,sackOK,TS
>                 >     val 2230501642 ecr 0,nop,wscale 7], length 0____
>                 >
>                 >     11:52:19.405962 IP 192.168.199.13.54429 >
>                 bird1.cuhk.edu.hk.bgp:
>                 >     Flags [S], seq 573528156, win 29200, options [mss
>                 1460,sackOK,TS val
>                 >     2230739473 ecr 0,nop,wscale 7], length 0____
>                 >
>                 >     __ __
>                 >
>                 >     tcpdump -i ens160 'tcp port 179 and host
>                 192.168.199.12'____
>                 >
>                 >     tcpdump: verbose output suppressed, use -v or -vv
>                 for full protocol
>                 >     decode____
>                 >
>                 >     listening on ens160, link-type EN10MB (Ethernet),
>                 capture size 65535
>                 >     bytes____
>                 >
>                 >     11:52:03.595665 IP 192.168.199.12.53662 >
>                 bird2.cuhk.edu.hk.bgp:
>                 >     Flags [S], seq 708312977, win 29200, options [mss
>                 1460,sackOK,TS val
>                 >     2230487710 ecr 0,nop,wscale 7], length 0____
>                 >
>                 >     11:52:03.884791 IP bird2.cuhk.edu.hk.39590 >
>                 192.168.199.12.bgp:
>                 >     Flags [S], seq 2978908357, win 29200, options [mss
>                 1460,sackOK,TS
>                 >     val 2230724456 ecr 0,nop,wscale 7], length 0____
>                 >
>                 >     11:52:07.600739 IP 192.168.199.12.54354 >
>                 bird2.cuhk.edu.hk.bgp:
>                 >     Flags [S], seq 562475138, win 29200, options [mss
>                 1460,sackOK,TS val
>                 >     2230491715 ecr 0,nop,wscale 7], length 0____
>                 >
>                 >     11:52:07.889979 IP bird2.cuhk.edu.hk.59598 >
>                 192.168.199.12.bgp:
>                 >     Flags [S], seq 2985453764, win 29200, options [mss
>                 1460,sackOK,TS
>                 >     val 2230728462 ecr 0,nop,wscale 7], length 0____
>                 >
>                 >     __ __
>                 >
>                 >     Seems the problem is domain name?____
>                 >
>                 >     __ __
>                 >
>                 >     -----Original Message-----
>                 >     From: Bird-users <bird-users-bounces at network.cz
>                 <mailto:bird-users-bounces at network.cz>
>                 >     <mailto:bird-users-bounces at network.cz
>                 <mailto:bird-users-bounces at network.cz>>> On Behalf Of
>                 Rae Ho (ITSC)
>                 >     Sent: Wednesday, June 6, 2018 11:13 AM
>                 >     To: Ondrej Zajicek <santiago at crfreenet.org
>                 <mailto:santiago at crfreenet.org>
>                 >     <mailto:santiago at crfreenet.org
>                 <mailto:santiago at crfreenet.org>>>
>                 >     Cc: bird-users at network.cz
>                 <mailto:bird-users at network.cz>
>                 <mailto:bird-users at network.cz
>                 <mailto:bird-users at network.cz>>
>                 >     Subject: RE: BIRD router/route server functions____
>                 >
>                 >     __ __
>                 >
>                 >     Last error:       Socket: No route to host <-- ____
>                 >
>                 >     __ __
>                 >
>                 >     -----Original Message-----____
>                 >
>                 >     From: Ondrej Zajicek <santiago at crfreenet.org
>                 <mailto:santiago at crfreenet.org>
>                 >     <mailto:santiago at crfreenet.org
>                 <mailto:santiago at crfreenet.org>>> ____
>                 >
>                 >     Sent: Tuesday, June 5, 2018 8:57 PM____
>                 >
>                 >     To: Rae Ho (ITSC) <raeho at cuhk.edu.hk
>                 <mailto:raeho at cuhk.edu.hk> <mailto:raeho at cuhk.edu.hk
>                 <mailto:raeho at cuhk.edu.hk>>>____
>                 >
>                 >     Cc: Quan Zhou <quanzhou822 at gmail.com
>                 <mailto:quanzhou822 at gmail.com>
>                 >     <mailto:quanzhou822 at gmail.com
>                 <mailto:quanzhou822 at gmail.com>>>; bird-users at network.cz
>                 <mailto:bird-users at network.cz>
>                 >     <mailto:bird-users at network.cz
>                 <mailto:bird-users at network.cz>>____
>                 >
>                 >     Subject: Re: BIRD router/route server functions____
>                 >
>                 >     __ __
>                 >
>                 >     On Tue, Jun 05, 2018 at 09:29:08AM +0000, Rae Ho
>                 (ITSC) wrote:____
>                 >
>                 >     > Dear Quan Zhou, Thanks. Rae____
>                 >
>                 >     __ __
>                 >
>                 >     Hi____
>                 >
>                 >     __ __
>                 >
>                 >     Your setup looks OK. You could use tcpdump on
>                 ens160 to see if there
>                 >     are BGP connection attempts in both directions.
>                 Also, is there
>                 >     anything interesting in BIRD logs?____
>                 >
>                 >     __ __
>                 >
>                 >     You should also upgrade BIRD, version 1.4.5 is too
>                 old.____
>                 >
>                 >     __ __
>                 >
>                 >     --____
>                 >
>                 >     Elen sila lumenn' omentielvo____
>                 >
>                 >     __ __
>                 >
>                 >     Ondrej 'Santiago' Zajicek (email:
>                 santiago at crfreenet.org <mailto:santiago at crfreenet.org>
>                 >     <mailto:santiago at crfreenet.org
>                 <mailto:santiago at crfreenet.org>>) OpenPGP encrypted
>                 e-mails preferred
>                 >     (KeyID 0x11DEADC3, wwwkeys.pgp.net
>                 <http://wwwkeys.pgp.net> <http://wwwkeys.pgp.net>) "To err
>                 >     is human -- to blame it on a computer is even more
>                 so."____
>                 >
>                 >     __ __
>                 >
>                 >
> 
> 
>         -- 
>         Sent from my Android device with K-9 Mail. Please excuse my brevity.
> 
> 



More information about the Bird-users mailing list