Show, Clear, Debug Commands
Page 764 7210-SAS M Services Guide
neighbor
Syntax neighbor [ip-address [[family family] filter1]]
neighbor [as-number [[family family] filter2]]
Context show>router>bgp
Description This command displays BGP neighbor information. This command can be entered with or without
any parameters.
When this command is issued without any parameters, information about all BGP peers displays.
When the command is issued with a specific IP address or ASN, information regarding only that
specific peer or peers with the same AS display.
When either received-routes or advertised-routes is specified, then the routes received from or sent
to the specified peer is listed (see second output example).
Note: This information is not available by SNMP.
When either history or suppressed is specified, then the routes learned from those peers that either
have a history or are suppressed (respectively) are listed.
The ‘State’ field displays the BGP peer’s protocol state. In additional to the standard protocol states,
this field can also display the ‘Disabled’ operational state which indicates the peer is operationally
disabled and must be restarted by the operator.
Parameters ip-addr — Displays the BGP neighbor with the specified IP address.
family family — Specifies the type of routing information to be distributed by the BGP instance.
Values ipv4, vpn-ipv4
filter1 — Specifies route criteria.
Values received-routes, advertised-routes, history, suppressed, detail
filter2 — Specifies route criteria.
Values history, suppressed, detail
Output Standard and Detailed Neighbor — The following table describes the standard and detailed
command output fields for a BGP neighbor:
Label Description
Peer
The IP address of the configured BGP peer.
Group
The BGP peer group to which this peer is assigned.
Peer AS
The configured or inherited peer AS for the peer group.
Peer Address
The configured address for the BGP peer.
Peer Port
The TCP port number used on the far-end system.
Local AS
The configured or inherited local AS for the peer group.