From 71ca77169d5d3e67459e46841b8bdb95accd8c2a Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Wed, 13 Apr 2011 12:32:27 +0200 Subject: Adds support for several Linux kernel route attributes. --- doc/bird.sgml | 35 +++++++++++++++++++++++++++++------ 1 file changed, 29 insertions(+), 6 deletions(-) (limited to 'doc') diff --git a/doc/bird.sgml b/doc/bird.sgml index 5859c77..86f4c50 100644 --- a/doc/bird.sgml +++ b/doc/bird.sgml @@ -1420,12 +1420,20 @@ device routes from BIRD tables to kernel routing tables is restricted to prevent accidental interference. This restriction can be disabled using 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; such an OS is for example Linux 2.2), 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 +

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; such an OS is for example +Linux), 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. +

Because the kernel protocol is partially integrated with the +connected routing table, there are two limitations - it is not +possible to connect more kernel protocols to the same routing table +and changing route attributes (even the kernel ones) in an export +filter of a kernel protocol does not work. Both limitations can be +overcome using another routing table and the pipe protocol. + Configuration

@@ -1450,12 +1458,27 @@ kernel table. only on systems supporting multiple routing tables. -

The Kernel protocol doesn't define any route attributes. +Attributes + +

The Kernel protocol defines several attributes. These attributes +are translated to appropriate system (and OS-specific) route attributes. +We support these attributes: + + + ip (Linux) The preferred source address. + Used in source address selection for outgoing packets. Have to + be one of IP addresses of the router. + + int (Linux) The realm of the route. Can be + used for traffic classification. + + +Example +

A simple configuration can look this way:

protocol kernel { - import all; export all; } -- cgit v1.2.3