BGP Operational Commands
BGP Show Commands
The BGP show commands provide detailed information about the BGP protocol operation and BGP routes.
BGP Summary
This command displays BGP protocol parameters like attributes or timers that are generic to the BGP instance.
Syntax:
| Option | Description |
|---|---|
|
Without any option, the commands displays the information for all instances. |
|
BGP summary information for the given instance. |
Example: BGP summary for the default instance
supervisor@rtbrick: op> show bgp summary instance default
Instance: default
General information
Hostname: PE1, Domain name: Rtbrick
Local AS: 65541, Version: 4
Local preference: 100, eBGP Protocol preference: 20, iBGP Protocol preference: 200
Router ID: 198.51.100.11, Cluster ID: 198.51.100.11
MED: 0, Enforce first AS: True
Address families configured:
ipv4: labeled-unicast, unicast
ipv6: labeled-unicast, unicast
Capabilities
Route refresh: True, AS4: True, Graceful restart: False,
Best route selection
Always compare MED: True, Ignore as path: False
Ignore local preference: False, Ignore origin: False
Ignore MED: False, Ignore route source: False
Ignore router ID: False, Ignore uptime: True
Ignore cluster length: False, Ignore peer IP: False
Route select parameter: 0
Timers
Connect retry: 30s, Keepalive: 30s, Holdtime: 90s
Statistics
Peers configured: 1, Peers auto discovery: 0
Peers in idle : 0
Peers in connect : 0
Peers in active : 0
Peers in opensent : 0
Peers in openconfirm : 0
Peers in established : 1
To access the Operational State API that corresponds to this CLI, click
here.
BGP Peer
The 'show bgp peer' commands display information on BGP peers.
Syntax:
| Option | Description |
|---|---|
|
Without any option, the commands display all BGP peers in all instances in a summary table format. |
|
Displays scaled BGP peer status. |
|
Detailed information on all BGP peers in all instances in a list view. |
|
Detailed information on the peer with the given name. |
|
Displays BGP peer history information such as the peer state down reasons. |
|
Displays BGP peer history information such as the peer state down reasons for a specified peer. |
|
Displays Detailed BGP peer history information such as the peer state down reasons for a specified peer. |
|
Displays detailed BGP history information such as the peer state down reasons. |
|
Detailed information on the peer with the given IP address. |
|
Summary of all BGP peers in the given instance. |
|
Detailed information on all BGP peers in the given instance. |
|
Detailed information on the peer with the given name in the given instance. |
|
Detailed information on the peer with the given IP address in the given instance. |
|
Received and sent BGP prefixes per AFI/SAFI for all peers in all instances. |
|
Received and sent BGP prefixes per AFI/SAFI for the peer with the given name. |
|
Received and sent BGP prefixes per AFI/SAFI for the peer with the given IP address. |
|
Received and sent BGP prefixes per AFI/SAFI for the peer with the given name in the given instance. |
|
Received and sent BGP prefixes per AFI/SAFI for the peer with the given IP address in the given instance. |
| Although 6PE routes are labeled, they are handled as unicast routes, and therefore will be shown as IPv6 unicast in the BGP peer statistics. |
Example 1: BGP Peer Summary View
supervisor@rtbrick: op> show bgp peer Instance: default Peer Remote AS State Up/Down Time PfxRcvd PfxSent PE2 65542 Established 0d:00h:00m:13s 16 26
Example 2: BGP peer summary
supervisor@rtbrick: op> show bgp peer summary Instance: default Established: 1, OpenConfirm: 0, OpenSent: 0, Active: 0, Connect: 0, Idle: 0
Example 3: BGP Peer Detail View
supervisor@rtbrick: op> show bgp peer detail
Peer: PE2, Peer IP: 192.0.2.2, Remote AS: 65542, Local IP: 192.0.2.1, Local AS: 65541, Any AS: False
Type: ebgp, State: Established, Up/Down Time: Wed Jul 15 18:59:20 GMT +0000 2026
Discovered on interface: -
Last transition: Wed Jul 15 18:59:20 GMT +0000 2026, Flap count: 0
Peer ID : 198.51.100.21, Local ID: 198.51.100.11
Instance : default, Peer group: PE2
6PE enabled : False
TTL security : False, TTL limit: -
Authentication:
ID: BGP_AUTH_HMAC-SHA-256-128, Algorithm: HMAC-SHA-256-128
Timer values:
Peer keepalive : 30s, Local keepalive: 30s
Peer holddown : 90s, Local holddown : 90s
Connect retry : 30s
Timers:
Connect retry timer : 0
Keepalive timer : expires in 7s 263206us
Holddown timer : expires in 1m 14s 766679us
NLRIs:
Sent : ['ipv4-unicast', 'ipv6-unicast', 'ipv4-labeled-unicast', 'ipv6-labeled-unicast']
Received : ['ipv4-unicast', 'ipv6-unicast', 'ipv4-labeled-unicast', 'ipv6-labeled-unicast']
Negotiated : ['ipv4-unicast', 'ipv6-unicast', 'ipv4-labeled-unicast', 'ipv6-labeled-unicast']
Capabilities:
Addpath sent : None
Addpath received : None
Addpath negotiated : None
Extended nexthop sent : None
Extended nexthop received : None
Extended nexthop negotiated : None
Multiple labels sent : None
Multiple labels received : None
Multiple labels negotiated : None
Capabilities:
Feature Sent Received Negotiated
Route refresh True True True
4 byte AS True True True
Graceful restart False False False
Link local only False False False
Prefix Limit:
End of RIB:
Address family Sent Received
IPv4 unicast Wed Jul 15 18:59:26 GMT +0000 2026 Wed Jul 15 18:59:26 GMT +0000 2026
IPv4 labeled-unicast Wed Jul 15 18:59:26 GMT +0000 2026 Wed Jul 15 18:59:26 GMT +0000 2026
IPv6 unicast Wed Jul 15 18:59:26 GMT +0000 2026 Wed Jul 15 18:59:26 GMT +0000 2026
IPv6 labeled-unicast Wed Jul 15 18:59:26 GMT +0000 2026 Wed Jul 15 18:59:26 GMT +0000 2026
IPv4 VPN-unicast never never
IPv6 VPN-unicast never never
IPv4 flowspec never never
IPv6 flowspec never never
IPv4 VPN-multicast never never
L2VPN VPLS never never
L2VPN EVPN never never
RPKI Validation Stats:
Address family Valid Invalid Unknown
IPv4 unicast 0 0 0
IPv6 unicast 0 0 0
Message stats:
Session stats:
Direction Open Update Keepalive Notify Route refresh
Input 1 8 1 0 0
Output 1 8 1 0 0
Total stats:
Input 1 8 1 0 0
Output 1 8 1 0 0
Route stats:
Address family Received Sent Prefix limit Idle timeout
IPv4 unicast 4 8 0 0
IPv4 labeled-unicast 4 6 0 0
IPv6 unicast 4 6 0 0
IPv6 labeled-unicast 4 6 0 0
IPv4 VPN-unicast 0 0 0 0
IPv6 VPN-unicast 0 0 0 0
IPv4 multicast 0 0 0 0
IPv4 VPN-multicast 0 0 0 0
L2VPN VPLS 0 0 0 0
L2VPN EVPN 0 0 0 0
IPv4 Flowspec 0 0 0 0
IPv6 Flowspec 0 0 0 0
Example 4: BGP Peer Statistics
supervisor@rtbrick: op> show bgp peer statistics instance default peer PE2
Instance: default
Peer AFI SAFI PfxRcvd PfxSent
PE2 ipv4 unicast 4 8
ipv4 labeled-unicast 4 6
ipv6 unicast 4 6
ipv6 labeled-unicast 4 6
ipv4 vpn-unicast 0 0
ipv6 vpn-unicast 0 0
ipv4 multicast 0 0
ipv4 vpn-multicast 0 0
l2vpn vpls 0 0
l2vpn evpn 0 0
ipv4 flowspec 0 0
ipv6 flowspec 0 0
Example 5: BGP Peer history for a specified peer
supervisor@rtbrick: op> show bgp peer history peer address 192.0.2.2 Instance: default Peer Address Source Address Type Last Reset Reason Update Time 192.0.2.2 192.0.2.1 Notifica... Cease, Sub-Cod... Wed Jul 15 18:59:40 192.0.2.2 192.0.2.1 Clear BG... Cease, Sub-Cod... Wed Jul 15 18:59:37
Example 6: Detailed BGP peer history information
supervisor@rtbrick: op> show bgp peer history detail
Instance: default
Peer address: 192.0.2.2, Source address: 192.0.2.1
Type: Notification Message Received, Update time: Wed Jul 15 18:59:40 GMT +0000 2026,
Last reset reason: Cease, Sub-Code: Connect reject
Peer address: 192.0.2.2, Source address: 192.0.2.1
Type: Clear BGP Neighbor, Update time: Wed Jul 15 18:59:37 GMT +0000 2026,
Last reset reason: Cease, Sub-Code: Admin reset
Example 7: Detailed BGP peer information for actual sent and received route counters exchanged between BGP peers for each address family.
supervisor@rtbrick.net: op> show bgp peer detail
Peer: P2_SDN, Peer IP: 192.0.2.3, Remote AS: 4200000003, Local IP: 192.0.2.1, Local AS: 4200000001, Any AS: True
Type: ebgp, State: Established, Up/Down Time: Tue May 19 15:33:03 GMT +0000 2026
Discovered on interface: -
Last transition: Tue May 19 15:33:03 GMT +0000 2026, Flap count: 0
Peer ID : 10.0.0.30, Local ID: 10.0.0.10
Instance : default, Peer group: P2_SDN
6PE enabled : False
TTL security : False, TTL limit: -
Authentication:
ID: BGP_AUTH_HMAC-SHA-256-128, Algorithm: HMAC-SHA-256-128
Timer values:
Peer keepalive : 30s, Local keepalive: 30s
Peer holddown : 90s, Local holddown : 90s
Connect retry : 30s
Timers:
Connect retry timer : 0
Keepalive timer : expires in 22s 390625us
Holddown timer : expires in 1m 9s 684574us
NLRIs:
Sent : ['ipv4-unicast', 'ipv6-unicast', 'ipv4-labeled-unicast', 'ipv6-labeled-unicast']
Received : ['ipv4-unicast', 'ipv6-unicast', 'ipv4-labeled-unicast', 'ipv6-labeled-unicast']
Negotiated : ['ipv4-unicast', 'ipv6-unicast', 'ipv4-labeled-unicast', 'ipv6-labeled-unicast']
Capabilities:
Addpath sent : None
Addpath received : None
Addpath negotiated : None
Extended nexthop sent : None
Extended nexthop received : None
Extended nexthop negotiated : None
Multiple labels sent : ['ipv4-labeled-unicast', 'ipv6-labeled-unicast']
Multiple labels received : ['ipv4-labeled-unicast', 'ipv6-labeled-unicast']
Multiple labels negotiated : ['ipv4-labeled-unicast', 'ipv6-labeled-unicast']
Capabilities:
Feature Sent Received Negotiated
Route refresh True True True
4 byte AS True True True
Graceful restart False False False
Link local only False False False
Prefix Limit:
End of RIB:
Address family Sent Received
IPv4 unicast Tue May 19 15:33:09 GMT +0000 2026 Tue May 19 15:33:08 GMT +0000 2026
IPv4 labeled-unicast Tue May 19 15:33:09 GMT +0000 2026 Tue May 19 15:33:08 GMT +0000 2026
IPv6 unicast Tue May 19 15:33:09 GMT +0000 2026 Tue May 19 15:33:08 GMT +0000 2026
IPv6 labeled-unicast Tue May 19 15:33:09 GMT +0000 2026 Tue May 19 15:33:08 GMT +0000 2026
IPv4 VPN-unicast never never
IPv6 VPN-unicast never never
IPv4 flowspec never never
IPv6 flowspec never never
IPv4 VPN-multicast never never
L2VPN VPLS never never
L2VPN EVPN never never
RPKI Validation Stats:
Address family Valid Invalid Unknown
IPv4 unicast 0 0 0
IPv6 unicast 0 0 0
Message stats:
Session stats:
Direction Open Update Keepalive Notify Route refresh
Input 1 12 1918 0 0
Output 1 8 1918 0 0
Total stats:
Input 1 12 1918 0 0
Output 1 8 1918 0 0
Route stats:
Address family Received Sent Prefix limit Idle timeout
IPv4 unicast 4 7 0 0
IPv4 labeled-unicast 6 9 0 0
IPv6 unicast 4 7 0 0
IPv6 labeled-unicast 6 9 0 0
IPv4 VPN-unicast 0 0 0 0
IPv6 VPN-unicast 0 0 0 0
IPv4 multicast 0 0 0 0
IPv4 VPN-multicast 0 0 0 0
L2VPN VPLS 0 0 0 0
L2VPN EVPN 0 0 0 0
IPv4 Flowspec 0 0 0 0
To access the Operational State API that corresponds to this CLI, click
here.
BGP Peer Group
The 'show bgp peer-group' commands display parameters like BGP attributes that are specific to the respective peer groups.
Syntax:
| Option | Description |
|---|---|
|
Without any option, the commands display information on all peer groups in all instances. |
|
Information on the peer group with the given name. |
|
All peer groups in the given instance. |
|
Information on the peer group with the given name in the given instance. |
Example 1: BGP Peer Group
supervisor@rtbrick: op> show bgp peer-group PE2
Instance: default
Peer group name: PE2
Remote AS: 65542
Example 2: BGP peer group with TTL limit
supervisor@rtbrick: op> show bgp peer-group
Instance: default
Peer group name: PE2
Remote AS: 65542
TTL security: True, TTL limit: 4
Example 3: BGP peer group with EBGP multihop
supervisor@rtbrick: op> show bgp peer-group
Instance: default
Peer group name: PE2
Remote AS: 65542, EBGP multihop: 2
BGP FIB
The show bgp fib commands display the BGP forwarding table. In contrast to the 'show bgp rib' commands, the output of the show bgp fib commands includes only the selected routes. The BGP route selection occurs between the RIB and the FIB.
Syntax:
| Option | Description |
|---|---|
|
Without any option, the commands display the BGP forwarding table for all address families and all instances in a summary table format. |
|
Instance name. |
|
Displays summary information. |
|
BGP forwarding table summary for the given address family (AFI), all sub-address families and all instances. Supported AFI values are 'ipv4' and 'ipv6'. |
|
BGP forwarding table summary for the given address family (AFI) and sub-address family (SAFI), and all instances. Supported SAFI values are 'unicast', 'labeled-unicast', 'multicast', 'vpn-multicast', and 'vpn-unicast'. |
|
Detailed list view of the BGP forwarding table for the given address family (AFI) and sub-address family (SAFI), and all instances. |
|
BGP forwarding table entry for the given prefix and all instances. |
|
BGP forwarding table summary for the given AFI, SAFI, and instance. |
|
Detailed list view of BGP forwarding table for the given AFI, SAFI, and instance. |
|
BGP forwarding table entry for the given prefix and instance. |
Example 1: Summary information for the installed BGP routes in the FIB under a specific BGP instance.
supervisor@rtbrick: op> show bgp fib instance default summary Instance: default, Total Routes: 8 Address family Routes IPv4 unicast 2 IPv4 labeled-unicast 2 IPv6 unicast 2 IPv6 labeled-unicast 2 Total Routes 8
Example 2: Summary view of the BGP FIB for IPv6, all SAFIs and all instances
supervisor@rtbrick: op> show bgp fib ipv6 Instance: default, AFI: ipv6, SAFI: unicast, Total routes: 2 Prefix Preference Label Next Hop 2001:db8:0:1::21/128 20 - 192.0.2.2 2001:db8:0:1::22/128 20 - 192.0.2.2 Instance: default, AFI: ipv6, SAFI: labeled-unicast, Total routes: 2 Prefix Preference Label Next Hop 2001:db8:0:1::21/128 20 - 192.0.2.2 2001:db8:0:1::22/128 20 - 192.0.2.2
Example 3: Detailed view of the BGP FIB for IPv6 VPN unicast routes in the default instances
supervisor@rtbrick: op> show bgp fib ipv6 unicast instance default detail
Instance: default, AFI: ipv6, SAFI: unicast, Total routes: 2
Prefix: 2001:db8:0:1::21/128
Next hop key: 4817d0c3f4cdff043db9a1b609d636032d017cef5a6733de
Route source: bgp, Send path ID: 185972253, Received path ID: None
AS path: [65542], Originator ID: None, Origin: Incomplete
Community: None
Extended community: None
Large community: None
Cluster list: None
IGP metric: 4294967295, Local preference: None, Multi exit discriminator: 0
Preference: 20, External route: None, Readvertised route: None
Route up: None
Next hop: 192.0.2.2, Label: -
Prefix: 2001:db8:0:1::22/128
Next hop key: 4817d0c3f4cdff043db9a1b609d636032d017cef5a6733de
Route source: bgp, Send path ID: 185972253, Received path ID: None
AS path: [65542], Originator ID: None, Origin: Incomplete
Community: None
Extended community: None
Large community: None
Cluster list: None
IGP metric: 4294967295, Local preference: None, Multi exit discriminator: 0
Preference: 20, External route: None, Readvertised route: None
Route up: None
Next hop: 192.0.2.2, Label: -
Example 4: Summary information for the installed BGP routes in the FIB under a specific BGP instance.
supervisor@rtbrick: op> show bgp fib instance default summary Instance: default, Total Routes: 8 Address family Routes IPv4 unicast 2 IPv4 labeled-unicast 2 IPv6 unicast 2 IPv6 labeled-unicast 2 Total Routes 8
Example 5: Summary information for the installed BGP routes in the FIB for a specified AFI and SAFI within a specific BGP instance.
supervisor@rtbrick: op> show bgp fib ipv6 unicast summary Instance: default, Total Routes: 2 Address family Routes IPv6 unicast 2 Total Routes 2
Example 5: Summary information for the installed BGP routes in the FIB.
supervisor@rtbrick: op> show bgp fib summary Instance: default, Total Routes: 8 Address family Routes IPv4 unicast 2 IPv4 labeled-unicast 2 IPv6 unicast 2 IPv6 labeled-unicast 2 Total Routes 8
BGP RIB-in
This command displays information about the BGP routes received from BGP neighbors.
Syntax:
| Attribute | Description |
|---|---|
|
Without any option, the command displays information on the received BGP routing table on all instances in a summary table format. |
|
Displays a summary of the RIB for all instances. |
|
Name of the instance. Displays the RIB summary information for BGP routes received from all neighbors for a specified instance. Additional filtering options such as |
|
Displays the RIB entry for BGP routes learned from a specific peer IP address for a specified instance. Additional filtering options such as |
|
Displays the RIB entry for BGP routes learned from a specific peer (name) for a specified instance. Additional filtering options such as |
|
Displays the RIB entry for a given prefix for a specified instance. Additional filtering options such as |
|
Displays a summary of the RIB for a specified instance. |
|
Displays the RIB entry for a given prefix across all instances. Additional filtering options such as |
|
BGP routing table summary for the given address family (AFI), all sub-address families and all instances. Supported AFI values are 'ipv4' and 'ipv6'. Additional filtering options such as |
|
Detailed list view of the BGP routing table for the given AFI, |
|
Displays BGP routing table entries for FlowSpec routes for the given AFI, all sub-address families and all instances. Supported AFI values are 'ipv4' and 'ipv6'. Additional filtering options such as |
|
Displays the RIB entry for a given prefix for a specified address family. Supported AFI values are 'ipv4' and 'ipv6'. Additional filtering options such as |
|
Displays BGP routing table summary for the given AFI and subsequent address family identifier (SAFI), and all instances. Supported SAFI values are 'labeled-unicast', 'unicast', 'vpn-multicast', and 'vpn-unicast'. Additional filtering options such as |
|
Displays BGP routing table entries for a given community for the specified AFI and SAFI, and all instances. Additional filtering options such as |
|
Detailed list view of the BGP routing table for the given AFI and SAFI, and all instances. Supported SAFI values are 'labeled-unicast', 'unicast', 'vpn-multicast', and 'vpn-unicast'. |
|
BGP routing table summary for the given AFI, SAFI, and instance. Supported SAFI values are 'labeled-unicast', 'unicast', 'vpn-multicast', and 'vpn-unicast'. Additional filtering options such as |
|
Displays a summarized list of all BGP routes received from a peer (source) for a specified AFI and SAFI. Supported AFI values are 'ipv4' and 'ipv6'. Additional filtering options such as |
|
Displays the post-policy RIB summary information for BGP routes received from all neighbors for all instances. Additional filtering options such as |
|
Displays a summary of the post-policy RIB. |
|
Name of the instance. Displays the post-policy RIB summary information for BGP routes received from all neighbors for a specified instance. Additional filtering options such as |
|
Displays the post-policy RIB entry for BGP routes that encountered errors during processing for a specified instance. Additional filtering options such as |
|
Displays the post-policy RIB entry for BGP routes that were rejected by the import policy for a specified instance. Additional filtering options such as |
|
Displays the post-policy RIB entry for BGP routes learned from a specific peer IP address for a specified instance. Additional filtering options such as |
|
Displays the post-policy RIB entry for BGP routes learned from a specific peer (name) for a specified instance. Additional filtering options such as |
|
Displays the post-policy RIB entry for BGP routes that were accepted by the import policy for a specified instance. Additional filtering options such as |
|
Displays the post-policy RIB entry for BGP routes that were denied by the import policy for a specified instance. Additional filtering options such as |
|
Displays the post-policy RIB entry for a given prefix for a specified instance. Additional filtering options such as |
|
Displays a summary of the post-policy RIB for a specified instance. |
|
Displays the post-policy RIB entry for BGP routes with a specific validation state for a specified instance. Supported validation states are |
|
Displays the post-policy RIB entry for a given prefix for all instances. Additional filtering options such as |
|
BGP routing table summary for the given AFI, all sub-address families and all instances. Supported AFI values are 'ipv4' and 'ipv6'. Additional filtering options such as |
|
Detailed list view of the BGP routing table for the given AFI. |
|
Displays BGP routing table entries for FlowSpec routes for the given AFI, all sub-address families and all instances. Supported AFI values are 'ipv4' and 'ipv6'. Additional filtering options such as |
|
Displays the post-policy RIB entry for a given prefix for a specified AFI. Supported AFI values are 'ipv4' and 'ipv6'. Additional filtering options such as |
|
Displays a summarized list of all BGP routes received from a peer (source) for a specified AFI. Supported AFI values are 'ipv4' and 'ipv6'. Additional filtering options such as |
|
Displays BGP routing table summary for the given AFI and SAFI, and all instances. Supported SAFI values are 'labeled-unicast', 'unicast', 'vpn-multicast', and 'vpn-unicast'. Additional filtering options such as |
|
Displays BGP routing table entries for a given community for the specified AFI and SAFI, and all instances. Additional filtering options such as |
|
BGP routes with error status for the given AFI and SAFI, and all instances. Supported SAFI values are 'labeled-unicast', 'unicast', 'vpn-multicast', and 'vpn-unicast'. Additional filtering options such as |
|
BGP routes that were rejected by the import policy for the given AFI and SAFI, and all instances. Supported SAFI values are 'labeled-unicast', 'unicast', 'vpn-multicast', and 'vpn-unicast'. Additional filtering options such as |
|
Detailed list view of the BGP routing table for the given AFI and SAFI, and all instances. Supported SAFI values are 'labeled-unicast', 'unicast', 'vpn-multicast', and 'vpn-unicast'. |
|
BGP routing table summary for the given AFI, SAFI, and instance. Supported SAFI values are 'labeled-unicast', 'unicast', 'vpn-multicast', and 'vpn-unicast'. Additional filtering options such as |
Example 1: BGP received routes
supervisor@rtbrick: op> show bgp rib-in
Instance: default, AFI: ipv4, SAFI: unicast
Hostname: Local, Peer IP: 0.0.0.0
Source IP: 0.0.0.0, Total routes: 6
Prefix Next Hop MED Lpref AS Path
192.0.2.0/30 - 0 - -
192.0.2.4/30 - 0 - -
198.51.100.11/32 - 0 - -
198.51.100.12/32 - 0 - -
198.51.100.100/32 - 0 - -
198.51.100.101/32 - 0 - -
Instance: default, AFI: ipv4, SAFI: unicast
Hostname: PE2, Peer IP: 192.0.2.2
Source IP: 192.0.2.1, Total routes: 4
Prefix Next Hop MED Lpref AS Path
192.0.2.0/30 192.0.2.2 0 - 65542
192.0.2.4/30 192.0.2.2 0 - 65542
198.51.100.21/32 192.0.2.2 0 - 65542
198.51.100.22/32 192.0.2.2 0 - 65542
Instance: default, AFI: ipv4, SAFI: labeled-unicast
Hostname: Local, Peer IP: 0.0.0.0
Source IP: 0.0.0.0, Total routes: 4
Prefix Next Hop MED Lpref AS Path
192.0.2.0/30 - 0 - -
192.0.2.4/30 - 0 - -
198.51.100.11/32 - 0 - -
198.51.100.12/32 - 0 - -
Instance: default, AFI: ipv4, SAFI: labeled-unicast
Hostname: PE2, Peer IP: 192.0.2.2
Source IP: 192.0.2.1, Total routes: 4
Prefix Next Hop MED Lpref AS Path
192.0.2.0/30 192.0.2.2 0 - 65542
192.0.2.4/30 192.0.2.2 0 - 65542
198.51.100.21/32 192.0.2.2 0 - 65542
198.51.100.22/32 192.0.2.2 0 - 65542
Instance: default, AFI: ipv6, SAFI: unicast
Hostname: PE2, Peer IP: 192.0.2.2
Source IP: 192.0.2.1, Total routes: 4
Prefix Next Hop MED Lpref AS Path
2001:db8:1:1::/64 192.0.2.2 0 - 65542
2001:db8:2:1::/64 192.0.2.2 0 - 65542
2001:db8:0:1::21/128 192.0.2.2 0 - 65542
2001:db8:0:1::22/128 192.0.2.2 0 - 65542
Instance: default, AFI: ipv6, SAFI: unicast
Hostname: Local, Peer IP: ::
Source IP: ::, Total routes: 4
Prefix Next Hop MED Lpref AS Path
2001:db8:1:1::/64 - 0 - -
2001:db8:2:1::/64 - 0 - -
2001:db8:0:1::11/128 - 0 - -
2001:db8:0:1::12/128 - 0 - -
Instance: default, AFI: ipv6, SAFI: labeled-unicast
Hostname: PE2, Peer IP: 192.0.2.2
Source IP: 192.0.2.1, Total routes: 4
Prefix Next Hop MED Lpref AS Path
2001:db8:1:1::/64 192.0.2.2 0 - 65542
2001:db8:2:1::/64 192.0.2.2 0 - 65542
2001:db8:0:1::21/128 192.0.2.2 0 - 65542
2001:db8:0:1::22/128 192.0.2.2 0 - 65542
Instance: default, AFI: ipv6, SAFI: labeled-unicast
Hostname: Local, Peer IP: ::
Source IP: ::, Total routes: 4
Prefix Next Hop MED Lpref AS Path
2001:db8:1:1::/64 - 0 - -
2001:db8:2:1::/64 - 0 - -
2001:db8:0:1::11/128 - 0 - -
2001:db8:0:1::12/128 - 0 - -
Example 2: Summary of the BGP received routes
supervisor@rtbrick: op> show bgp rib-in summary
Instance: default, Total Routes: 34
Hostname: Local, Peer IP: 0.0.0.0, Source IP: 0.0.0.0
Address family Routes
IPv4 unicast 6
IPv4 labeled-unicast 4
Total Routes 10
Hostname: PE2, Peer IP: 192.0.2.2, Source IP: 192.0.2.1
Address family Routes
IPv4 unicast 4
IPv4 labeled-unicast 4
IPv6 unicast 4
IPv6 labeled-unicast 4
Total Routes 16
Hostname: Local, Peer IP: ::, Source IP: ::
Address family Routes
IPv6 unicast 4
IPv6 labeled-unicast 4
Total Routes 8
Example 3: View of BGP routes filtered based in the source protocol, direct.
supervisor@rtbrick: op> show bgp rib-in source direct
Instance: default, AFI: ipv4, SAFI: unicast
Hostname: Local, Peer IP: 0.0.0.0
Source IP: 0.0.0.0, Total routes: 4
Prefix Next Hop MED Lpref AS Path
192.0.2.0/30 - 0 - -
192.0.2.4/30 - 0 - -
198.51.100.11/32 - 0 - -
198.51.100.12/32 - 0 - -
Instance: default, AFI: ipv4, SAFI: labeled-unicast
Hostname: Local, Peer IP: 0.0.0.0
Source IP: 0.0.0.0, Total routes: 4
Prefix Next Hop MED Lpref AS Path
192.0.2.0/30 - 0 - -
192.0.2.4/30 - 0 - -
198.51.100.11/32 - 0 - -
198.51.100.12/32 - 0 - -
Instance: default, AFI: ipv6, SAFI: unicast
Hostname: Local, Peer IP: ::
Source IP: ::, Total routes: 4
Prefix Next Hop MED Lpref AS Path
2001:db8:1:1::/64 - 0 - -
2001:db8:2:1::/64 - 0 - -
2001:db8:0:1::11/128 - 0 - -
2001:db8:0:1::12/128 - 0 - -
Instance: default, AFI: ipv6, SAFI: labeled-unicast
Hostname: Local, Peer IP: ::
Source IP: ::, Total routes: 4
Prefix Next Hop MED Lpref AS Path
2001:db8:1:1::/64 - 0 - -
2001:db8:2:1::/64 - 0 - -
2001:db8:0:1::11/128 - 0 - -
2001:db8:0:1::12/128 - 0 - -
Example 4: Summary view of the BGP rib-in for IPv4, all SAFIs and all instances
supervisor@rtbrick: op> show bgp rib-in ipv4
Instance: default, AFI: ipv4, SAFI: unicast
Hostname: Local, Peer IP: 0.0.0.0
Source IP: 0.0.0.0, Total routes: 6
Prefix Next Hop MED Lpref AS Path
192.0.2.0/30 - 0 - -
192.0.2.4/30 - 0 - -
198.51.100.11/32 - 0 - -
198.51.100.12/32 - 0 - -
198.51.100.100/32 - 0 - -
198.51.100.101/32 - 0 - -
Instance: default, AFI: ipv4, SAFI: unicast
Hostname: PE2, Peer IP: 192.0.2.2
Source IP: 192.0.2.1, Total routes: 4
Prefix Next Hop MED Lpref AS Path
192.0.2.0/30 192.0.2.2 0 - 65542
192.0.2.4/30 192.0.2.2 0 - 65542
198.51.100.21/32 192.0.2.2 0 - 65542
198.51.100.22/32 192.0.2.2 0 - 65542
Instance: default, AFI: ipv4, SAFI: labeled-unicast
Hostname: Local, Peer IP: 0.0.0.0
Source IP: 0.0.0.0, Total routes: 4
Prefix Next Hop MED Lpref AS Path
192.0.2.0/30 - 0 - -
192.0.2.4/30 - 0 - -
198.51.100.11/32 - 0 - -
198.51.100.12/32 - 0 - -
Instance: default, AFI: ipv4, SAFI: labeled-unicast
Hostname: PE2, Peer IP: 192.0.2.2
Source IP: 192.0.2.1, Total routes: 4
Prefix Next Hop MED Lpref AS Path
192.0.2.0/30 192.0.2.2 0 - 65542
192.0.2.4/30 192.0.2.2 0 - 65542
198.51.100.21/32 192.0.2.2 0 - 65542
198.51.100.22/32 192.0.2.2 0 - 65542
Example 5: Summary view of the received routes
supervisor@rtbrick: op> show bgp rib-in ipv4 unicast instance default peer address 192.0.2.2
Instance: default, AFI: ipv4, SAFI: unicast
Hostname: PE2, Peer IP: 192.0.2.2
Source IP: 192.0.2.1, Total routes: 4
Prefix Next Hop MED Lpref AS Path
192.0.2.0/30 192.0.2.2 0 - 65542
192.0.2.4/30 192.0.2.2 0 - 65542
198.51.100.21/32 192.0.2.2 0 - 65542
198.51.100.22/32 192.0.2.2 0 - 65542
Example 6: Summary view of the BGP rib-in post-policy
supervisor@rtbrick.net: op> show bgp rib-in post-policy
Flags: & - Imported, ! - Error, N - RPKI Unknown, I - RPKI Invalid, V - RPKI Valid
Instance: default, AFI: ipv4, SAFI: unicast
Hostname: Local, Peer IP: 0.0.0.0
Source IP: 0.0.0.0, Total routes: 9
Flags Prefix Next Hop MED Lpref AS Path
192.0.2.0/24 - 0 - -
192.0.2.1/24 - 0 - -
192.0.2.2/24 - 0 - -
203.0.113.20/32 - 0 - -
203.0.113.21/32 - 0 - -
203.0.113.22/32 - 0 - -
203.0.113.23/32 - 0 - -
203.0.113.24/32 - 0 - -
203.0.113.25/32 - 0 - -
Instance: default, AFI: ipv4, SAFI: unicast
Hostname: PE1, Peer IP: 192.0.2.1
Source IP: 192.0.2.2, Total routes: 3
Flags Prefix Next Hop MED Lpref AS Path
192.0.2.10/32 192.0.2.1 0 - 65536
192.0.2.11/32 192.0.2.1 0 - 65536
192.0.2.12/32 192.0.2.1 0 - 65536
Instance: default, AFI: ipv4, SAFI: unicast
Hostname: PE1, Peer IP: 2001:DB8::1
Source IP: 2001:DB8::2, Total routes: 3
Flags Prefix Next Hop MED Lpref AS Path
192.0.2.10/32 2001:DB8::1 0 - 65536
192.0.2.11/32 2001:DB8::1 0 - 65536
192.0.2.12/32 2001:DB8::1 0 - 65536
Instance: vrf1-blue, AFI: ipv4, SAFI: unicast
Hostname: Local, Peer IP: 0.0.0.0
Source IP: 0.0.0.0, Total routes: 5
Flags Prefix Next Hop MED Lpref AS Path
0.0.0.0/0 - 0 - -
192.0.2.30/24 - 0 - -
192.0.2.31/32 - 0 - -
192.0.2.32/32 - 0 - -
192.0.2.33/32 - 0 - -
Example 7: Summary view of the BGP rib-in post-policy for a specific instance, AFI, and SAFI.
supervisor@rtbrick.net: op> show bgp rib-in post-policy ipv4 unicast instance default
Flags: & - Imported, ! - Error, N - RPKI Unknown, I - RPKI Invalid, V - RPKI Valid
Instance: default, AFI: ipv4, SAFI: unicast
Hostname: Local, Peer IP: 0.0.0.0
Source IP: 0.0.0.0, Total routes: 9
Flags Prefix Next Hop MED Lpref AS Path
192.0.2.0/24 - 0 - -
192.0.2.1/24 - 0 - -
192.0.2.2/24 - 0 - -
192.0.2.3/32 - 0 - -
192.0.2.4/32 - 0 - -
192.0.2.5/32 - 0 - -
192.0.2.6/32 - 0 - -
192.0.2.7/32 - 0 - -
192.0.2.8/32 - 0 - -
Instance: default, AFI: ipv4, SAFI: unicast
Hostname: PE1, Peer IP: 192.0.2.9
Source IP: 192.0.2.10, Total routes: 3
Flags Prefix Next Hop MED Lpref AS Path
192.0.2.11/32 192.0.2.9 0 - 65536
192.0.2.12/32 192.0.2.9 0 - 65536
192.0.2.13/32 192.0.2.9 0 - 65536
Instance: default, AFI: ipv4, SAFI: unicast
Hostname: PE1, Peer IP: 192.0.2.14
Source IP: 192.0.2.15, Total routes: 3
Flags Prefix Next Hop MED Lpref AS Path
192.0.2.11/32 192.0.2.14 0 - 65536
192.0.2.12/32 192.0.2.14 0 - 65536
192.0.2.13/32 192.0.2.14 0 - 65536
Example 8: Summary view of the BGP rib-in post-policy for a specific instance, AFI, SAFI, and policy-accept filter.
supervisor@rtbrick.net: op> show bgp rib-in post-policy ipv4 unicast policy-accept
Flags: & - Imported, ! - Error, N - RPKI Unknown, I - RPKI Invalid, V - RPKI Valid
Instance: default, AFI: ipv4, SAFI: unicast
Hostname: PE1, Peer IP: 192.0.2.1
Source IP: 192.0.2.2, Total routes: 3
Flags Prefix Next Hop MED Lpref AS Path
192.168.1.10/32 192.0.2.1 0 - 65536
192.168.2.10/32 192.0.2.1 0 - 65536
192.168.1.11/32 192.0.2.1 0 - 65536
Instance: default, AFI: ipv4, SAFI: unicast
Hostname: PE1, Peer IP: 192::1
Source IP: 192::2, Total routes: 3
Flags Prefix Next Hop MED Lpref AS Path
192.168.1.10/32 192::1 0 - 65536
192.168.2.10/32 192::1 0 - 65536
192.168.1.11/32 192::1 0 - 65536
Example 9: Summary view of the BGP rib-in post-policy for a specific instance, AFI, SAFI, and policy-deny filter.
supervisor@rtbrick.net: op> show bgp rib-in post-policy ipv4 unicast policy-deny
Flags: & - Imported, ! - Error, N - RPKI Unknown, I - RPKI Invalid, V - RPKI Valid
Instance: default, AFI: ipv4, SAFI: unicast
Hostname: PE1, Peer IP: 192.0.2.1
Source IP: 192.0.2.2, Total routes: 1
Flags Prefix Next Hop MED Lpref AS Path
! 192.168.2.11/32 192.0.2.1 0 - 65536
Instance: default, AFI: ipv4, SAFI: unicast
Hostname: PE1, Peer IP: 192::1
Source IP: 192::2, Total routes: 1
Flags Prefix Next Hop MED Lpref AS Path
! 192.168.2.11/32 192::1 0 - 65536
Example 10: Summary view of the BGP rib-in post-policy for a specific instance, AFI, SAFI, and peer address filter.
supervisor@rtbrick.net: op> show bgp rib-in post-policy ipv4 unicast peer address 192.0.2.1
Flags: & - Imported, ! - Error, N - RPKI Unknown, I - RPKI Invalid, V - RPKI Valid
Instance: default, AFI: ipv4, SAFI: unicast
Hostname: PE1, Peer IP: 192.0.2.1
Source IP: 192.0.2.2, Total routes: 3
Flags Prefix Next Hop MED Lpref AS Path
192.0.2.10/32 192.0.2.1 0 - 65536
192.0.2.20/32 192.0.2.1 0 - 65536
192.0.2.11/32 192.0.2.1 0 - 65536
Example 11: Summary view of the BGP rib-in post-policy for a specific instance, AFI, SAFI, and validation-state filter.
supervisor@rtbrick.net: op> show bgp rib-in post-policy ipv4 unicast validation-state init
Flags: & - Imported, ! - Error, N - RPKI Unknown, I - RPKI Invalid, V - RPKI Valid
Instance: default, AFI: ipv4, SAFI: unicast
Hostname: PE1, Peer IP: 192.0.2.1
Source IP: 192.0.2.2
Flags Prefix Next Hop MED Lpref AS Path
192.0.2.10/32 192.0.2.1 0 - 65536
192.0.2.20/32 192.0.2.1 0 - 65536
192.0.2.11/32 192.0.2.1 0 - 65536
Instance: default, AFI: ipv4, SAFI: unicast
Hostname: PE1, Peer IP: 192::1
Source IP: 192::2
Flags Prefix Next Hop MED Lpref AS Path
192.0.2.10/32 192::1 0 - 65536
192.0.2.20/32 192::1 0 - 65536
192.0.2.11/32 192::1 0 - 65536
BGP RIB-out
This command displays the send routes.
Syntax:
| Option | Description |
|---|---|
|
Without any option, the command displays advertised BGP routes for all instances. |
|
BGP routing table summary for the given address family (AFI), all sub-address families and all instances. Supported AFI values are 'ipv4' and 'ipv6'. |
|
BGP routing table summary for the given address family (AFI) and sub-address family (SAFI), and all instances. Supported SAFI values are |
|
Detailed list view of the BGP routing table for the given address family (AFI) and sub-address family (SAFI), and all instances. |
|
BGP routing table entry for the given prefix and all instances. |
|
BGP routing table summary for the given AFI, SAFI, and instance. |
|
Detailed list view of BGP routing table for the given AFI, SAFI, and instance. |
|
View of BGP routing table for the given peer Ip address. |
|
Detailed list view of BGP routes for give peer IP address. |
|
Displays BGP routing table for the given peer. |
|
Detailed list view of BGP routes for the given peer IP address. |
|
Information of BGP routes for the given peer group name. |
|
Displays BGP routing table for the given community. |
|
Detailed list view of BGP routing table for the given community. |
|
BGP routing table entry for the given prefix and instance. |
|
Peer name or address |
Example 1: Summary view of the routes advertised to a peer
supervisor@rtbrick: op> show bgp rib-out ipv4 unicast peer PE2
Flags: N - RPKI Unknown, I - RPKI Invalid, V - RPKI Valid
Instance: default, AFI: ipv4, SAFI: unicast
Peer: PE2, Peer IP: 192.0.2.2, Sent routes: 8
Flags Prefix MED Lpref Origin Next Hop AS Path
192.0.2.0/30 0 - Incomplete 192.0.2.1 65541
192.0.2.4/30 0 - Incomplete 192.0.2.1 65541
198.51.100.11/32 0 - Incomplete 192.0.2.1 65541
198.51.100.12/32 0 - Incomplete 192.0.2.1 65541
198.51.100.21/32 0 - Incomplete 192.0.2.1 65541, 65542
198.51.100.22/32 0 - Incomplete 192.0.2.1 65541, 65542
198.51.100.100/32 0 - Incomplete 192.0.2.1 65541
198.51.100.101/32 0 - Incomplete 192.0.2.1 65541
Example 2: Detailed view of the routes advertised to a peer
supervisor@rtbrick: op> show bgp rib-out
Flags: N - RPKI Unknown, I - RPKI Invalid, V - RPKI Valid
Instance: default, AFI: ipv4, SAFI: unicast
Peer-group: PE2, Sent routes: 8
Flags Prefix MED Lpref Origin Next Hop AS Path
192.0.2.0/30 0 - Incomplete - 65541
192.0.2.4/30 0 - Incomplete - 65541
198.51.100.11/32 0 - Incomplete - 65541
198.51.100.12/32 0 - Incomplete - 65541
198.51.100.21/32 0 - Incomplete - 65541, 65542
198.51.100.22/32 0 - Incomplete - 65541, 65542
198.51.100.100/32 0 - Incomplete - 65541
198.51.100.101/32 0 - Incomplete - 65541
Instance: default, AFI: ipv4, SAFI: labeled-unicast
Peer-group: PE2, Sent routes: 6
Flags Prefix MED Lpref Origin Next Hop AS Path
192.0.2.0/30 0 - Incomplete - 65541
192.0.2.4/30 0 - Incomplete - 65541
198.51.100.11/32 0 - Incomplete - 65541
198.51.100.12/32 0 - Incomplete - 65541
198.51.100.21/32 0 - Incomplete - 65541, 65542
198.51.100.22/32 0 - Incomplete - 65541, 65542
Instance: default, AFI: ipv6, SAFI: unicast
Peer-group: PE2, Sent routes: 6
Flags Prefix MED Lpref Origin Next Hop AS Path
2001:db8:1:1::/64 0 - Incomplete - 65541
2001:db8:2:1::/64 0 - Incomplete - 65541
2001:db8:0:1::11/128 0 - Incomplete - 65541
2001:db8:0:1::12/128 0 - Incomplete - 65541
2001:db8:0:1::21/128 0 - Incomplete - 65541, 65542
2001:db8:0:1::22/128 0 - Incomplete - 65541, 65542
Instance: default, AFI: ipv6, SAFI: labeled-unicast
Peer-group: PE2, Sent routes: 6
Flags Prefix MED Lpref Origin Next Hop AS Path
2001:db8:1:1::/64 0 - Incomplete - 65541
2001:db8:2:1::/64 0 - Incomplete - 65541
2001:db8:0:1::11/128 0 - Incomplete - 65541
2001:db8:0:1::12/128 0 - Incomplete - 65541
2001:db8:0:1::21/128 0 - Incomplete - 65541, 65542
2001:db8:0:1::22/128 0 - Incomplete - 65541, 65542
TCP Connections
This command displays information of the TCP connections used by BGP.
Syntax:
| Option | Description |
|---|---|
|
Without any option, the command displays the TCP connections used by BGP for all instances. |
|
Detailed list view of the the TCP connections for the given address family (AFI) and sub-address family (SAFI), and all instances. |
|
TCP connections for the given prefix and all instances. |
|
TCP connections summary for the given instance. |
Example 1: Summary view of the BGP TCP connections
supervisor@rtbrick: op> show bgp rib-out ipv4 unicast peer PE2
Flags: N - RPKI Unknown, I - RPKI Invalid, V - RPKI Valid
Instance: default, AFI: ipv4, SAFI: unicast
Peer: PE2, Peer IP: 192.0.2.2, Sent routes: 8
Flags Prefix MED Lpref Origin Next Hop AS Path
192.0.2.0/30 0 - Incomplete 192.0.2.1 65541
192.0.2.4/30 0 - Incomplete 192.0.2.1 65541
198.51.100.11/32 0 - Incomplete 192.0.2.1 65541
198.51.100.12/32 0 - Incomplete 192.0.2.1 65541
198.51.100.21/32 0 - Incomplete 192.0.2.1 65541, 65542
198.51.100.22/32 0 - Incomplete 192.0.2.1 65541, 65542
198.51.100.100/32 0 - Incomplete 192.0.2.1 65541
198.51.100.101/32 0 - Incomplete 192.0.2.1 65541
supervisor@rtbrick: op> show bgp tcp bgp.iod.1 connection Instance Local IP Address Remote IP Address Local Port Remote Port State default 192.0.2.1 192.0.2.2 179 58311 Time-Wait default 192.0.2.1 192.0.2.2 179 58312 Time-Wait default 192.0.2.1 192.0.2.2 58312 179 Time-Wait default 192.0.2.1 192.0.2.2 58313 179 Established
Example 2: Detailed information of the BGP TCP connections
supervisor@rtbrick: op> show bgp tcp bgp.iod.1 connection detail
Instance: default
Local IPv4 address : 192.0.2.1
Remote IPv4 address : 192.0.2.2
Local port : 179
Remote port : 58311
State :
Internal
Options : -- | Keepalive | --
TOS : 192
TTL : 1
Priority : 1
Flags : -|-|-|Receive Closed|Fin|Nagle Disabled|-|Wnd Scale|-|-|-
Last trigger : 148
Timer : 29
Timers
Poll : 0s
Poll interval : 0s
Retransmission : 65535s
Receiver
Expected sequence : 7156
Available window : 96816
Announced window : 96185
Announced wnd RT edge : 103341
MSS : 1420
RTT estimate : 0
Timeout
Sequence : 7193s
Retransmission : 3s
Retransmissions : 0s
Duplicate acks : 0s
Highest ack'd sequence : 7194s
Congestion
Window : 5042
Persist count : 0
Send scale : 5
Receive scale : 5
Sender
Next seq to send : 7194
Last wnd update seq : 7155
Last wnd update ack : 7194
Window : 96128
Max window announced : 96800
Acknowledged : None
Send buf : 56476
Send queue length : 0
Unsent oversize : 0
TS last ack sent : 0
Keepalive
Next keepalive idle : 7200000
Keepalive interval : 75000
Keepalive count : 9
Keep sent count : 0
Authentication
Auth type : HMAC-SHA-256-128
key1-id : 255
key2-id : 0
Secret mismatch : 0
Latest sent digest : 13ff781f8b9a7980f0bc6aeed5d00800
Latest received digest : ced8b4c0d6ec7772781d3751e9ad4d6c
TTL Security
TTL security : False
Expected TTL : 0
TTL miss count : 0
Local IPv4 address : 192.0.2.1
Remote IPv4 address : 192.0.2.2
Local port : 179
Remote port : 58312
State :
Internal
Options : -- | Keepalive | --
TOS : 192
TTL : 1
Priority : 1
Flags : -|-|-|Receive Closed|Fin|Nagle Disabled|-|Wnd Scale|-|-|-
Last trigger : 159
Timer : 31
Timers
Poll : 0s
Poll interval : 0s
Retransmission : 65535s
Receiver
Expected sequence : 6673
Available window : 96816
Announced window : 96724
Announced wnd RT edge : 103397
MSS : 1420
RTT estimate : 0
Timeout
Sequence : 6594s
Retransmission : 5s
Retransmissions : 0s
Duplicate acks : 0s
Highest ack'd sequence : 6595s
Congestion
Window : 4381
Persist count : 0
Send scale : 5
Receive scale : 5
Sender
Next seq to send : 6595
Last wnd update seq : 6672
Last wnd update ack : 6595
Window : 96800
Max window announced : 96800
Acknowledged : None
Send buf : 56476
Send queue length : 0
Unsent oversize : 0
TS last ack sent : 0
Keepalive
Next keepalive idle : 7200000
Keepalive interval : 75000
Keepalive count : 9
Keep sent count : 0
Authentication
Auth type : HMAC-SHA-256-128
key1-id : 255
key2-id : 0
Secret mismatch : 0
Latest sent digest : 8c63c66ce0b6db0ac0a52481ce1be90c
Latest received digest : da1923f15a39ce953bcfd3c90bfd1d71
TTL Security
TTL security : False
Expected TTL : 0
TTL miss count : 0
Local IPv4 address : 192.0.2.1
Remote IPv4 address : 192.0.2.2
Local port : 58312
Remote port : 179
State :
Internal
Options : -- | Keepalive | --
TOS : 192
TTL : 1
Priority : 64
Flags : -|-|-|Receive Closed|Fin|Nagle Disabled|-|Wnd Scale|-|-|-
Last trigger : 159
Timer : 31
Timers
Poll : 0s
Poll interval : 0s
Retransmission : 65535s
Receiver
Expected sequence : 6576
Available window : 96816
Announced window : 96794
Announced wnd RT edge : 103370
MSS : 1420
RTT estimate : 0
Timeout
Sequence : 6653s
Retransmission : 5s
Retransmissions : 0s
Duplicate acks : 0s
Highest ack'd sequence : 6654s
Congestion
Window : 4472
Persist count : 0
Send scale : 5
Receive scale : 5
Sender
Next seq to send : 6654
Last wnd update seq : 6575
Last wnd update ack : 6654
Window : 96704
Max window announced : 96704
Acknowledged : None
Send buf : 56476
Send queue length : 0
Unsent oversize : 0
TS last ack sent : 0
Keepalive
Next keepalive idle : 7200000
Keepalive interval : 75000
Keepalive count : 9
Keep sent count : 0
Authentication
Auth type : HMAC-SHA-256-128
key1-id : 255
key2-id : 0
Secret mismatch : 0
Latest sent digest : 3fe0662305214b8bf9fafa07a1594a25
Latest received digest : 7aa39a7ff33bffcc0ad74e8e98ee6ce1
TTL Security
TTL security : False
Expected TTL : 0
TTL miss count : 0
Local IPv4 address : 192.0.2.1
Remote IPv4 address : 192.0.2.2
Local port : 58313
Remote port : 179
State : Established
Internal
Options : -- | Keepalive | --
TOS : 192
TTL : 1
Priority : 64
Flags : -|-|-|-|-|Nagle Disabled|-|Wnd Scale|-|-|-
Last trigger : 142
Timer : 73
Timers
Poll : 0s
Poll interval : 0s
Retransmission : 65535s
Receiver
Expected sequence : 8177
Available window : 96816
Announced window : 96816
Announced wnd RT edge : 104993
MSS : 1420
RTT estimate : 0
Timeout
Sequence : 7270s
Retransmission : 3s
Retransmissions : 0s
Duplicate acks : 0s
Highest ack'd sequence : 7326s
Congestion
Window : 5076
Persist count : 0
Send scale : 5
Receive scale : 5
Sender
Next seq to send : 7326
Last wnd update seq : 7721
Last wnd update ack : 7326
Window : 96096
Max window announced : 96704
Acknowledged : None
Send buf : 56476
Send queue length : 0
Unsent oversize : 0
TS last ack sent : 0
Keepalive
Next keepalive idle : 7200000
Keepalive interval : 75000
Keepalive count : 9
Keep sent count : 0
Authentication
Auth type : HMAC-SHA-256-128
key1-id : 255
key2-id : 0
Secret mismatch : 0
Latest sent digest : b3b62fbef0b644235ee047713e3e0565
Latest received digest : 826ce5c244bb8f227bbf088e61d53cd4
TTL Security
TTL security : False
Expected TTL : 0
TTL miss count : 0
TCP Statistics
This command displays TCP statistics information of the TCP connections used by BGP.
Syntax:
| Option | Description |
|---|---|
|
Without any option, the command displays the TCP statistics information of the TCP connections used by BGP for all instances. |
|
TCP connections summary for the given instance. |
Example: TCP statistics information of the TCP connections used by BGP for the default instance
supervisor@rtbrick: op> show bgp tcp bgp.iod.1 statistics instance default
Instance: default
IP statistics
Transmitted packets : 3103242412
Received packets : 47351
Forwarded packets : 0
Dropped packets : 0
Checksum error : 0
Invalid length error : 0
Out of memory error : 0
Routing error : 0
Protocol error : 0
Error in options : 0
Misc error : 0
Cachehit : 0
TCP statistics
Transmitted packets : 365499779
Received packets : 5577
Forwarded packets : 3014656
Dropped packets : 46
Checksum error : 0
Invalid length error : 0
Out of memory error : 0
Routing error : 3014656
Protocol error : 46
Error in options : 0
Misc error : 2097152
Cachehit : 1557594144
BGP Clear Commands
Clear commands allow to reset operational states.
BGP Peer
This commands resets BGP peerings.
Syntax:
| Option | Description |
|---|---|
|
Clears all the BGP peers. |
|
Sends route refresh to all neighbors. |
|
Re-advertises all the routes previously sent to the peer. |
|
Clears the statistics of all the BGP peers. |
|
Clears the peer for the given instance and peer IP address. |
|
Clears a specific peer for the given peer IP address and source IP address in the specified instance. |
|
Clears all peers in the given instance. |
|
Sends route refresh to specific peer for the given instance, peer-ip, source-ip and address-family. |
|
Sends route refresh to peer for the given instance, peer-ip and address-family. |
|
Sends route refresh to all peers for the given instance and address family. |
|
Re-advertises all the routes previously sent to the specific peer for the given instance, peer-ip, source-ip and address-family. |
|
Sends route refresh to peer for a given instance, peer-ip and address-family. |
|
Sends route update to all peers for given instance and address family. |
|
Clears the statistics of a specific peer for a given instance, peer-ip and source-IP. |
|
Clears the statistics of the peer for a given instance and peer-IP. |
|
Clears the statistics of all peers for a given instance. |
Example: The example below shows how to clear all the BGP peers.
supervisor@rtbrick: op> clear bgp peer all
To access the Operational State API that corresponds to this CLI, click
here.