BIRD router/route server functions
Quan Zhou
quanzhou822 at gmail.com
Tue Jun 5 11:07:43 CEST 2018
Please try following:
ip addr
ip route
birdc show interfaces
On Tue, Jun 5, 2018 at 4:04 PM Rae Ho (ITSC) <raeho at cuhk.edu.hk> wrote:
> are you able to ping each other from either host? ß Yes, Can Ping
>
>
>
> May I know is there any network/IGP setup first?
>
if they are directly connected or correctly routed then no prior work needs
to be done.
>
>
> Rae
>
>
>
> *From:* Bird-users <bird-users-bounces at network.cz> *On Behalf Of *Quan
> Zhou
> *Sent:* Tuesday, June 5, 2018 3:51 PM
>
>
> *Cc:* bird-users at network.cz
> *Subject:* Re: BIRD router/route server functions
>
>
>
> >> Last error: Socket: No route to host
>
>
>
> looks like the problem is not with the bird. Although it looks like both
> hosts are on the same subnet, but are you able to ping each other from
> either host?
>
>
>
> On Tue, Jun 5, 2018 at 3:19 PM Rae Ho (ITSC) <raeho at cuhk.edu.hk> wrote:
>
> Dear Quan Zhou,
>
>
>
> Thanks for your help. Rae
>
>
>
> Router1 (/etc/bird.conf)
>
>
>
> log syslog all;
>
> router id 192.168.199.12;
>
>
>
> protocol kernel {
>
> # learn; # Learn all alien routes from the kernel
>
> persist; # Don't remove routes on bird shutdown
>
> scan time 20; # Scan kernel routing table every 20
> seconds
>
> # import none; # Default is import all
>
> export all; # Default is export none
>
> # kernel table 5; # Kernel table to synchronize with
> (default: main)
>
> }
>
> protocol device {
>
> scan time 10; # Scan interfaces every 10 seconds
>
> }
>
>
>
> protocol bgp {
>
>
>
> import all;
>
> export all;
>
> local as 76543;
>
> neighbor 192.168.199.13 as 87654;
>
> }
>
>
>
> Router1 (birdc show proto all)
>
> BIRD 1.4.5 ready.
>
> name proto table state since info
>
> kernel1 Kernel master up 2018-05-18
>
> Preference: 10
>
> Input filter: ACCEPT
>
> Output filter: ACCEPT
>
> Routes: 0 imported, 0 exported, 0 preferred
>
> Route change stats: received rejected filtered ignored
> accepted
>
> Import updates: 0 0 0
> 0 0
>
> Import withdraws: 0 0 ---
> 0 0
>
> Export updates: 0 0 0
> --- 0
>
> Export withdraws: 0 --- ---
> --- 0
>
>
>
> device1 Device master up 2018-05-18
>
> Preference: 240
>
> Input filter: ACCEPT
>
> Output filter: REJECT
>
> Routes: 0 imported, 0 exported, 0 preferred
>
> Route change stats: received rejected filtered ignored
> accepted
>
> Import updates: 0 0 0
> 0 0
>
> Import withdraws: 0 0 ---
> 0 0
>
> Export updates: 0 0 0
> --- 0
>
> Export withdraws: 0 --- ---
> --- 0
>
>
>
> bgp1 BGP master start 2018-05-18 Connect Socket: No
> route to host
>
> Preference: 100
>
> Input filter: ACCEPT
>
> Output filter: ACCEPT
>
> Routes: 0 imported, 0 exported, 0 preferred
>
> Route change stats: received rejected filtered ignored
> accepted
>
> Import updates: 0 0 0
> 0 0
>
> Import withdraws: 0 0 ---
> 0 0
>
> Export updates: 0 0 0
> --- 0
>
> Export withdraws: 0 --- ---
> --- 0
>
> BGP state: Connect
>
> Neighbor address: 192.168.199.13
>
> Neighbor AS: 87654
>
> Last error: Socket: No route to host
>
>
>
>
>
> Router2 (/etc/bird.conf)
>
> log syslog all;
>
> router id 192.138.199.13;
>
>
>
> protocol kernel {
>
> # learn; # Learn all alien routes from the kernel
>
> persist; # Don't remove routes on bird shutdown
>
> scan time 20; # Scan kernel routing table every 20
> seconds
>
> # import none; # Default is import all
>
> export all; # Default is export none
>
> # kernel table 5; # Kernel table to synchronize with
> (default: main)
>
> }
>
>
>
> protocol device {
>
> scan time 10; # Scan interfaces every 10 seconds
>
> }
>
>
>
> protocol bgp {
>
> import all;
>
> export all;
>
>
>
> local as 87654;
>
> neighbor 192.168.199.12 as 76543;
>
>
>
> *Router2 (birdc show proto all)*
>
> BIRD 1.4.5 ready.
>
> name proto table state since info
>
> kernel1 Kernel master up 2018-05-18
>
> Preference: 10
>
> Input filter: ACCEPT
>
> Output filter: ACCEPT
>
> Routes: 0 imported, 0 exported, 0 preferred
>
> Route change stats: received rejected filtered ignored
> accepted
>
> Import updates: 0 0 0
> 0 0
>
> Import withdraws: 0 0 ---
> 0 0
>
> Export updates: 0 0 0
> --- 0
>
> Export withdraws: 0 --- ---
> --- 0
>
>
>
> device1 Device master up 2018-05-18
>
> Preference: 240
>
> Input filter: ACCEPT
>
> Output filter: REJECT
>
> Routes: 0 imported, 0 exported, 0 preferred
>
> Route change stats: received rejected filtered ignored
> accepted
>
> Import updates: 0 0 0
> 0 0
>
> Import withdraws: 0 0 ---
> 0 0
>
> Export updates: 0 0 0
> --- 0
>
> Export withdraws: 0 --- ---
> --- 0
>
>
>
> bgp1 BGP master start 2018-05-18 Active Socket: No
> route to host
>
> Preference: 100
>
> Input filter: ACCEPT
>
> Output filter: ACCEPT
>
> Routes: 0 imported, 0 exported, 0 preferred
>
> Route change stats: received rejected filtered ignored
> accepted
>
> Import updates: 0 0 0
> 0 0
>
> Import withdraws: 0 0 ---
> 0 0
>
> Export updates: 0 0 0
> --- 0
>
> Export withdraws: 0 --- ---
> --- 0
>
> BGP state: Active
>
> Neighbor address: 192.168.199.12
>
> Neighbor AS: 76543
>
> Start delay: 0/5
>
> Last error: Socket: No route to host
>
>
>
>
>
>
>
> *From:* Bird-users <bird-users-bounces at network.cz> *On Behalf Of *Quan
> Zhou
> *Sent:* Monday, June 4, 2018 6:01 PM
>
>
> *Cc:* bird-users at network.cz
> *Subject:* Re: BIRD router/route server functions
>
>
>
>
> It'd be more helpful you can provide your `bird.conf` and `birdc show
> proto all` if all possible.
>
>
>
> On Mon, Jun 4, 2018 at 4:54 PM Rae Ho (ITSC) <raeho at cuhk.edu.hk> wrote:
>
> Dear MO,
>
> Thank you very much for your response.
>
> Yes, I followed the sample to set up the routers but don’t why the peering
> session between them is not established.
>
>
>
> Rae
>
>
>
> *From:* mo at linx.net <mo at linx.net>
> *Sent:* Monday, June 4, 2018 4:40 PM
> *To:* Rae Ho (ITSC) <raeho at cuhk.edu.hk>
> *Cc:* bird-users at network.cz
> *Subject:* Re: BIRD router/route server functions
>
>
>
>
>
> On 4 Jun 2018, at 07:08, Rae Ho (ITSC) <raeho at cuhk.edu.hk> wrote:
>
>
>
> Dear All,
>
>
>
> I’m Rae of CUHK. We are exploring BIRD router/route server functions.
>
> Now I set up 2 BIRD routers to from BGP session between them, seems It
> can’t form the peering (in active status).
>
>
>
> Questions:
>
> 1. Is there any pre-config need to be set up? (i.e. interface?
> Internal Subnet?)
>
> 2. Would you mind sending me some sample configurations?
>
> Rae
>
>
>
>
>
> Try looking here.
>
>
>
> https://gitlab.labs.nic.cz/labs/bird/wikis/Examples
>
>
>
> Mo
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20180605/a43f0d1b/attachment.html>
More information about the Bird-users
mailing list