Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[Junos] Meaning of the "bgp_recv: peer 10.0.0.42 (External AS 65013): received unexpected EOF" log message

0

0

Article ID: KB20629 KB Last Updated: 22 Oct 2020Version: 4.0
Summary:

This article provides information about the following log message:

Feb 17 09:31:33 SCSWANEDGE rpd[852]: bgp_recv: peer 10.0.0.42 (External AS 65013): received unexpected EOF

 

Symptoms:

What does the "bgp_recv: peer 10.0.0.42 (External AS 65013): received unexpected EOF" log message mean?

 

Solution:

The above message signifies that the 10.0.0.42 BGP peer has reset its connections. It shows that the abnormal event received an unexpected EOF (unexpected End of Frame), when the BGP peer connection dropped. It is also part of standard log messages, which are reported whenever any BGP peer drops and tries to re-establish a BGP session.

Feb 17 09:31:33 SCSWANEDGE rpd[852]: bgp_recv: peer 10.0.0.42 (External AS 65013): received unexpected EOF

It is good practice to trace high-level BGP operations on an ongoing basis. If and when an issue arises, you can examine the resulting log to get the necessary information about the source of the issue. You can then enable more detailed trace options flags to pinpoint the causes.

When performing ongoing monitoring of BGP operations, set up the trace options to globally track BGP state changes for all BGP groups:

[edit protocols bgp]

root@user# set traceoptions flag state detail
root@user# set traceoptions file bgp-trace world-readable
root@user# set traceoptions flag open 

Here are the sample log messages, which get generated whenever a BGP peer session is dropped and re-established.

user1@root> show log bgp-trace
Aug 6 19:07:18 trace_on:
Tracing to "/var/log/bgp-trace" started
Aug 6 19:07:53 bgp_recv: peer 10.0.0.50(External AS 65505): received unexpected EOF
Aug 6 19:07:53 bgp_peer_close: closing peer 10.0.0.50(External AS 65505), state is 6 (Established)
Aug 6 19:07:53 bgp_event: peer 10.0.0.50(External AS 65505) old state Established event Closed new state dle
Aug 6 19:07:53 bgp_event: peer 10.0.0.50(External AS 65505) old state Idle event Start new state Active
Aug 6 19:07:57 bgp_event: peer 10.0.0.50(External AS 65505) old state Active event Open new state OpenSent
Aug 6 19:07:57 bgp_event: peer 10.0.0.50(External AS 65505) old state OpenSent event RecvOpen new state OpenConfirm
Aug 6 19:07:57 bgp_event: peer 10.0.0.50(External AS 65505) old state OpenConfirm event RecvKeepAlive ew state Established

The first line shows that the abnormal event received an unexpected EOF, when the BGP peer connection dropped. The subsequent lines show the transition through various states, as BGP establishes connection, from Idle to Active, Open Sent, Open Confirm, and finally Established.

Note: Use "flag all" and "flag all detail" modifiers for BGP with EXTREME caution. These modifiers might cause the CPU to become very busy. Use these flags preferably under JTAC guidance/request. For this reason, the example above focuses only on the "open" flag.

Refer to Example: Configuring BGP Trace Operations for more information.
 
Modification History:

2020-10-22: Article reviewed for accuracy; added warning about improper configuration of BGP traceoptions

 

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search