diff --git a/doc/bird.sgml b/doc/bird.sgml index de8acb48..ca7af0ec 100644 --- a/doc/bird.sgml +++ b/doc/bird.sgml @@ -516,6 +516,63 @@ protocol direct { Kernel +

The Kernel protocol is not a real routing protocol. Instead of communicating +with other routers in the network, it performs synchronization of BIRD's routing +tables with OS kernel. Basically, it sends all routing table updates to the kernel +and from time to time it scans the kernel tables to see whether some routes have +disappeared (for example due to unnoticed up/down transition of an interface) +or whether an `alien' route has been added by someone else. + +

If your OS supports only a single routing table, you can configure only one +instance of the Kernel protocol. If it supports multiple tables (in order to +allow policy routing), you can run as many instances as you want, but each of +them must be connected to a different BIRD routing table and to a different +kernel table. + +Configuration + +

+ persist Tell BIRD to leave all its routes in the + routing tables when it exits instead of cleaning them up. + scan time Time in seconds between two scans of the + kernel routing table. + learn Enable learning of routes added to the kernel + routing tables by other routing daemons or by the system administrator. + This is possible only on systems which support identification of route + authorship. + kernel table Select which kernel table should + this particular instance of the Kernel protocol work with. Available + only on systems supporting multiple routing tables. + + +

A default simple configuration can look this way: + +

+protocol kernel { + import all; + export all; +} + + +

Or for a system with two routing tables: + +

+protocol kernel { # Primary routing table + learn; # Learn alien routes from the kernel + persist; # Don't remove routes on bird shutdown + scan time 10; # Scan kernel routing table every 10 seconds + import all; + export all; +} + +protocol kernel { # Secondary routing table + table auxtable; + kernel table 100; + export all; + + +

The Kernel protocol doesn't define any route attributes. + OSPF Pipe @@ -622,7 +679,7 @@ protocol rip MyRIP_test { Static -

The static protocol doesn't communicate with other routers in the network, +

The Static protocol doesn't communicate with other routers in the network, but instead it allows you to define routes manually which is often used for specifying how to forward packets to parts of the network which don't use dynamic routing at all and also for defining sink routes (i.e., those