source: packages/net/bird/files/bird6.conf @ 20780

Last change on this file since 20780 was 20780, checked in by florian, 7 years ago

[package] add package for BIRD Internet Routing Daemon

Here is the patch that adds a package for The BIRD Internet Routing
Daemon. It is updated to the current version of BIRD (v 1.2.2).

BIRD is an internet routing daemon that implements OSPF, RIP and BGP.
It is fast, lightweight and small (cca 300 kB), therefore ideal for
OpenWRT based routers.

The makefile is rather tricky, as BIRD have to be built two times (for
IPv4 and IPv6 versions) and there are separate packages for BIRD daemon
and BIRD client, because client depends on libreadline and is not
strictly necessary.

Signed-off-by: Ondrej Zajicek <santiago@…>

File size: 3.2 KB
Line 
1
2# THIS CONFIG FILE IS NOT A COMPLETE DOCUMENTATION
3# PLEASE LOOK IN THE BIRD DOCUMENTATION FOR MORE INFO
4
5# However, most of options used here are just for example
6# and will be removed in real-life configs.
7
8log syslog all;
9
10# Override router ID
11#router id 192.168.0.1;
12
13# Turn on global debugging of all protocols
14#debug protocols all;
15
16
17# Define a route filter...
18# filter test_filter {
19#       if net ~ 10.0.0.0/16 then accept;
20#       else reject;
21# }
22
23# The direct protocol automatically generates device routes to all network
24# interfaces. Can exist in as many instances as you wish if you want to
25# populate multiple routing tables with device routes. Because device routes
26# are handled by Linux kernel, this protocol is  usually not needed.
27# protocol direct {
28#       interface "*";  # Restrict network interfaces it works with
29# }
30
31# This pseudo-protocol performs synchronization between BIRD's routing
32# tables and the kernel. You can run multiple instances of the kernel
33# protocol and synchronize different kernel tables with different BIRD tables.
34protocol kernel {
35#       learn;                  # Learn all alien routes from the kernel
36#       persist;                # Don't remove routes on bird shutdown
37        scan time 20;           # Scan kernel routing table every 20 seconds
38#       import none;            # Default is import all
39#       export all;             # Default is export none
40}
41
42# This pseudo-protocol watches all interface up/down events.
43protocol device {
44        scan time 10;           # Scan interfaces every 10 seconds
45}
46
47# Static routes (again, there can be multiple instances, so that you
48# can disable/enable various groups of static routes on the fly).
49protocol static {
50#       export all;             # Default is export none
51#       route 0.0.0.0/0 via 62.168.0.13;
52#       route 10.0.0.0/8 reject;
53#       route 192.168.0.0/16 reject;
54}
55
56
57#protocol rip {
58#       disabled;
59#       import all;
60#       export all;
61#       export filter test_filter;
62
63#       port 1520;
64#       period 7;
65#       infinity 16;
66#       garbage time 60;
67#       interface "*" { mode broadcast; };
68#       honor neighbor;
69#       honor always;
70#       honor never;
71#       authentication none;
72#}
73
74
75#protocol ospf {
76#       disabled;
77#       import all;
78#       export all;
79#       export where source = RTS_STATIC;
80
81#       area 0 {
82#               interface "eth*" {
83#                       cost 10;
84#                       hello 3;
85#                       retransmit 2;
86#                       wait 5;
87#                       dead 20;
88#                       type broadcast;
89#                       authentication simple;
90#                       password "pass";
91#               };
92#       };
93#}
94
95
96#protocol bgp {
97#       disabled;
98#       import all;
99#       export all;
100#       export where source = RTS_STATIC;
101
102#       local as 65000;
103#       neighbor 192.168.1.1 as 65001;
104#       multihop 20 via 192.168.2.1;
105
106#       hold time 240;
107#       startup hold time 240;
108#       connect retry time 120;
109#       keepalive time 80;      # defaults to hold time / 3
110#       start delay time 5;     # How long do we wait before initial connect
111#       error wait time 60, 300;# Minimum and maximum time we wait after an error (when consecutive
112#                               # errors occur, we increase the delay exponentially ...
113#       error forget time 300;  # ... until this timeout expires)
114#       disable after error;    # Disable the protocol automatically when an error occurs
115#       next hop self;          # Disable next hop processing and always advertise our local address as nexthop
116#       source address 62.168.0.14;     # What local address we use for the TCP connection
117#       password "secret"       # Password used for MD5 authentication
118#       rr client;              # I am a route reflector and the neighor is my client
119#       rr cluster id 1.0.0.1   # Use this value for cluster id instead of my router id
120#       };
121#}
Note: See TracBrowser for help on using the repository browser.