From 07c227f4fec5217ad68487e54ff2a19bb1b8d638 Mon Sep 17 00:00:00 2001 From: Jana Babovakova Date: Tue, 10 Jun 2025 17:33:07 +0200 Subject: [PATCH] Docs: keep original IPv4 data as well (to continue). --- doc/bird.sgml | 82 ++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 74 insertions(+), 8 deletions(-) diff --git a/doc/bird.sgml b/doc/bird.sgml index 87f79d918..1e216738f 100644 --- a/doc/bird.sgml +++ b/doc/bird.sgml @@ -515,6 +515,9 @@ protocol kernel { ipv6 { export all; # Default is export none }; + ipv4 { + export all; # Default is export none + }; persist; # Don't remove routes on BIRD shutdown } @@ -528,6 +531,13 @@ protocol rip ng { }; interface "*"; } + +protocol rip { + ipv4 { + import all; + export all; + }; + interface "*"; @@ -1135,6 +1145,31 @@ protocol bgp from { export filter { ... }; }; } + +template bgp { + local 198.51.100.14 as 65000; + + ipv4 { + table mytable4; + import filter { ... }; + export none; + }; + ipv6 { + table mytable6; + import filter { ... }; + export none; + }; +} + +protocol bgp from { + neighbor 198.51.100.130 as 64496; + + # IPv4 channel is inherited as-is, while IPv6 + # channel is adjusted by export filter option + ipv6 { + export filter { ... }; + }; +} @@ -1573,6 +1608,17 @@ from the command line client. An example session might look like: pavel@bug:~/bird$ ./birdc -s bird.ctl BIRD 0.0.0 ready. + +bird> show route +10.0.0.0/8 dev eth0 [direct1 23:21] (240) +195.113.30.2/32 dev tunl1 [direct1 23:21] (240) +127.0.0.0/8 dev lo [direct1 23:21] (240) +bird> show route ? +show route [] [table ] [filter ] [all] [primary]... +bird> show route filter { if 127.0.0.5 ˜ net then accept; } +127.0.0.0/8 dev lo [direct1 23:21] (240) +bird> + bird> show route Table master4: 10.0.0.0/8 unicast [direct1 23:21] (240) @@ -1662,7 +1708,8 @@ in the foot). notation (.mask(number) on values of type ip. It masks out all but first number bits from the IP address. So -