Puzzling behaviour from bird ospf

Ondrej Feela Filip feela at network.cz
Mon Jul 14 12:34:04 CEST 2003


On Fri, 11 Jul 2003, Harry Moyes wrote:

> Martin, List

Hello,
it sounds like a serious bug in BIRD's OSPF implementation. :-( I'm 
responsible for this area, I'll try to fix ASAP. Is there any possibility 
to have an access to you routers?

				Feela


> 
> I'm experimenting with a modest network of three linux based routers.
> Each router has an 100bT Ethernet port, and a prism based wi-fi interface
> using HostAP. All Ethernet ports connect to a common switch.
> There is also a firewall box connected to the switch, not exchanging routes
> with the network under test.
> Running RIP bird distributes routes around this network very 
> predictably. However I'm having problems with moving the
> network over to OSPF. I'm uncertain if my problems are misconfiguration,
> an external problem, or a bug in bird. I'm very much a beginner with OSPF so
> it's entirely possible that I'm missing something obvious. 
> 
> Help would be very much appreciated.
> 
> If I start up bird on the routers, a normal OSPF election takes place
> and routes are distributed as I expect. However if I leave the set up for
> a few minutes the non local routes start to disappear from the routers.
> Around the same time the non dr routers start complaining 
> 
>  22:54:08 <DBG> ShokaOSPF: Bad OSPF hello packet from 172.16.1.50 received: 
> hello interval mismatch.
> 
>  I've tried a whole string of config file settings, but the following 
> traces were  taken with the ospf settings defaulted as far as possible.
>  
>  The output from the three routers is reported below, with basic
>  interface details and a copy of the config file used on all three routers.
> 
> My mailer seems to have wrapped the longer lines in the logs. If this
> is inconvenient I can supply the same data as a plain text file.
> 
> A possibly related problem is that if I leave the routers running
> overnight, birdc is unable to connect to bird on some of the boxes.
> 
> I've not been able to determine a pattern, but AFAICT the dr is never
> showing this problem.
>  
>  Regards Harry Moyes
> 
> 
> 
> First Router output 
> **************************************************************
> 
> [root at pei root]# /usr/local/sbin/bird
> 08-10-2003 22:42:02 <INFO> Guessed router ID 172.16.1.40 according to 
> interface eth0
> [root at pei root]# /usr/local/sbin/birdc
> BIRD 1.0.6 ready.
> bird> s o n
> ShokaOSPF:
> Router ID       Pri          State      DTime   Router IP       Interface
> 172.16.1.50       1         2way/other  00:37   172.16.1.50     eth0
> 172.16.1.20       1         2way/other  00:38   172.16.1.20     eth0
> bird> s r
> 0.0.0.0/0          via 172.16.1.1 on eth0 [static1 22:42] (200)
> 127.0.0.0/8        dev lo [direct1 22:42] (240)
> 172.16.4.128/25    dev wlan0 [direct1 22:42] (240)
> 172.16.1.0/24      dev eth0 [direct1 22:42] (240)
> bird> show ospf neighbors
> ShokaOSPF:
> Router ID       Pri          State      DTime   Router IP       Interface
> 172.16.1.50       1         full/dr     00:38   172.16.1.50     eth0
> 172.16.1.20       1         full/other  00:38   172.16.1.20     eth0
> bird> show route
> 0.0.0.0/0          via 172.16.1.1 on eth0 [static1 22:42] (200)
> 127.0.0.0/8        dev lo [direct1 22:42] (240)
> 172.16.4.128/25    dev wlan0 [direct1 22:42] (240)
> 172.16.5.128/25    via 172.16.1.50 on eth0 [ShokaOSPF 22:43] I (150/20)
> 172.16.1.0/24      dev eth0 [direct1 22:42] (240)
>                    via 172.16.1.50 on eth0 [ShokaOSPF 22:43] I (150/10)
> 172.16.2.128/25    via 172.16.1.20 on eth0 [ShokaOSPF 22:43] I (150/20)
> bird> show route
> 0.0.0.0/0          via 172.16.1.1 on eth0 [static1 22:42] (200)
> 127.0.0.0/8        dev lo [direct1 22:42] (240)
> 172.16.4.128/25    dev wlan0 [direct1 22:42] (240)
> 172.16.1.0/24      dev eth0 [direct1 22:42] (240)
> bird> show ospf neighbors
> ShokaOSPF:
> Router ID       Pri          State      DTime   Router IP       Interface
> 172.16.1.50       1         init/other  00:31   172.16.1.50     eth0
> 172.16.1.20       1         init/other  00:37   172.16.1.20     eth0
> bird> show ospf neighbors
> ShokaOSPF:
> Router ID       Pri          State      DTime   Router IP       Interface
> 172.16.1.20       1         init/other  00:30   172.16.1.20     eth0
> 172.16.1.50       1         init/other  00:39   172.16.1.50     eth0
> bird> show route
> 0.0.0.0/0          via 172.16.1.1 on eth0 [static1 22:42] (200)
> 127.0.0.0/8        dev lo [direct1 22:42] (240)
> 172.16.4.128/25    dev wlan0 [direct1 22:42] (240)
> 172.16.1.0/24      dev eth0 [direct1 22:42] (240)
> bird> 08-10-2003 22:53:20 <DBG> ShokaOSPF: Bad OSPF hello packet from 
> 172.16.1.50 received: hello interval mismatch.
> 08-10-2003 22:53:41 <DBG> ShokaOSPF: Bad OSPF hello packet from 172.16.1.50 
> received: hello interval mismatch.
> 08-10-2003 22:53:50 <DBG> ShokaOSPF: Bad OSPF hello packet from 172.16.1.50 
> received: hello interval mismatch.
> 08-10-2003 22:53:59 <DBG> ShokaOSPF: Bad OSPF hello packet from 172.16.1.50 
> received: hello interval mismatch.
> 08-10-2003 22:54:08 <DBG> ShokaOSPF: Bad OSPF hello packet from 172.16.1.50 
> received: hello interval mismatch.
> bird> down
> 08-10-2003 22:54:31 <INFO> Shutting down
> 08-10-2003 22:54:31 <FATAL> System shutdown completed
> Shutdown requested
> Connection closed by server.
> [root at pei root]# route
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
> 172.16.4.128    *               255.255.255.128 U     0      0        0 wlan0
> 172.16.1.0      *               255.255.255.0   U     0      0        0 eth0
> 127.0.0.0       *               255.0.0.0       U     0      0        0 lo
> [root at pei root]# ipconfig
> -bash: ipconfig: command not found
> [root at pei root]# ifconfig
> eth0      Link encap:Ethernet  HWaddr 00:E0:4C:39:9B:3E
>           inet addr:172.16.1.40  Bcast:172.16.1.255  Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:52756 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:15041 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:100
>           RX bytes:4274234 (4.0 Mb)  TX bytes:1539181 (1.4 Mb)
>           Interrupt:10 Base address:0xcc00
> 
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:10 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:700 (700.0 b)  TX bytes:700 (700.0 b)
> 
> wlan0     Link encap:Ethernet  HWaddr 00:80:C6:E3:3F:97
>           inet addr:172.16.4.129  Bcast:172.16.4.255  Mask:255.255.255.128
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:7450175 errors:0 dropped:37 overruns:0 frame:0
>           TX packets:963 errors:299 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:100
>           RX bytes:0 (0.0 b)  TX bytes:77700 (75.8 Kb)
>           Interrupt:11 Base address:0xfcc0
> 
> 
> Second Router Output 
> **************************************************************
> 
> [root at liang root]# /usr/local/sbin/bird
> 11-07-2003 22:40:28 <INFO> Guessed router ID 172.16.1.50 according to 
> interface eth0
> [root at liang root]# /usr/local/sbin/birdc
> BIRD 1.0.6 ready.
> bird> s o n
> ShokaOSPF:
> Router ID       Pri          State      DTime   Router IP       Interface
> 172.16.1.40       1      exstart/bdr    00:40   172.16.1.40     eth0
> 172.16.1.20       1      exstart/other  00:35   172.16.1.20     eth0
> bird> s r
> 0.0.0.0/0          via 172.16.1.1 on eth0 [static1 22:40] (200)
> 127.0.0.0/8        dev lo [direct1 22:40] (240)
> 172.16.5.128/25    dev wlan0 [direct1 22:40] (240)
> 172.16.1.0/24      dev eth0 [direct1 22:40] (240)
> bird> show ospf neighbors
> ShokaOSPF:
> Router ID       Pri          State      DTime   Router IP       Interface
> 172.16.1.40       1         full/bdr    00:40   172.16.1.40     eth0
> 172.16.1.20       1         full/other  00:40   172.16.1.20     eth0
> bird> show route
> 0.0.0.0/0          via 172.16.1.1 on eth0 [static1 22:40] (200)
> 127.0.0.0/8        dev lo [direct1 22:40] (240)
> 172.16.4.128/25    via 172.16.1.40 on eth0 [ShokaOSPF 22:41] I (150/20)
> 172.16.5.128/25    dev wlan0 [direct1 22:40] (240)
> 172.16.1.0/24      dev eth0 [direct1 22:40] (240)
> 172.16.2.128/25    via 172.16.1.20 on eth0 [ShokaOSPF 22:41] I (150/20)
> bird> show route
> 0.0.0.0/0          via 172.16.1.1 on eth0 [static1 22:40] (200)
> 127.0.0.0/8        dev lo [direct1 22:40] (240)
> 172.16.5.128/25    dev wlan0 [direct1 22:40] (240)
> 172.16.1.0/24      dev eth0 [direct1 22:40] (240)
> 172.16.2.128/25    via 172.16.1.20 on eth0 [ShokaOSPF 22:41] I (150/20)
> bird> show ospf neighbors
> ShokaOSPF:
> Router ID       Pri          State      DTime   Router IP       Interface
> 172.16.1.20       1         full/bdr    00:34   172.16.1.20     eth0
> bird> show ospf neighbors
> ShokaOSPF:
> Router ID       Pri          State      DTime   Router IP       Interface
> 172.16.1.20       1         full/bdr    00:36   172.16.1.20     eth0
> bird> show route
> 0.0.0.0/0          via 172.16.1.1 on eth0 [static1 22:40] (200)
> 127.0.0.0/8        dev lo [direct1 22:40] (240)
> 172.16.5.128/25    dev wlan0 [direct1 22:40] (240)
> 172.16.1.0/24      dev eth0 [direct1 22:40] (240)
> 172.16.2.128/25    via 172.16.1.20 on eth0 [ShokaOSPF 22:41] I (150/20)
> bird> down
> 11-07-2003 22:53:00 <INFO> Shutting down
> 11-07-2003 22:53:00 <FATAL> System shutdown completed
> Shutdown requested
> Connection closed by server.
> [root at liang root]# route
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
> 172.16.5.128    *               255.255.255.128 U     0      0        0 wlan0
> 172.16.1.0      *               255.255.255.0   U     0      0        0 eth0
> 127.0.0.0       *               255.0.0.0       U     0      0        0 lo
> default         wengadi.radio.s 0.0.0.0         UG    0      0        0 eth0
> [root at liang root]# ifconfig
> eth0      Link encap:Ethernet  HWaddr 00:E0:4C:39:95:C2
>           inet addr:172.16.1.50  Bcast:172.16.1.255  Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:118002 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:21746 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:100
>           RX bytes:9554283 (9.1 Mb)  TX bytes:2112285 (2.0 Mb)
>           Interrupt:10 Base address:0xcc00
> 
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:3816 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:3816 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:182408 (178.1 Kb)  TX bytes:182408 (178.1 Kb)
> 
> wlan0     Link encap:Ethernet  HWaddr 00:80:C6:E3:1F:8B
>           inet addr:172.16.5.129  Bcast:172.16.5.255  Mask:255.255.255.128
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:1680503 errors:0 dropped:91 overruns:0 frame:0
>           TX packets:2472 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:100
>           RX bytes:0 (0.0 b)  TX bytes:265744 (259.5 Kb)
>           Interrupt:11 Base address:0xfcc0
> 
> [root at liang root]#
> 
> Third Router Output 
> *********************************************************************
> 
> 
> [root at aichen root]# /usr/local/sbin/bird
> 17-01-2003 04:43:49 <INFO> Guessed router ID 172.16.1.20 according to 
> interface eth0
> [root at aichen root]# /usr/local/sbin/birdc
> BIRD 1.0.6 ready.
> bird> s o n
> ShokaOSPF:
> Router ID       Pri          State      DTime   Router IP       Interface
> 172.16.1.40       1         2way/other  00:36   172.16.1.40     eth0
> 172.16.1.50       1         2way/other  00:38   172.16.1.50     eth0
> bird> s r
> 0.0.0.0/0          via 172.16.1.1 on eth0 [static1 04:43] (200)
> 127.0.0.0/8        dev lo [direct1 04:43] (240)
> 172.16.1.0/24      dev eth0 [direct1 04:43] (240)
> 172.16.2.128/25    dev wlan0 [direct1 04:43] (240)
> bird> show ospf neighbors
> ShokaOSPF:
> Router ID       Pri          State      DTime   Router IP       Interface
> 172.16.1.40       1      loading/bdr    00:40   172.16.1.40     eth0
> 172.16.1.50       1      exstart/dr     00:39   172.16.1.50     eth0
> bird> show route
> 0.0.0.0/0          via 172.16.1.1 on eth0 [static1 04:43] (200)
> 127.0.0.0/8        dev lo [direct1 04:43] (240)
> 172.16.1.0/24      dev eth0 [direct1 04:43] (240)
> 172.16.2.128/25    dev wlan0 [direct1 04:43] (240)
> bird> show ospf neighbors
> ShokaOSPF:
> Router ID       Pri          State      DTime   Router IP       Interface
> 172.16.1.40       1         full/bdr    00:35   172.16.1.40     eth0
> 172.16.1.50       1         full/dr     00:36   172.16.1.50     eth0
> bird> show route
> 0.0.0.0/0          via 172.16.1.1 on eth0 [static1 04:43] (200)
> 127.0.0.0/8        dev lo [direct1 04:43] (240)
> 172.16.4.128/25    via 172.16.1.40 on eth0 [ShokaOSPF 04:44] I (150/20)
> 172.16.5.128/25    via 172.16.1.50 on eth0 [ShokaOSPF 04:44] I (150/20)
> 172.16.1.0/24      dev eth0 [direct1 04:43] (240)
>                    via 172.16.1.50 on eth0 [ShokaOSPF 04:44] I (150/10)
> 172.16.2.128/25    dev wlan0 [direct1 04:43] (240)
> bird> show route
> 0.0.0.0/0          via 172.16.1.1 on eth0 [static1 04:43] (200)
> 127.0.0.0/8        dev lo [direct1 04:43] (240)
> 172.16.5.128/25    via 172.16.1.50 on eth0 [ShokaOSPF 04:44] I (150/20)
> 172.16.1.0/24      dev eth0 [direct1 04:43] (240)
>                    via 172.16.1.50 on eth0 [ShokaOSPF 04:44] I (150/10)
> 172.16.2.128/25    dev wlan0 [direct1 04:43] (240)
> bird> show ospf neighbors
> ShokaOSPF:
> Router ID       Pri          State      DTime   Router IP       Interface
> 172.16.1.50       1         full/dr     00:32   172.16.1.50     eth0
> bird> show ospf neighbors
> ShokaOSPF:
> Router ID       Pri          State      DTime   Router IP       Interface
> 172.16.1.50       1         full/dr     00:38   172.16.1.50     eth0
> bird> show route
> 0.0.0.0/0          via 172.16.1.1 on eth0 [static1 04:43] (200)
> 127.0.0.0/8        dev lo [direct1 04:43] (240)
> 172.16.5.128/25    via 172.16.1.50 on eth0 [ShokaOSPF 04:44] I (150/20)
> 172.16.1.0/24      dev eth0 [direct1 04:43] (240)
>                    via 172.16.1.50 on eth0 [ShokaOSPF 04:44] I (150/10)
> 172.16.2.128/25    dev wlan0 [direct1 04:43] (240)
> bird> 17-01-2003 04:54:59 <DBG> ShokaOSPF: Bad OSPF hello packet from 
> 172.16.1.50 received: hello interval mismatch.
> 17-01-2003 04:55:20 <DBG> ShokaOSPF: Bad OSPF hello packet from 172.16.1.50 
> received: hello interval mismatch.
> 17-01-2003 04:55:29 <DBG> ShokaOSPF: Bad OSPF hello packet from 172.16.1.50 
> received: hello interval mismatch.
> 17-01-2003 04:55:38 <DBG> ShokaOSPF: Bad OSPF hello packet from 172.16.1.50 
> received: hello interval mismatch.
> 17-01-2003 04:55:47 <DBG> ShokaOSPF: Bad OSPF hello packet from 172.16.1.50 
> received: hello interval mismatch.
> bird> down
> 17-01-2003 04:55:58 <INFO> Shutting down
> 17-01-2003 04:55:58 <FATAL> System shutdown completed
> Shutdown requested
> Connection closed by server.
> [root at aichen root]# route
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
> 172.16.2.128    *               255.255.255.128 U     0      0        0 wlan0
> 172.16.1.0      *               255.255.255.0   U     0      0        0 eth0
> 127.0.0.0       *               255.0.0.0       U     0      0        0 lo
> [root at aichen root]# ifconfig
> eth0      Link encap:Ethernet  HWaddr 00:E0:4C:39:99:77
>           inet addr:172.16.1.20  Bcast:172.16.1.255  Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:35839 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:124603 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:100
>           RX bytes:2873183 (2.7 Mb)  TX bytes:11289252 (10.7 Mb)
>           Interrupt:10 Base address:0xcc00
> 
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:10 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:700 (700.0 b)  TX bytes:700 (700.0 b)
> 
> wlan0     Link encap:Ethernet  HWaddr 00:80:C6:E3:5C:6A
>           inet addr:172.16.2.129  Bcast:172.16.2.255  Mask:255.255.255.128
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:19375 errors:0 dropped:23 overruns:0 frame:0
>           TX packets:96338 errors:157 dropped:1797 overruns:0 carrier:0
>           collisions:0 txqueuelen:100
>           RX bytes:684 (684.0 b)  TX bytes:10390378 (9.9 Mb)
>           Interrupt:11 Base address:0xfcc0
> 
> [root at aichen root]#
> 
> 
> bird.conf, same on all three routers 
> *******************************************
> 
> 
> # Configure logging
> #log syslog { debug, trace, info, remote, warning, error, auth, fatal, bug };
> log stderr all;
> #log "tmp" all;
> 
> #filter dummy_filter {
> #              accept;
> #}
> 
> #filter test_filter {
> #        if net ~ 10.0.0.0/16 then accept;
> #        else reject;
> #}
> 
> 
> # Turn on global debugging of all protocols
> #debug protocols all;
> 
> # 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.
> protocol direct {
> #	interface "-eth*", "*";	# Restrict network interfaces it works with
> }
> 
> # 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.
> protocol kernel {
> 	learn;			# Learn all alien routes from the kernel
> 	persist;		# Don't remove routes on bird shutdown
> 	scan time 20;		# Scan kernel routing table every 20 seconds
> #	import none;		# Default is import all
> #	export all;		# Default is export none
> #	kernel table 5;		# Kernel table to synchronize with (default: main)
> }
> 
> # This pseudo-protocol watches all interface up/down events.
> protocol device {
> 	scan time 10;		# Scan interfaces every 10 seconds
> }
> 
> # Static routes (again, there can be multiple instances, so that you
> # can disable/enable various groups of static routes on the fly).
> protocol static {
> #	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;
> 	route 0.0.0.0/0 via 172.16.1.1;
> #	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";
> }
> 
> # Pipe protocol connects two routing tables... Beware of loops.
> #protocol pipe {
> #	peer table testable;
> # 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 ShokaRIP {	# You can also use an explicit name
> #	preference xyzzy;
> #	debug all;
> #	port 1520;
> #	period 7;
> #	infinity 16;
> #	garbage time 60;
> #	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; };
> #}
> 
> # Please note, multiple areas still don't work.
> protocol ospf ShokaOSPF {
> #	rfc1583compat yes;
> #        import all;
> #        export all;
> 	area 0  {
> #		stub no;
> #		tick 1;
> #                networks {
> #                172.16.2.128/25;
> #                172.16.4.128/25;
> #                172.16.5.128/25;
> #                };
> 		interface "*" {
> #			hello 9;
> #			retransmit 6;
> #			cost 10;
> #			transit delay 5;
> #			dead count 5;
> #			wait 50;
> #			type broadcast;
> #			authentication simple;
> #			password "pa55";
> 		};
> 	};
> }
> #		
> #
> #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;
> #	};
> #}
> 
> 
> 




More information about the Bird-users mailing list