ここでは、BGP を使用したダイナミックルーティング機能でサポートされている show コマンドについて説明します。
show bgp-kernel-route
BGP ルータのカーネルレベルのすべてのルートを表示するには、show bgp-kernel-route コマンドを使用します。
次の構成は、show bgp-kernel-route コマンドの出力例です。
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
すべての BGP グローバル コンフィギュレーションを表示するには、show bgp-global コマンドを使用します。
次の構成は、show bgp-global コマンドの出力例です。
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
BGP ルータのすべての BGP ネイバーを表示するには、show bgp-neighbors コマンドを使用します。
次の構成は、show bgp-neighbors コマンドの出力例です。
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
BGP ルータのネイバーの詳細を表示するには、show bgp-neighbors ip コマンドを使用します。
次の構成は、show bgp-neighbors ip コマンドの出力例です。
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
BGP ルータのすべてのルートの詳細を表示するには、show bgp-route-summary コマンドを使用します。
次の構成は、show bgp-route-summary コマンドの出力例です。
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
BGP ルータのすべてのルートを表示するには、show bgp-routes コマンドを使用します。
次の構成は、show bgp-routes コマンドの出力例です。
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}]
KPI
この機能では、次の KPI がサポートされています。
表 9. BGP を使用したダイナミックルーティングの統計情報
KPI 名
|
タイプ
|
説明/式
|
ラベル
|
bgp_outgoing_route
request_total
|
カウンタ
|
受信ルートの総数。
|
local_pref、med、next_hope、service_IP
|
bgp_outgoing_failedroute
request_total
|
カウンタ
|
障害の発生した受信ルートの総数。
|
local_pref、med、next_hope、service_IP
|
bgp_incoming_route
request_total
|
カウンタ
|
着信ルートの総数。
|
interface、next_hope、service_IP
|
bgp_incoming_failedroute
request_total
|
カウンタ
|
障害の発生した着信ルートの総数。
|
interface、next_hope、service_IP
|
bgp_peers_total
|
カウンタ
|
追加されたピアの合計数。
|
peer_ip、as_path
|
bgp_failed_peerstotal
|
カウンタ
|
障害が発生したピアの総数。
|
peer_ip、as_path、error
|