OS10 Enterprise Edition User Guide Release 10.4.1.0

PDF

show ip bgp neighbors

Displays information that BGP neighbors exchange.

Syntax
show ip bgp [vrf vrf-name] neighbors ip-address [denied-routes]
Parameters
  • vrf vrf-name — (OPTIONAL) Enter the keyword vrf and then the name of the VRF to view information exchanged between BGP neighbors corresponding to that VRF.
  • ip-address — Enter the IP address for a specific neighbor.
  • denied-routes — (Optional) Displays the list of routes denied by policy.
  • advertised-routes—Displays the routes advertised to neighbor
  • dampened-routes—Displays the suppressed routes received from neighbor
  • flap-statistics—Displays the route's flap statistics received from neighbor
  • received-routes—Displays the routes received from neighbor
  • routes—Displays routes learned from neighbor
Default
Not configured
Command Mode
EXEC
Usage Information
  • BGP neighbor — Displays the BGP neighbor address and its AS number. The last phrase in the line indicates whether the link between the BGP router and its neighbor is an external or internal one. If they are located in the same AS, the link is internal; otherwise the link is external.
  • BGP version — Displays the BGP version (always version 4) and the remote router ID.
  • BGP state — Displays the neighbor’s BGP state and the amount of time in hours:minutes: seconds it has been in that state.
  • Last read — Displays the information included in the last read:
    • Last read is the time (hours:minutes: seconds) the router read a message from its neighbor.
    • Hold time is the number of seconds configured between messages from its neighbor.
    • Keepalive interval is the number of seconds between keepalive messages to help ensure that the TCP session is still alive.
  • Received messages — Displays the number of BGP messages received, the number of notifications (error messages), and the number of messages waiting in a queue for processing.
  • Sent messages — Displays the number of BGP messages sent, the number of notifications (error messages), and the number of messages waiting in a queue for processing.
  • Description — Displays the descriptive name configured for the BGP neighbor. This field is displayed only when the description is configured.
  • Local host — Displays the peering address of the local router and the TCP port number.
  • Foreign host — Displays the peering address of the neighbor and the TCP port number.

Although the status codes for routes received from a BGP neighbor may not display in show ip bgp neighbors ip-address received-routes output, they display correctly in show ip bgp output.

Example
OS10# show ip bgp neighbors 
                                       BGP neighbor is 80.1.1.2, remote AS 800, local AS 102  external link
                                       
                                       BGP version 4, remote router ID 12.12.0.2
                                       BGP state ESTABLISHED, in this state for 00:02:51
                                       Last read 00:18:23 seconds
                                       Hold time is 90, keepalive interval is 30 seconds
                                       Configured hold time is 180, keepalive interval is 60 seconds
                                       Fall-over disabled
                                       
                                       Received 11 messages
                                       1 opens, 0 notifications, 3 updates
                                       7 keepalives, 0 route refresh requests
                                       Sent 8 messages
                                       1 opens, 0 notifications, 0 updates
                                       7 keepalives, 0 route refresh requests
                                       Minimum time between advertisement runs is 30 seconds
                                       Description: n1_abcd
                                       Capabilities received from neighbor for IPv4 Unicast:
                                       MULTIPROTO_EXT(1)MULTIPROTO_EXT(1)MULTIPROTO_EXT(1)ROUTE_REFRESH(2)
                                       Capabilities advertised to neighbor for IPv4 Unicast:
                                       MULTIPROTO_EXT(1)MULTIPROTO_EXT(1)ROUTE_REFRESH(2)CISCO_ROUTE_REFRESH
                                       (128)4_OCTET_AS(65)
                                       Prefixes accepted 5, Prefixes advertised 0
                                       Connections established 1; dropped 1
                                       Closed by neighbor sent 00:02:51 ago
                                       For address family: IPv4 Unicast
                                       Next hop set to self
                                       Allow local AS number 0 times in AS-PATH attribute
                                       
                                       For address family: IPv6 Unicast
                                       Next hop set to self
                                       Allow local AS number 0 times in AS-PATH attribute
                                       
                                       Local host: 80.1.1.1, Local port: 57812
                                       Foreign host: 80.1.1.2, Foreign port: 179
                                    
