1998-11-27 19:39:16 +00:00
|
|
|
/*
|
|
|
|
* This is an example configuration file.
|
|
|
|
*/
|
|
|
|
|
2000-05-08 22:33:50 +00:00
|
|
|
# Yes, even shell-like comments work...
|
1998-11-27 19:39:16 +00:00
|
|
|
|
2000-05-08 22:33:50 +00:00
|
|
|
# Configure logging
|
|
|
|
#log syslog { debug, trace, info, remote, warning, error, auth, fatal, bug };
|
|
|
|
#log stderr all;
|
1999-12-06 13:45:56 +00:00
|
|
|
#log "tmp" all;
|
|
|
|
|
2000-05-08 22:33:50 +00:00
|
|
|
# Override router ID
|
1999-03-29 19:04:14 +00:00
|
|
|
#router id 62.168.0.1;
|
1998-11-27 21:09:57 +00:00
|
|
|
|
2000-05-08 22:33:50 +00:00
|
|
|
# You can define your own symbols...
|
1999-03-29 19:04:14 +00:00
|
|
|
#define xyzzy = 120+10;
|
1998-11-27 21:32:45 +00:00
|
|
|
|
2000-05-08 22:33:50 +00:00
|
|
|
# Define a route filter...
|
|
|
|
filter test_filter {
|
|
|
|
if net ~ 10.0.0.0/16 then accept;
|
|
|
|
else reject;
|
|
|
|
}
|
|
|
|
|
1999-03-17 14:31:26 +00:00
|
|
|
#filter sink { reject; }
|
|
|
|
#filter okay { accept; }
|
|
|
|
|
2000-05-08 22:33:50 +00:00
|
|
|
# Define another routing table
|
1999-05-17 20:14:52 +00:00
|
|
|
#table testable;
|
|
|
|
|
2000-05-08 22:33:50 +00:00
|
|
|
# Turn on global debugging of all protocols
|
|
|
|
#debug protocols all;
|
1998-11-29 22:03:58 +00:00
|
|
|
|
2000-05-08 22:33:50 +00: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.
|
1999-03-26 21:44:38 +00:00
|
|
|
protocol direct {
|
2000-05-08 22:33:50 +00:00
|
|
|
# interface "-eth*", "*"; # Restrict network interfaces it works with
|
1998-11-27 21:09:57 +00:00
|
|
|
}
|
1998-12-06 17:40:42 +00:00
|
|
|
|
2000-05-08 22:33:50 +00: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 17:40:42 +00:00
|
|
|
protocol kernel {
|
2000-05-08 22:33:50 +00:00
|
|
|
# learn; # Learn all alien routes from the kernel
|
1999-03-29 19:04:14 +00:00
|
|
|
persist; # Don't remove routes on bird shutdown
|
|
|
|
scan time 20; # Scan kernel routing table every 20 seconds
|
1999-04-05 20:15:31 +00:00
|
|
|
# import none; # Default is import all
|
|
|
|
export all; # Default is export none
|
1999-08-03 19:33:22 +00:00
|
|
|
# kernel table 5; # Kernel table to synchronize with (default: main)
|
1998-12-06 17:40:42 +00:00
|
|
|
}
|
1998-12-06 18:21:23 +00:00
|
|
|
|
2000-05-08 22:33:50 +00:00
|
|
|
# This pseudo-protocol watches all interface up/down events.
|
1999-03-26 21:44:38 +00:00
|
|
|
protocol device {
|
1999-03-29 19:04:14 +00:00
|
|
|
scan time 10; # Scan interfaces every 10 seconds
|
1999-03-26 21:44:38 +00:00
|
|
|
}
|
|
|
|
|
2000-05-08 22:33:50 +00: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 18:21:23 +00:00
|
|
|
protocol static {
|
2000-05-08 22:33:50 +00: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;
|
1999-03-29 19:04:14 +00:00
|
|
|
# route 0.0.0.0/0 via 62.168.0.13;
|
|
|
|
# route 62.168.0.0/25 reject;
|
|
|
|
# route 10.0.0.0/8 reject;
|
|
|
|
# route 10.1.1.0:255.255.255.0 via 62.168.0.3;
|
|
|
|
# route 10.1.2.0:255.255.255.0 via 62.168.0.3;
|
|
|
|
# route 10.1.3.0:255.255.255.0 via 62.168.0.4;
|
|
|
|
# route 10.2.0.0/24 via "arc0";
|
1998-12-06 18:21:23 +00:00
|
|
|
}
|
1999-08-03 19:34:26 +00:00
|
|
|
|
2000-05-08 22:33:50 +00:00
|
|
|
# Pipe protocol connects two routing tables... Beware of loops.
|
1999-08-03 19:34:26 +00:00
|
|
|
#protocol pipe {
|
|
|
|
# peer table testable;
|
2000-05-08 22:33:50 +00: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 11:15:19 +00:00
|
|
|
# garbage time 60;
|
2000-05-08 22:33:50 +00:00
|
|
|
# interface "*" { mode broadcast; };
|
|
|
|
# honor neighbor; # To whom do we agree to send the routing table
|
|
|
|
# honor always;
|
|
|
|
# honor never;
|
|
|
|
# passwords { password "ahoj" from 0 to 10;
|
|
|
|
# password "nazdar" from 10;
|
|
|
|
# }
|
|
|
|
# authentication none;
|
|
|
|
# import filter { print "importing"; accept; };
|
|
|
|
# export filter { print "exporting"; accept; };
|
|
|
|
#}
|
|
|
|
|
2000-06-05 21:09:03 +00:00
|
|
|
# Please note, multiple areas still don't work.
|
|
|
|
#protocol ospf MyOSPF {
|
|
|
|
# rfc1583compat yes;
|
|
|
|
# area 0.0.0.0 {
|
|
|
|
# stub no;
|
|
|
|
# tick 1;
|
|
|
|
# interface "eth*" {
|
|
|
|
# hello 9;
|
|
|
|
# retransmit 6;
|
|
|
|
# cost 10;
|
|
|
|
# transit delay 5;
|
|
|
|
# dead count 5;
|
|
|
|
# wait 50;
|
|
|
|
# type broadcast;
|
|
|
|
# };
|
2000-06-06 00:21:06 +00:00
|
|
|
# interface "arc0" {
|
|
|
|
# type nonbroadcast;
|
|
|
|
# neighbors {
|
|
|
|
# 10.1.1.2;
|
|
|
|
# 10.1.1.4;
|
|
|
|
# };
|
|
|
|
# };
|
2000-06-05 21:09:03 +00:00
|
|
|
# };
|
|
|
|
# area 20 {
|
|
|
|
# stub 1;
|
|
|
|
# interface "ppp1" {
|
|
|
|
# hello 8;
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
#}
|
|
|
|
|
|
|
|
|
2000-05-08 22:33:50 +00:00
|
|
|
#protocol bgp {
|
|
|
|
# disabled;
|
|
|
|
# local as 65000;
|
|
|
|
# neighbor 62.168.0.130 as 5588;
|
|
|
|
# multihop 20 via 62.168.0.13;
|
|
|
|
# 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
|
|
|
|
# source address 62.168.0.14; # What local address we use for the TCP connection
|
|
|
|
# export where source=RTS_STATIC;
|
|
|
|
# export filter {
|
|
|
|
# if source = RTS_STATIC then {
|
|
|
|
## bgp_community = -empty-; bgp_community = add(bgp_community,(65000,5678));
|
|
|
|
## bgp_origin = 0;
|
|
|
|
# bgp_community = -empty-; bgp_community.add((65000,5678));
|
|
|
|
## if (65000,5678) ~ bgp_community then
|
|
|
|
## bgp_community.add((0, 1));
|
|
|
|
# if bgp_path ~ / 65000 / then
|
|
|
|
# bgp_path.prepend(65000);
|
|
|
|
# accept;
|
|
|
|
# }
|
|
|
|
# reject;
|
|
|
|
# };
|
1999-08-03 19:34:26 +00:00
|
|
|
#}
|