1998-11-27 20:39:16 +01:00
|
|
|
/*
|
|
|
|
* This is an example configuration file.
|
|
|
|
*/
|
|
|
|
|
2000-05-09 00:33:50 +02:00
|
|
|
# Yes, even shell-like comments work...
|
1998-11-27 20:39:16 +01:00
|
|
|
|
2000-05-09 00:33:50 +02:00
|
|
|
# Configure logging
|
|
|
|
#log syslog { debug, trace, info, remote, warning, error, auth, fatal, bug };
|
|
|
|
#log stderr all;
|
1999-12-06 14:45:56 +01:00
|
|
|
#log "tmp" all;
|
|
|
|
|
2000-05-09 00:33:50 +02:00
|
|
|
# Override router ID
|
2011-10-06 23:01:23 +02:00
|
|
|
#router id 198.51.100.1;
|
1998-11-27 22:09:57 +01:00
|
|
|
|
2000-05-09 00:33:50 +02:00
|
|
|
# You can define your own symbols...
|
2010-02-10 12:30:14 +01:00
|
|
|
#define xyzzy = (120+10);
|
|
|
|
#define '1a-a1' = (30+40);
|
1998-11-27 22:32:45 +01:00
|
|
|
|
2000-05-09 00:33:50 +02:00
|
|
|
# Define a route filter...
|
2010-04-09 17:42:39 +02:00
|
|
|
#filter test_filter {
|
|
|
|
# if net ~ 10.0.0.0/16 then accept;
|
|
|
|
# else reject;
|
|
|
|
#}
|
2000-05-09 00:33:50 +02:00
|
|
|
|
1999-03-17 15:31:26 +01:00
|
|
|
#filter sink { reject; }
|
|
|
|
#filter okay { accept; }
|
|
|
|
|
2011-09-11 21:21:47 +02:00
|
|
|
#include "filters.conf";
|
|
|
|
|
2000-05-09 00:33:50 +02:00
|
|
|
# Define another routing table
|
1999-05-17 22:14:52 +02:00
|
|
|
#table testable;
|
|
|
|
|
2000-05-09 00:33:50 +02:00
|
|
|
# Turn on global debugging of all protocols
|
|
|
|
#debug protocols all;
|
1998-11-29 23:03:58 +01:00
|
|
|
|
2015-03-02 09:41:14 +01:00
|
|
|
# Turn on internal watchdog
|
|
|
|
#watchdog warning 5 s;
|
|
|
|
#watchdog timeout 30 s;
|
|
|
|
|
2000-05-09 00:33:50 +02:00
|
|
|
# The direct protocol automatically generates device routes to
|
|
|
|
# all network interfaces. Can exist in as many instances as you wish
|
|
|
|
# if you want to populate multiple routing tables with device routes.
|
2010-04-09 17:42:39 +02:00
|
|
|
#protocol direct {
|
2000-05-09 00:33:50 +02:00
|
|
|
# interface "-eth*", "*"; # Restrict network interfaces it works with
|
2010-04-09 17:42:39 +02:00
|
|
|
#}
|
1998-12-06 18:40:42 +01:00
|
|
|
|
2000-05-09 00:33:50 +02:00
|
|
|
# This pseudo-protocol performs synchronization between BIRD's routing
|
|
|
|
# tables and the kernel. If your kernel supports multiple routing tables
|
|
|
|
# (as Linux 2.2.x does), you can run multiple instances of the kernel
|
|
|
|
# protocol and synchronize different kernel tables with different BIRD tables.
|
1998-12-06 18:40:42 +01:00
|
|
|
protocol kernel {
|
2000-05-09 00:33:50 +02:00
|
|
|
# learn; # Learn all alien routes from the kernel
|
1999-03-29 21:04:14 +02:00
|
|
|
persist; # Don't remove routes on bird shutdown
|
|
|
|
scan time 20; # Scan kernel routing table every 20 seconds
|
1999-04-05 22:15:31 +02:00
|
|
|
# import none; # Default is import all
|
|
|
|
export all; # Default is export none
|
1999-08-03 21:33:22 +02:00
|
|
|
# kernel table 5; # Kernel table to synchronize with (default: main)
|
1998-12-06 18:40:42 +01:00
|
|
|
}
|
1998-12-06 19:21:23 +01:00
|
|
|
|
2000-05-09 00:33:50 +02:00
|
|
|
# This pseudo-protocol watches all interface up/down events.
|
1999-03-26 22:44:38 +01:00
|
|
|
protocol device {
|
1999-03-29 21:04:14 +02:00
|
|
|
scan time 10; # Scan interfaces every 10 seconds
|
1999-03-26 22:44:38 +01:00
|
|
|
}
|
|
|
|
|
2000-05-09 00:33:50 +02:00
|
|
|
# Static routes (again, there can be multiple instances, so that you
|
|
|
|
# can disable/enable various groups of static routes on the fly).
|
1998-12-06 19:21:23 +01:00
|
|
|
protocol static {
|
2000-05-09 00:33:50 +02:00
|
|
|
# disabled; # Disable by default
|
|
|
|
# table testable; # Connect to a non-default table
|
|
|
|
# preference 1000; # Default preference of routes
|
|
|
|
# debug { states, routes, filters, interfaces, events, packets };
|
|
|
|
# debug all;
|
2011-10-06 23:01:23 +02:00
|
|
|
# route 0.0.0.0/0 via 198.51.100.13;
|
2012-11-27 02:08:04 +01:00
|
|
|
# route 198.51.100.0/25 unreachable;
|
|
|
|
# route 10.0.0.0/8 unreachable;
|
2011-10-06 23:01:23 +02:00
|
|
|
# route 10.1.1.0:255.255.255.0 via 198.51.100.3;
|
|
|
|
# route 10.1.2.0:255.255.255.0 via 198.51.100.3;
|
|
|
|
# route 10.1.3.0:255.255.255.0 via 198.51.100.4;
|
1999-03-29 21:04:14 +02:00
|
|
|
# route 10.2.0.0/24 via "arc0";
|
1998-12-06 19:21:23 +01:00
|
|
|
}
|
1999-08-03 21:34:26 +02:00
|
|
|
|
2000-05-09 00:33:50 +02:00
|
|
|
# Pipe protocol connects two routing tables... Beware of loops.
|
1999-08-03 21:34:26 +02:00
|
|
|
#protocol pipe {
|
|
|
|
# peer table testable;
|
2000-05-09 00:33:50 +02:00
|
|
|
# Define what routes do we export to this protocol / import from it.
|
|
|
|
# import all; # default is all
|
|
|
|
# export all; # default is none
|
|
|
|
# import none; # If you wish to disable imports
|
|
|
|
# import filter test_filter; # Use named filter
|
|
|
|
# import where source = RTS_DEVICE; # Use explicit filter
|
|
|
|
#}
|
|
|
|
|
|
|
|
# RIP aka Rest In Pieces...
|
|
|
|
#protocol rip MyRIP { # You can also use an explicit name
|
|
|
|
# preference xyzzy;
|
|
|
|
# debug all;
|
|
|
|
# port 1520;
|
|
|
|
# period 7;
|
|
|
|
# infinity 16;
|
2000-05-30 13:15:19 +02:00
|
|
|
# garbage time 60;
|
2000-05-09 00:33:50 +02:00
|
|
|
# interface "*" { mode broadcast; };
|
|
|
|
# honor neighbor; # To whom do we agree to send the routing table
|
|
|
|
# honor always;
|
|
|
|
# honor never;
|
2010-02-20 21:09:40 +01:00
|
|
|
# passwords {
|
|
|
|
# password "nazdar";
|
|
|
|
# };
|
2000-05-09 00:33:50 +02:00
|
|
|
# authentication none;
|
|
|
|
# import filter { print "importing"; accept; };
|
|
|
|
# export filter { print "exporting"; accept; };
|
|
|
|
#}
|
|
|
|
|
2000-06-05 23:09:03 +02:00
|
|
|
#protocol ospf MyOSPF {
|
2004-07-14 23:46:20 +02:00
|
|
|
# tick 2;
|
2000-06-05 23:09:03 +02:00
|
|
|
# rfc1583compat yes;
|
|
|
|
# area 0.0.0.0 {
|
|
|
|
# stub no;
|
|
|
|
# interface "eth*" {
|
|
|
|
# hello 9;
|
|
|
|
# retransmit 6;
|
|
|
|
# cost 10;
|
2004-07-16 10:01:32 +02:00
|
|
|
# transmit delay 5;
|
2000-06-05 23:09:03 +02:00
|
|
|
# dead count 5;
|
|
|
|
# wait 50;
|
|
|
|
# type broadcast;
|
2000-06-06 03:23:03 +02:00
|
|
|
# authentication simple;
|
|
|
|
# password "pass";
|
2000-06-05 23:09:03 +02:00
|
|
|
# };
|
2000-06-06 02:21:06 +02:00
|
|
|
# interface "arc0" {
|
2005-03-15 23:06:36 +01:00
|
|
|
# rx buffer large;
|
2000-06-06 02:21:06 +02:00
|
|
|
# type nonbroadcast;
|
2000-09-02 02:14:46 +02:00
|
|
|
# poll 14;
|
2005-02-20 05:27:56 +01:00
|
|
|
# dead 75;
|
2000-06-06 02:21:06 +02:00
|
|
|
# neighbors {
|
2000-09-02 02:14:46 +02:00
|
|
|
# 10.1.1.2 eligible;
|
2000-06-06 02:21:06 +02:00
|
|
|
# 10.1.1.4;
|
|
|
|
# };
|
2000-09-02 02:14:46 +02:00
|
|
|
# strict nonbroadcast yes;
|
2000-06-06 02:21:06 +02:00
|
|
|
# };
|
2005-02-12 23:27:55 +01:00
|
|
|
# interface "xxx0" {
|
|
|
|
# passwords {
|
|
|
|
# password "abc" {
|
|
|
|
# id 1;
|
|
|
|
# generate to "22-04-2003 11:00:06";
|
|
|
|
# accept to "17-01-2004 12:01:05";
|
|
|
|
# };
|
|
|
|
# password "def" {
|
|
|
|
# id 2;
|
|
|
|
# generate from "22-04-2003 11:00:07";
|
|
|
|
# accept from "17-01-2003 12:01:05";
|
|
|
|
# };
|
2010-02-20 21:09:40 +01:00
|
|
|
# };
|
2005-02-12 23:27:55 +01:00
|
|
|
# authentication cryptographic;
|
|
|
|
# };
|
2000-06-05 23:09:03 +02:00
|
|
|
# };
|
|
|
|
# area 20 {
|
|
|
|
# stub 1;
|
|
|
|
# interface "ppp1" {
|
|
|
|
# hello 8;
|
2000-06-06 03:23:03 +02:00
|
|
|
# authentication none;
|
2000-06-05 23:09:03 +02:00
|
|
|
# };
|
2004-07-14 23:46:20 +02:00
|
|
|
# interface "fr*";
|
|
|
|
# virtual link 192.168.0.1 {
|
|
|
|
# password "sdsdffsdfg";
|
|
|
|
# authentication cryptographic;
|
|
|
|
# };
|
2000-06-05 23:09:03 +02:00
|
|
|
# };
|
|
|
|
#}
|
2015-03-02 09:41:14 +01:00
|
|
|
|
2000-06-05 23:09:03 +02:00
|
|
|
|
2000-05-09 00:33:50 +02:00
|
|
|
#protocol bgp {
|
|
|
|
# disabled;
|
2010-02-20 21:09:40 +01:00
|
|
|
# description "My BGP uplink";
|
2000-05-09 00:33:50 +02:00
|
|
|
# local as 65000;
|
2011-10-06 23:01:23 +02:00
|
|
|
# neighbor 198.51.100.130 as 64496;
|
2011-04-05 11:41:18 +02:00
|
|
|
# multihop;
|
2000-05-09 00:33:50 +02:00
|
|
|
# hold time 240;
|
|
|
|
# startup hold time 240;
|
|
|
|
# connect retry time 120;
|
|
|
|
# keepalive time 80; # defaults to hold time / 3
|
|
|
|
# start delay time 5; # How long do we wait before initial connect
|
|
|
|
# error wait time 60, 300;# Minimum and maximum time we wait after an error (when consecutive
|
|
|
|
# # errors occur, we increase the delay exponentially ...
|
|
|
|
# error forget time 300; # ... until this timeout expires)
|
|
|
|
# disable after error; # Disable the protocol automatically when an error occurs
|
|
|
|
# next hop self; # Disable next hop processing and always advertise our local address as nexthop
|
|
|
|
# path metric 1; # Prefer routes with shorter paths (like Cisco does)
|
|
|
|
# default bgp_med 0; # MED value we use for comparison when none is defined
|
|
|
|
# default bgp_local_pref 0; # The same for local preference
|
2011-10-06 23:01:23 +02:00
|
|
|
# source address 198.51.100.14; # What local address we use for the TCP connection
|
2010-02-20 21:09:40 +01:00
|
|
|
# password "secret"; # Password used for MD5 authentication
|
2008-10-26 22:52:21 +01:00
|
|
|
# rr client; # I am a route reflector and the neighor is my client
|
2015-03-02 09:41:14 +01:00
|
|
|
# rr cluster id 1.0.0.1; # Use this value for cluster id instead of my router id
|
2000-05-09 00:33:50 +02:00
|
|
|
# export where source=RTS_STATIC;
|
|
|
|
# export filter {
|
|
|
|
# if source = RTS_STATIC then {
|
2010-02-20 21:09:40 +01:00
|
|
|
# bgp_community = -empty-; bgp_community = add(bgp_community,(65000,5678));
|
|
|
|
# bgp_origin = 0;
|
2000-05-09 00:33:50 +02:00
|
|
|
# bgp_community = -empty-; bgp_community.add((65000,5678));
|
2011-10-06 23:01:23 +02:00
|
|
|
# if (65000,64501) ~ bgp_community then
|
2010-02-20 21:09:40 +01:00
|
|
|
# bgp_community.add((0, 1));
|
2009-03-14 14:01:39 +01:00
|
|
|
# if bgp_path ~ [= 65000 =] then
|
2000-05-09 00:33:50 +02:00
|
|
|
# bgp_path.prepend(65000);
|
|
|
|
# accept;
|
|
|
|
# }
|
|
|
|
# reject;
|
|
|
|
# };
|
1999-08-03 21:34:26 +02:00
|
|
|
#}
|
2015-03-02 09:41:14 +01:00
|
|
|
#
|
2011-11-07 00:31:23 +01:00
|
|
|
# Template usage example
|
|
|
|
#template bgp rr_client {
|
|
|
|
# disabled;
|
|
|
|
# local as 65000;
|
|
|
|
# multihop;
|
|
|
|
# rr client;
|
|
|
|
# rr cluster id 1.0.0.1;
|
|
|
|
#}
|
|
|
|
#
|
|
|
|
#protocol bgp rr_abcd from rr_client {
|
|
|
|
# neighbor 10.1.4.7 as 65000;
|
|
|
|
#}
|