Example advertised-routes
OS10# show ip bgp ipv6 unicast neighbors 192:168:1::2 advertised-routes 
                                       BGP local router ID is 100.1.1.1
                                       Status codes: s suppressed, S stale, d dampened, h history, * valid, > best
                                       Origin codes: i - IGP, e - EGP, ? - incomplete
                                       Network          Next Hop       Metric    LocPrf    Weight  Path           
                                       *>55::/64        192:168:1::1   0         0         0       100i              
                                       *>55:0:0:1::/64  192:168:1::1   0         0         0       100i              
                                       *>55:0:0:2::/64  192:168:1::1   0         0         0       100i              
                                       *>55:0:0:3::/64  192:168:1::1   0         0         0       100i              
                                       *>55:0:0:4::/64  192:168:1::1   0         0         0       100i              
                                       *>55:0:0:5::/64  192:168:1::1   0         0         0       100i              
                                       *>55:0:0:6::/64  192:168:1::1   0         0         0       100i              
                                       *>55:0:0:7::/64  192:168:1::1   0         0         0       100i              
                                       *>55:0:0:8::/64  192:168:1::1   0         0         0       100i              
                                       *>55:0:0:9::/64  192:168:1::1   0         0         0       100i              
                                       *>172:16:1::/64  192:168:1::1   0         0         0       100?              
                                       Total number of prefixes: 11
                                       OS10#
                                    
Example received-routes
OS10# show ip bgp ipv6 unicast neighbors 172:16:1::2 received-routes 
                                       BGP local router ID is 100.1.1.1
                                       Status codes: D denied
                                       Origin codes: i - IGP, e - EGP, ? - incomplete
                                       Network        Next Hop       Metric    LocPrf    Path           
                                       D  55::/64        172:16:1::2    0         0         i              
                                       55:0:0:1::/64  172:16:1::2    0         0         i              
                                       55:0:0:2::/64  172:16:1::2    0         0         i              
                                       D  55:0:0:3::/64  172:16:1::2    0         0         i              
                                       D  55:0:0:4::/64  172:16:1::2    0         0         i              
                                       D  55:0:0:5::/64  172:16:1::2    0         0         i              
                                       D  55:0:0:6::/64  172:16:1::2    0         0         i              
                                       55:0:0:7::/64  172:16:1::2    0         0         i              
                                       D  55:0:0:8::/64  172:16:1::2    0         0         i              
                                       D  55:0:0:9::/64  172:16:1::2    0         0         i              
                                       Total number of prefixes: 10
                                       OS10# 
                                    
Example denied-routes
OS10# show ip bgp ipv6 unicast neighbors 172:16:1::2 denied-routes 
                                       BGP local router ID is 100.1.1.1
                                       Status codes: D denied
                                       Origin codes: i - IGP, e - EGP, ? - incomplete
                                       Network        Next Hop       Metric   LocPrf    Path           
                                       D  55::/64        172:16:1::2    0        0         100 200 300 400i              
                                       D  55:0:0:1::/64  172:16:1::2    0        0         100 200 300 400i              
                                       D  55:0:0:2::/64  172:16:1::2    0        0         100 200 300 400i              
                                       Total number of prefixes: 3
                                       OS10#
                                    
Example routes
OS10# show ip bgp ipv6 unicast neighbors 172:16:1::2 routes 
                                       BGP local router ID is 100.1.1.1
                                       Status codes: s suppressed, S stale, d dampened, h history, * valid, > best
                                       Origin codes: i - IGP, e - EGP, ? - incomplete
                                       Network             Next Hop       Metric    LocPrf   Weight  Path           
                                       *>55::/64           172:16:1::2    44        55       0       i              
                                       *>55:0:0:1::/64     172:16:1::2    44        55       0       i              
                                       *>55:0:0:2::/64     172:16:1::2    44        55       0       i              
                                       *>55:0:0:3::/64     172:16:1::2    44        55       0       i              
                                       *>55:0:0:4::/64     172:16:1::2    44        55       0       i              
                                       *>55:0:0:5::/64     172:16:1::2    44        55       0       i              
                                       *>55:0:0:6::/64     172:16:1::2    44        55       0       i              
                                       *>55:0:0:7::/64     172:16:1::2    44        55       0       i              
                                       *>55:0:0:8::/64     172:16:1::2    44        55       0       i              
                                       *>55:0:0:9::/64     172:16:1::2    44        55       0       i              
                                       Total number of prefixes: 10
                                       OS10#
                                    
Supported Releases
10.3.0E or later

Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\