This section describes the show commands that are supported by the Dynamic Routing by Using BGP feature.
show bgp-kernel-route
Use the show bgp-kernel-route command to view all the kernel level routes for a BGP router.
The following configuration is a sample output of the show bgp-kernel-route command:
kernel-route
-----bgpspeaker-pod-1 ----
DestinationIP SourceIP Gateway
209.165.200.235 209.165.200.239 209.165.200.239
-----bgpspeaker-pod-2 ----
DestinationIP SourceIP Gateway
209.165.200.235 209.165.200.229 209.165.200.244
show bgp-global
Use the show bgp-global command to view all BGP global configurations.
The following configuration is a sample output of the show bgp-global command:
global-details
-----bgpspeaker-pod-1 ----
AS: 65000
Router-ID: 209.165.200.239
Listening Port: 179, Addresses: 209.165.200.239
AS: 65000
Router-ID: 209.165.200.232
Listening Port: 179, Addresses: 209.165.200.232
-----bgpspeaker-pod-2 ----
AS: 65000
Router-ID: 209.165.200.235
Listening Port: 179, Addresses: 209.165.200.235
AS: 65000
Router-ID: 209.165.200.246
Listening Port: 179, Addresses: 209.165.200.246
show bgp-neighbors
Use the show bgp-neighbors command to view all BGP neighbors for a BGP router.
The following configuration is a sample output of the show bgp-neighbors command:
neighbor-details
-----bgpspeaker-pod-2 ----
Peer AS Up/Down State |#Received Accepted
209.165.200.244 60000 00:34:20 Establ | 10 10
Peer AS Up/Down State |#Received Accepted
209.165.200.250 60000 00:34:16 Establ | 3 3
-----bgpspeaker-pod-1 ----
Peer AS Up/Down State |#Received Accepted
209.165.200.244 60000 00:33:53 Establ | 10 10
Peer AS Up/Down State |#Received Accepted
209.165.200.250 60000 00:33:53 Establ | 3 3
show bgp-neighbors ip
Use the show bgp-neighbors
ip command to view details of a neighbor for a BGP router.
The following configuration is a sample output of the show bgp-neighbors
ip command:
neighbor-details
-----bgpspeaker-pod-1 ----
BGP neighbor is 209.165.200.244, remote AS 60000
BGP version 4, remote router ID 209.165.200.244
BGP state = ESTABLISHED, up for 00:34:50
BGP OutQ = 0, Flops = 0
Hold time is 90, keepalive interval is 30 seconds
Configured hold time is 90, keepalive interval is 30 seconds
Neighbor capabilities:
multiprotocol:
ipv4-unicast: advertised and received
route-refresh: advertised and received
extended-nexthop: advertised
Local: nlri: ipv4-unicast, nexthop: ipv6
4-octet-as: advertised and received
Message statistics:
Sent Rcvd
Opens: 1 1
Notifications: 0 0
Updates: 1 2
Keepalives: 70 70
Route Refresh: 0 0
Discarded: 0 0
Total: 72 73
Route statistics:
Advertised: 0
Received: 10
Accepted: 10
-----bgpspeaker-pod-2 ----
BGP neighbor is 209.165.200.244, remote AS 60000
BGP version 4, remote router ID 209.165.200.244
BGP state = ESTABLISHED, up for 00:35:17
BGP OutQ = 0, Flops = 0
Hold time is 90, keepalive interval is 30 seconds
Configured hold time is 90, keepalive interval is 30 seconds
Neighbor capabilities:
multiprotocol:
ipv4-unicast: advertised and received
route-refresh: advertised and received
extended-nexthop: advertised
Local: nlri: ipv4-unicast, nexthop: ipv6
4-octet-as: advertised and received
Message statistics:
Sent Rcvd
Opens: 1 1
Notifications: 0 0
Updates: 1 2
Keepalives: 71 71
Route Refresh: 0 0
Discarded: 0 0
Total: 73 74
Route statistics:
Advertised: 0
Received: 10
Accepted: 10
show bgp-route-summary
Use the show bgp-route-summary command to view all the route details of a BGP router.
The following configuration is a sample output of the show bgp-route-summary command:
route-details
-----bgpspeaker-pod-1 ----
Table afi:AFI_IP safi:SAFI_UNICAST
Destination: 5, Path: 5
-----bgpspeaker-pod-2 ----
Table afi:AFI_IP safi:SAFI_UNICAST
Destination: 5, Path: 5
show bgp-routes
Use the show bgp-routes command to view all the routes for a BGP router.
The following configuration is a sample output of the show bgp-routes command:
bgp-route
-----bgpspeaker-pod-1 ----
Network Next Hop AS_PATH Age Attrs
*> 209.165.200.235/24 209.165.200.250 60000 00:36:39 [{Origin: i} {Med: 0}]
*> 209.165.200.227/32 209.165.200.232 00:36:44 [{Origin: e} {LocalPref: 220} {Med: 3220}]
*> 209.165.200.247/24 209.165.200.250 60000 00:36:39 [{Origin: i} {Med: 0}]
*> 209.165.200.251/24 209.165.200.250 60000 00:36:39 [{Origin: i} {Med: 0}]
*> 209.165.200.252/32 209.165.200.232 00:36:44 [{Origin: e} {LocalPref: 220} {Med: 3220}]
-----bgpspeaker-pod-2 ----
Network Next Hop AS_PATH Age Attrs
*> 209.165.200.235/24 209.165.200.250 60000 00:37:02 [{Origin: i} {Med: 0}]
*> 209.165.200.227/32 209.165.200.246 00:37:11 [{Origin: e} {LocalPref: 220} {Med: 3220}]
*> 209.165.200.228/24 209.165.200.234 60000 00:37:02 [{Origin: i} {Med: 0}]
*> 209.165.200.229/24 209.165.200.234 60000 00:37:02 [{Origin: i} {Med: 0}]
*> 209.165.200.230/32 209.165.200.246 00:37:11 [{Origin: e} {LocalPref: 220} {Med: 3220}]
KPIs
The following KPIs are supported for this feature:
Table 9. Statistics for Dynamic Routing by Using BGP
KPI Name
|
Type
|
Description/Formula
|
Label
|
bgp_outgoing_route
request_total
|
Counter
|
Total number of outgoing routes.
|
local_pref, med, next_hope, service_IP
|
bgp_outgoing_failedroute
request_total
|
Counter
|
Total number of failed outgoing routes.
|
local_pref, med, next_hope, service_IP
|
bgp_incoming_route
request_total
|
Counter
|
Total number of incoming routes.
|
interface, next_hope, service_IP
|
bgp_incoming_failedroute
request_total
|
Counter
|
Total number of failed incoming routes.
|
interface, next_hope, service_IP
|
bgp_peers_total
|
Counter
|
Total number of peers added.
|
peer_ip, as_path
|
bgp_failed_peerstotal
|
Counter
|
Total number of failed peers.
|
peer_ip, as_path, error
|