An issue with bgp connection

Roman Petrov melkor at
Mon Oct 24 15:12:03 CEST 2005

I'm trying to use BIRD in the following test configuration.
I have BIRD installed on two PC's, which I would like
to act as BGProuters
Here's the essential configuration

router id;
protocol direct { }
protocol kernel {
        scan time 20;
        import all;
        export all;
protocol static {
        route via;
        route via;
protocol bgp {
        local as 65000;
        neighbor as 65000;
        hold time 240;
        startup hold time 240;
        connect retry time 120;
        keepalive time 80;
        start delay time 5;
        error wait time 60, 300;
        error forget time 300;
        source address;
        export where source=RTS_STATIC;
        export filter {
                if source = RTS_STATIC then {
                        if net= then accept;
The same config is for except for their ip adresses,
and net in static protocol

But I found out that they don't want to "talk" to each other.
In the log file I get
Oct 23 21:19:28 exa bird: bgp1: Connecting to from local address
Oct 23 21:19:28 exa bird: bgp1: Connection lost (Invalid argument)

And when I'm trying to tcpdump the session I see that it's reseted
0exa~(4)#tcpdump -npi fxp0 host
tcpdump: listening on fxp0
21:41:19.565453 > S 193123830:193123830(0) win 57344 <mss 1460,nop,wscale
+0,nop,nop,timestamp 32626065 0> (DF) [tos 0xc0]  [ttl 1]
21:41:19.565647 > R 0:0(0) ack 193123831 win 0 (DF) [tos 0xc0]

Neither I see a listening socket on port 179 on each machine.
When I use sockstat I see that when bgp1 is enabled there is a socket,
but it's listening on a random port.

Can you please tell me, what I'm missing?

Thanks for reading this.

	Roman Petrov

More information about the Bird-users mailing list