Hello,
I have just switched to quagga-0.96.4-20040329 on one of my routers (r1
- XXX.YYY.210.1). After a while I decided to add one more bgp peer (to
r9 - XXX.YYY.210.9). Unfortunately, routers were not able setup bgp
session. Router with new quagga (r1) logged such strange message:
2004/03/29 14:06:51 BGP: bgp_connect_success peer's fd is negative value -1
There were no problem with setting up bgp sessions from r9 to other
routers: r2 (zebra-0.95-pre1) and r3 (cisco 12.2). I solved this
problem with r1 by switching to old bgpd from quagga-20031108.
Full logs:
From r9:
2004/03/29 14:06:51 BGP: XXX.YYY.210.1 [FSM] Timer (start timer expire).
2004/03/29 14:06:51 BGP: XXX.YYY.210.1 [FSM] BGP_Start (Idle->Connect)
2004/03/29 14:06:51 BGP: XXX.YYY.210.1 [Event] Connect start to XXX.YYY.210.1 fd 12
2004/03/29 14:06:51 BGP: XXX.YYY.210.1 [FSM] Non blocking connect waiting result
2004/03/29 14:06:51 BGP: XXX.YYY.210.1 [FSM] TCP_connection_open (Connect->OpenSent)
2004/03/29 14:08:14 BGP: [Event] BGP connection from host XXX.YYY.210.1
2004/03/29 14:08:14 BGP: XXX.YYY.210.1 [FSM] TCP_connection_open (OpenSent->Idle)
2004/03/29 14:08:18 BGP: XXX.YYY.210.1 [FSM] Timer (start timer expire).
2004/03/29 14:08:18 BGP: XXX.YYY.210.1 [FSM] BGP_Start (Idle->Connect)
2004/03/29 14:08:18 BGP: XXX.YYY.210.1 [Event] Connect start to XXX.YYY.210.1 fd 12
2004/03/29 14:08:18 BGP: XXX.YYY.210.1 [FSM] Non blocking connect waiting result
2004/03/29 14:08:18 BGP: XXX.YYY.210.1 [FSM] TCP_connection_open (Connect->OpenSent)
2004/03/29 14:08:18 BGP: XXX.YYY.210.1 [Error] bgp_read_packet error: Connection reset by peer
2004/03/29 14:08:18 BGP: XXX.YYY.210.1 [FSM] TCP_fatal_error (OpenSent->Idle)
2004/03/29 14:08:19 BGP: [Event] BGP connection from host XXX.YYY.210.1
2004/03/29 14:08:19 BGP: [Event] BGP connection IP address XXX.YYY.210.1 is Idle state
2004/03/29 14:08:22 BGP: XXX.YYY.210.1 [FSM] Timer (start timer expire).
2004/03/29 14:08:22 BGP: XXX.YYY.210.1 [FSM] BGP_Start (Idle->Connect)
2004/03/29 14:08:22 BGP: XXX.YYY.210.1 [Event] Connect start to XXX.YYY.210.1 fd 12
2004/03/29 14:08:22 BGP: XXX.YYY.210.1 [FSM] Non blocking connect waiting result
2004/03/29 14:08:22 BGP: XXX.YYY.210.1 [FSM] TCP_connection_open (Connect->OpenSent)
2004/03/29 14:08:22 BGP: XXX.YYY.210.1 [Error] bgp_read_packet error: Connection reset by peer
2004/03/29 14:08:22 BGP: XXX.YYY.210.1 [FSM] TCP_fatal_error (OpenSent->Idle)
2004/03/29 14:08:24 BGP: [Event] BGP connection from host XXX.YYY.210.1
2004/03/29 14:08:24 BGP: [Event] BGP connection IP address XXX.YYY.210.1 is Idle state
2004/03/29 14:08:28 BGP: [Event] BGP connection from host XXX.YYY.210.1
2004/03/29 14:08:28 BGP: [Event] BGP connection IP address XXX.YYY.210.1 is Idle state
2004/03/29 14:08:29 BGP: XXX.YYY.210.1 [FSM] Timer (start timer expire).
2004/03/29 14:08:29 BGP: XXX.YYY.210.1 [FSM] BGP_Start (Idle->Connect)
2004/03/29 14:08:29 BGP: XXX.YYY.210.1 [Event] Connect start to XXX.YYY.210.1 fd 12
2004/03/29 14:08:29 BGP: XXX.YYY.210.1 [FSM] Non blocking connect waiting result
2004/03/29 14:08:29 BGP: XXX.YYY.210.1 [FSM] TCP_connection_open (Connect->OpenSent)
From r1:
2004/03/29 14:06:15 BGP: XXX.YYY.210.9 [Event] Connect start to XXX.YYY.210.9 fd 23
2004/03/29 14:06:15 BGP: XXX.YYY.210.9 [Event] Connect failed (Operation now in progress)
2004/03/29 14:06:51 BGP: [Event] BGP connection from host XXX.YYY.210.9
2004/03/29 14:06:51 BGP: bgp_connect_success peer's fd is negative value -1
2004/03/29 14:08:15 BGP: XXX.YYY.210.9 [Event] Connect start to XXX.YYY.210.9 fd 25
2004/03/29 14:08:15 BGP: XXX.YYY.210.9 [Error] bgp_read_packet error: Connection reset by peer
2004/03/29 14:08:19 BGP: [Event] BGP connection from host XXX.YYY.210.9
2004/03/29 14:08:19 BGP: [Event] BGP connection IP address XXX.YYY.210.9 is Idle state
2004/03/29 14:08:20 BGP: XXX.YYY.210.9 [Event] Connect start to XXX.YYY.210.9 fd 23
2004/03/29 14:08:20 BGP: XXX.YYY.210.9 [Error] bgp_read_packet error: Connection reset by peer
2004/03/29 14:08:23 BGP: [Event] BGP connection from host XXX.YYY.210.9
2004/03/29 14:08:23 BGP: [Event] BGP connection IP address XXX.YYY.210.9 is Idle state
2004/03/29 14:08:25 BGP: XXX.YYY.210.9 [Event] Connect start to XXX.YYY.210.9 fd 23
2004/03/29 14:08:25 BGP: XXX.YYY.210.9 [Error] bgp_read_packet error: Connection reset by peer
2004/03/29 14:08:29 BGP: XXX.YYY.210.9 [Event] Connect start to XXX.YYY.210.9 fd 23
2004/03/29 14:08:29 BGP: XXX.YYY.210.9 [Event] BGP connection closed fd 23
2004/03/29 14:08:30 BGP: [Event] BGP connection from host XXX.YYY.210.9
2004/03/29 14:08:30 BGP: bgp_connect_success peer's fd is negative value -1
r9 config:
log file /var/log/zebra/bgpd.log
router bgp MMMMM
bgp router-id 195.177.210.9
neighbor XXX.YYY.210.1 remote-as NNNNN
neighbor XXX.YYY.210.1 soft-reconfiguration inbound
debug bgp events
debug bgp filters
debug bgp fsm
debug bgp keepalives
debug bgp updates
Best regards,
Krzysztof Olêdzki
I have just switched to quagga-0.96.4-20040329 on one of my routers (r1
- XXX.YYY.210.1). After a while I decided to add one more bgp peer (to
r9 - XXX.YYY.210.9). Unfortunately, routers were not able setup bgp
session. Router with new quagga (r1) logged such strange message:
2004/03/29 14:06:51 BGP: bgp_connect_success peer's fd is negative value -1
There were no problem with setting up bgp sessions from r9 to other
routers: r2 (zebra-0.95-pre1) and r3 (cisco 12.2). I solved this
problem with r1 by switching to old bgpd from quagga-20031108.
Full logs:
From r9:
2004/03/29 14:06:51 BGP: XXX.YYY.210.1 [FSM] Timer (start timer expire).
2004/03/29 14:06:51 BGP: XXX.YYY.210.1 [FSM] BGP_Start (Idle->Connect)
2004/03/29 14:06:51 BGP: XXX.YYY.210.1 [Event] Connect start to XXX.YYY.210.1 fd 12
2004/03/29 14:06:51 BGP: XXX.YYY.210.1 [FSM] Non blocking connect waiting result
2004/03/29 14:06:51 BGP: XXX.YYY.210.1 [FSM] TCP_connection_open (Connect->OpenSent)
2004/03/29 14:08:14 BGP: [Event] BGP connection from host XXX.YYY.210.1
2004/03/29 14:08:14 BGP: XXX.YYY.210.1 [FSM] TCP_connection_open (OpenSent->Idle)
2004/03/29 14:08:18 BGP: XXX.YYY.210.1 [FSM] Timer (start timer expire).
2004/03/29 14:08:18 BGP: XXX.YYY.210.1 [FSM] BGP_Start (Idle->Connect)
2004/03/29 14:08:18 BGP: XXX.YYY.210.1 [Event] Connect start to XXX.YYY.210.1 fd 12
2004/03/29 14:08:18 BGP: XXX.YYY.210.1 [FSM] Non blocking connect waiting result
2004/03/29 14:08:18 BGP: XXX.YYY.210.1 [FSM] TCP_connection_open (Connect->OpenSent)
2004/03/29 14:08:18 BGP: XXX.YYY.210.1 [Error] bgp_read_packet error: Connection reset by peer
2004/03/29 14:08:18 BGP: XXX.YYY.210.1 [FSM] TCP_fatal_error (OpenSent->Idle)
2004/03/29 14:08:19 BGP: [Event] BGP connection from host XXX.YYY.210.1
2004/03/29 14:08:19 BGP: [Event] BGP connection IP address XXX.YYY.210.1 is Idle state
2004/03/29 14:08:22 BGP: XXX.YYY.210.1 [FSM] Timer (start timer expire).
2004/03/29 14:08:22 BGP: XXX.YYY.210.1 [FSM] BGP_Start (Idle->Connect)
2004/03/29 14:08:22 BGP: XXX.YYY.210.1 [Event] Connect start to XXX.YYY.210.1 fd 12
2004/03/29 14:08:22 BGP: XXX.YYY.210.1 [FSM] Non blocking connect waiting result
2004/03/29 14:08:22 BGP: XXX.YYY.210.1 [FSM] TCP_connection_open (Connect->OpenSent)
2004/03/29 14:08:22 BGP: XXX.YYY.210.1 [Error] bgp_read_packet error: Connection reset by peer
2004/03/29 14:08:22 BGP: XXX.YYY.210.1 [FSM] TCP_fatal_error (OpenSent->Idle)
2004/03/29 14:08:24 BGP: [Event] BGP connection from host XXX.YYY.210.1
2004/03/29 14:08:24 BGP: [Event] BGP connection IP address XXX.YYY.210.1 is Idle state
2004/03/29 14:08:28 BGP: [Event] BGP connection from host XXX.YYY.210.1
2004/03/29 14:08:28 BGP: [Event] BGP connection IP address XXX.YYY.210.1 is Idle state
2004/03/29 14:08:29 BGP: XXX.YYY.210.1 [FSM] Timer (start timer expire).
2004/03/29 14:08:29 BGP: XXX.YYY.210.1 [FSM] BGP_Start (Idle->Connect)
2004/03/29 14:08:29 BGP: XXX.YYY.210.1 [Event] Connect start to XXX.YYY.210.1 fd 12
2004/03/29 14:08:29 BGP: XXX.YYY.210.1 [FSM] Non blocking connect waiting result
2004/03/29 14:08:29 BGP: XXX.YYY.210.1 [FSM] TCP_connection_open (Connect->OpenSent)
From r1:
2004/03/29 14:06:15 BGP: XXX.YYY.210.9 [Event] Connect start to XXX.YYY.210.9 fd 23
2004/03/29 14:06:15 BGP: XXX.YYY.210.9 [Event] Connect failed (Operation now in progress)
2004/03/29 14:06:51 BGP: [Event] BGP connection from host XXX.YYY.210.9
2004/03/29 14:06:51 BGP: bgp_connect_success peer's fd is negative value -1
2004/03/29 14:08:15 BGP: XXX.YYY.210.9 [Event] Connect start to XXX.YYY.210.9 fd 25
2004/03/29 14:08:15 BGP: XXX.YYY.210.9 [Error] bgp_read_packet error: Connection reset by peer
2004/03/29 14:08:19 BGP: [Event] BGP connection from host XXX.YYY.210.9
2004/03/29 14:08:19 BGP: [Event] BGP connection IP address XXX.YYY.210.9 is Idle state
2004/03/29 14:08:20 BGP: XXX.YYY.210.9 [Event] Connect start to XXX.YYY.210.9 fd 23
2004/03/29 14:08:20 BGP: XXX.YYY.210.9 [Error] bgp_read_packet error: Connection reset by peer
2004/03/29 14:08:23 BGP: [Event] BGP connection from host XXX.YYY.210.9
2004/03/29 14:08:23 BGP: [Event] BGP connection IP address XXX.YYY.210.9 is Idle state
2004/03/29 14:08:25 BGP: XXX.YYY.210.9 [Event] Connect start to XXX.YYY.210.9 fd 23
2004/03/29 14:08:25 BGP: XXX.YYY.210.9 [Error] bgp_read_packet error: Connection reset by peer
2004/03/29 14:08:29 BGP: XXX.YYY.210.9 [Event] Connect start to XXX.YYY.210.9 fd 23
2004/03/29 14:08:29 BGP: XXX.YYY.210.9 [Event] BGP connection closed fd 23
2004/03/29 14:08:30 BGP: [Event] BGP connection from host XXX.YYY.210.9
2004/03/29 14:08:30 BGP: bgp_connect_success peer's fd is negative value -1
r9 config:
log file /var/log/zebra/bgpd.log
router bgp MMMMM
bgp router-id 195.177.210.9
neighbor XXX.YYY.210.1 remote-as NNNNN
neighbor XXX.YYY.210.1 soft-reconfiguration inbound
debug bgp events
debug bgp filters
debug bgp fsm
debug bgp keepalives
debug bgp updates
Best regards,
Krzysztof Olêdzki