show ip bgp summary
- Displays a summary of the status of all IPv4 Border Gateway Protocol (BGP) sessions
- Example:
admin@sonic:~$ show ip bgp summary BGP router identifier 1.2.3.4, local AS number 65061 RIB entries 6124, using 670 KiB of memory Peers 16, using 143 KiB of memory Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd 192.168.1.161 4 65501 88698 102781 0 0 0 08w5d14h 2 192.168.1.163 4 65502 88698 102780 0 0 0 08w5d14h 2 192.168.1.165 4 65503 88699 102781 0 0 0 08w5d14h 2 192.168.1.167 4 65504 88698 102780 0 0 0 08w5d14h 2 192.168.1.169 4 65505 88698 102781 0 0 0 08w5d14h 2 192.168.1.171 4 65506 88698 102780 0 0 0 08w5d14h 2 192.168.1.173 4 65507 88698 102780 0 0 0 08w5d14h 2 192.168.1.175 4 65508 88698 102780 0 0 0 08w5d14h 2 192.168.1.177 4 65509 88698 102781 0 0 0 08w5d14h 2 192.168.1.179 4 65510 88698 102780 0 0 0 08w5d14h 2 192.168.1.181 4 65511 88698 102780 0 0 0 08w5d14h 2 192.168.1.183 4 65512 88698 102780 0 0 0 08w5d14h 2 192.168.1.185 4 65513 88698 102781 0 0 0 08w5d14h 2 192.168.1.187 4 65514 88698 102781 0 0 0 08w5d14h 2 192.168.1.189 4 65515 88698 102781 0 0 0 08w5d14h 2 192.168.1.191 4 65516 88698 102781 0 0 0 08w5d14h 2 Total number of neighbors 16
show ip bgp neighbors [<ipv4-address> [advertised-routes | received-routes | routes]]
- Displays details of IPv4 Border Gateway Protocol (BGP) neighbors
- Example:
admin@sonic:~$ show ip bgp neighbors BGP neighbor is 192.168.1.161, remote AS 65501, local AS 65061, external link Description: ARISTA01T0 BGP version 4, remote router ID 1.2.3.4 BGP state = Established, up for 08w5d14h Last read 00:00:46, hold time is 180, keepalive interval is 60 seconds Neighbor capabilities: 4 Byte AS: advertised and received Dynamic: received Route refresh: advertised and received(old & new) Address family IPv4 Unicast: advertised and received Graceful Restart Capabilty: advertised and received Remote Restart timer is 120 seconds Address families by peer: IPv4 Unicast(not preserved) Graceful restart informations: End-of-RIB send: IPv4 Unicast End-of-RIB received: IPv4 Unicast Message statistics: Inq depth is 0 Outq depth is 0 Sent Rcvd Opens: 1 1 Notifications: 0 0 Updates: 14066 3 Keepalives: 88718 88698 Route Refresh: 0 0 Capability: 0 0 Total: 102785 88702 Minimum time between advertisement runs is 30 seconds For address family: IPv4 Unicast Community attribute sent to this neighbor(both) 2 accepted prefixes Connections established 1; dropped 0 Last reset never Local host: 192.168.1.160, Local port: 32961 Foreign host: 192.168.1.161, Foreign port: 179 Nexthop: 192.168.1.160 Nexthop global: fe80::f60f:1bff:fe89:bc00 Nexthop local: :: BGP connection: non shared network Read thread: on Write thread: off
- Optionally, you can specify an IP address in order to display only that particular neighbor. In this mode, you can optionally specify whether you want to display all routes advertised to the specified neighbor, all routes received from the specified neighbor or all routes (received and accepted) from the specified neighbor.
- Example:
admin@sonic:~$ show bgp neighbors 192.168.1.161 admin@sonic:~$ show bgp neighbors 192.168.1.161 advertised-routes admin@sonic:~$ show bgp neighbors 192.168.1.161 received-routes admin@sonic:~$ show bgp neighbors 192.168.1.161 routes
show ipv6 bgp summary
- Displays a summary of the status of all IPv6 Border Gateway Protocol (BGP) sessions
- Example:
admin@sonic:~$ show ipv6 bgp summary BGP router identifier 10.1.0.32, local AS number 65100 RIB entries 12809, using 1401 KiB of memory Peers 8, using 36 KiB of memory Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd fc00::72 4 64600 12588 12591 0 0 0 06:51:17 6402 fc00::76 4 64600 12587 6190 0 0 0 06:51:28 6402 fc00::7a 4 64600 12587 9391 0 0 0 06:51:23 6402 fc00::7e 4 64600 12589 12592 0 0 0 06:51:25 6402 Total number of neighbors 4
show ipv6 bgp neighbors <ipv6-address> (advertised-routes | received-routes | routes)
- Displays details of IPv6 Border Gateway Protocol (BGP) neighbors
- In this mode, you must specify the IPv6 address of a neighbor and choose whether you want to display all routes advertised to the specified neighbor, all routes received from the specified neighbor or all received and accepted routes from the specified neighbor.
- Example:
admin@sonic:~$ show ipv6 bgp neighbors fc00::72 advertised-routes admin@sonic:~$ show ipv6 bgp neighbors fc00::72 received-routes admin@sonic:~$ show ipv6 bgp neighbors fc00::72 routes