Problem importing routes from kernel

Tom Beecher tbeecher at localnet.com
Thu Oct 18 22:57:28 CEST 2012


Good day. I'm new to BIRD, and am having an issue that's hopefully a 
simple fix.

I'm running bird 1.2.5-1 on Debian, installed via package. My end goal 
is to use the BIRD process as a RTBH trigger via BGP.

Currently, I'm unable to get BIRD to import kernel routes into the BIRD 
process, aside from the system default route. Interaction with the 
kernel definitely works; when I peer up with my BGP neighbor, our edge 
router with public BGP routes, they import and show up in the kernel 
route table without a problem.

Here's my route table, and relevant sections of the BIRD config, and 
outputs from birdc. Thanks in advance for any assistance.

root at genericsystemsimage:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref Use Iface
172.16.100.100  *               255.255.255.255 UH    0 0        0 eth0
207.251.204.0   *               255.255.255.240 U     0 0        0 eth0
default         host-10.204-251 0.0.0.0         UG    0 0        0 eth0
root at genericsystemsimage:~#

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 all;             # Default is import all
         export all;             # Default is export none
}

protocol device {
         scan time 10;           # Scan interfaces every 10 seconds
}

protocol bgp test {
         description "Test peer";
         local as XXXX;
         neighbor A.B.C.D as XXXX;
         import none;
         export all;
}

bird> show route
0.0.0.0/0          via 207.251.204.10 on eth0 [kernel1 16:57] * (10)
bird> show protocols all
name     proto    table    state  since       info
kernel1  Kernel   master   up     16:57
   Preference:     10
   Input filter:   ACCEPT
   Output filter:  ACCEPT
   Routes:         1 imported, 0 exported, 1 preferred
   Route change stats:     received   rejected   filtered ignored   accepted
     Import updates:              1          0          0 0          1
     Import withdraws:            0          0        --- 0          0
     Export updates:              1          1          0 ---          0
     Export withdraws:            0        ---        --- ---          0

-- 
Thomas Beecher II
Senior Network Administrator
LocalNet Corp.
CoreComm Internet Services
tbeecher at localnet dot com




More information about the Bird-users mailing list