show bgp neighbor
Syntax
Release Information
Command modified in Release 8.5 of Junos OS.
Description
Display the state of the specified Border Gateway Protocol (BGP) neighbor. If a peer is forced to Idle state because of license check failure, the output displays the state and the reason—LicenseCheckFailed.
Options
instance instance—(Optional) Display peer information for a particular routing instance.
neighbor-address—(Optional) Display information for only the BGP peer at the specified IP address.
Required Privilege Level
view
Related Topics
Junos Routing Protocols and Policies Command Reference
List of Sample Output
show bgp neighbor 5.5.5.2show bgp neighbor instance master
Output Fields
Table 7 lists the output fields for the show bgp neighbor command. Output fields are listed in the approximate order in which they appear.
Table 7: show bgp neighbor Output Fields
Field Name | Field Description |
|---|---|
Peer | Address of the BGP neighbor. The address is followed by the neighbor's port number. |
AS | AS number of the peer. |
Local | Address of the local device. The address is followed by the peer's port number. |
Type | Type of peer: Internal or External. |
State | Current state of the BGP session:
|
Flags | Internal BGP flags:
|
Last State | Previous state of the BGP session. |
Last Event | Last activity that occurred in the BGP session:
|
Last Error | Last error that occurred in the BGP session:
|
Export | Name of the export policy that is configured on the peer. |
Import | Name of the import policy that is configured on the peer. |
Options | Configured BGP options:
|
Address families configured | Names of configured address families for the VPN. |
Local Address | Address of the local device. |
Holdtime | Hold time configured with the hold-time statement. The hold time is three times the interval at which keepalive messages are sent. |
Preference | Preference value configured with the preference statement. |
Number of flaps | Number of times the BGP session has gone down and then come back up. |
Trace file | Name of the file to receive the output of the tracing operation. |
Sample Output
show bgp neighbor 5.5.5.2
user@host> show
bgp neighbor 5.5.5.2 Type: Internal State: Idle (LicenseCheckFailed) Flags: <ImportEval Sync> Peer: 5.5.5.2 AS 200 Local: unspecified AS 200 Type: Internal State: Idle (LIcenseCheckFailed) (route reflector client)Flags: <ImportEval> Last State: Idle Last Event: Start Last Error: None Options: <Preference LogUpDown Cluster AddressFamily PeerAS Rib-group Refresh> Address families configured: inet-unicast inet-vpn-unicast l2vpn-signaling Holdtime: 90 Preference: 170 Number of flaps: 0 Trace options: all Trace file: /var/log/bgp size 131072 files 10
Sample Output
show bgp neighbor instance master
user@host> show
bgp neighbor instance master Peer: 5.5.5.1 AS 200 Local: 5.5.5.2 AS 200 Type: Internal State: Idle (LicenseCheckFailed) Flags: <> Last State: Idle Last Event: Start Last Error: Cease Export: [ static ] Options: <Preference LocalAddress LogUpDown AddressFamily PeerAS Rib-group Refresh> Address families configured: inet-unicast inet-vpn-unicast Local Address: 5.5.5.2 Holdtime: 90 Preference: 170 Number of flaps: 4 Last flap event: RecvUpdate Error: 'Update Message Error' Sent: 3 Recv: 0 Error: 'Cease' Sent: 2 Recv: 0 Trace file: /var/log/bgp size 131072 files 10
Hide Navigation Pane
Show Navigation Pane
Download
SHA1