show status bgp

BGPの動作状況を参照する

show status bgp.ipv4.route

BGPの経路情報を参照する

コマンドの書式

show status bgp.ipv4.route

出力例:

BGP table version is 0, local router ID is 0.0.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale, R Removed
Origin codes: i - IGP, e - EGP, ? - incomplete
   Network          Next Hop            Metric LocPrf Weight Path
*> 0.0.0.0          10.4.22.1               22         32768 ?
*> 10.3.0.0/24      10.4.0.1                22         32768 ?
*> 10.4.0.0/24      172.16.2.9              28             0 65531 ?
*> 10.4.5.0/24      10.4.0.1                22         32768 ?
*> 10.4.10.20/30    172.16.2.9              32             0 65531 ?
*> 10.4.10.25/32    172.16.2.9              28             0 65531 ?
*> 10.4.99.0/24     172.16.1.5              20         32768 ?
*> 10.4.100.0/24    172.16.0.4               2         32768 ?
*> 10.4.105.0/24    172.16.0.4              13         32768 ?
*> 10.4.129.0/24    10.4.0.1                22         32768 ?
*> 10.44.0.0/24     0.0.0.0                  0         32768 i
*> 172.16.2.0/24    172.16.2.9              28             0 65531 ?
Total number of prefixes 12

説明

項目 項目の意味
Network 学習したネットワーク
Next Hop ゲートウェイ(ネクストホップ)アドレス
Metric BGPのmetric
LocPrf ローカルプリファレンス
Weight Weight
Path AS-PATH
Total number of prefixes プレフィックスの合計

show status bgp.ipv4.summary

BGPのサマリを参照する

コマンドの書式

show status bgp.ipv4.summary

出力例:

BGP router identifier 0.0.1.1, local AS number 65530
Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
172.16.2.9      4 65531  166046  165877        0    0    0 1d22h10m        4
Total number of neighbors 1

説明

項目 項目の意味
BGP router identifier BGPルータ識別子
local AS number 本装置が属する自律システムのAS番号
Neighbor IPアドレス
V BGPバージョン番号
AS AS番号
MsgRcvd 受信したメッセージ数
MsgSent 送信したメッセージ数
TblVer 送信したBGPデータベースの最新番号
InQ 受信した処理待ちメッセージ数
OutQ 送信待ちメッセージ数
Up/Down BGPセッションが確立(Established)してからの経過時間、又はセッションが切断してからの経過時間
  • 書式(~99時間99分99秒): HH:MM:SS (HH: hour, MM: minutes, SS: seconds)
  • 書式(100時間~): WWwDdHHh (WW: Week, D: days, HH: hours)
  • セッションが確立していない場合は現在の状態を表示
State/PfxRcd BGPセッションが Established の場合は受信した プレフィックス数
  • その他の状態の場合は次の通り: Idle, Connect, Active, OpenSent, OpenConfirm
Total number of neighbors 設定済み隣接ルータの総数

show status bgp.neighbor

BGPの隣接ルータ情報を参照する

コマンドの書式

show status bgp.neighbor

出力例:

BGP neighbor is 172.16.2.9, remote AS 65531, local AS 65530, external link
  BGP version 4, remote router ID 10.4.0.9
  BGP state = Established, up for 1d22h10m
  Last read 00:00:05, hold time is 4, keepalive interval is 1 seconds
  Configured hold time is 180, keepalive interval is 60 seconds
  Neighbor capabilities:
    4 Byte AS: advertised and received
    Route refresh: advertised and received(old & new)
    Address family IPv4 Unicast: advertised and received
  Message statistics:
    Inq depth is 0
    Outq depth is 0
                         Sent       Rcvd
    Opens:                  1          1
    Notifications:          0          0
    Updates:                3          1
    Keepalives:        165891     166062
    Route Refresh:          0          0
    Capability:             0          0
    Total:             165895     166064
  Minimum time between advertisement runs is 30 seconds
 For address family: IPv4 Unicast
  Community attribute sent to this neighbor(both)
  Inbound path policy configured
  Outbound path policy configured
  Route map for incoming advertisements is *nb-172.16.2.9-in
  Route map for outgoing advertisements is *nb-172.16.2.9-out
  4 accepted prefixes
  Connections established 1; dropped 0
  Last reset never
Local host: 172.16.2.42, Local port: 65532
Foreign host: 172.16.2.9, Foreign port: 179
Nexthop: 172.16.2.42

説明

項目 項目の意味
BGP neighbor is 隣接ルータのIPアドレス
remote AS 隣接ルータのAS番号
local AS 本装置が属する自立システムのAS番号
external link eBGPピアである
internal link iBGPピアである
BGP version BGPバージョン番号
remote router ID 隣接ルータのルータID
BGP state 状態: Idle, Active, OpenSent, OpenConfirm, Established, Clearing, Deleted
up for BGPセッションがupしてからの経過時間
Last read 最後のメッセージを読み込んだ時刻
hold time is ホールドタイム(単位:秒)
keepalive interval is キープアライブ間隔(単位:秒)
Configured hold time is, keepalive interval is コンフィグに設定されたホールドタイムとキープアライブ間隔
Neighbor Capabilities 隣接ルータから通知されたCapability情報(4 Byte AS, Route Reflesh, Address faimily IPv4 Unicast)
Message Statistics 隣接ルータに関するBGPメッセージの統計値
  • Inq depth is <n>
  • Outq depth is <m>
  • Opens:
  • Notifications:
  • Updates:
  • Keepalives:
  • Route Refresh:
  • Capability:
  • Total:
Minimum time between advertisement runs is BGP広報の最小間隔(単位:秒)
For address family: IPv4 Unicast
Inbound soft reconfiguration allowed
soft reconfiguration に対応している
accepted prefixes
受け付けたプレフィックス数
Connections established BGP接続の確立数
dropped BGP接続のドロップ数
Last reset 最後に接続がリセットされてからの経過時間

show status bgp.neighbor.password

BGPの隣接ルータの認証パスワードを参照する

コマンドの書式

show status bgp.neighbor.password

TCP MD5 認証使用:

[md5]
  neighbor        self           password
  ========================================
  192.168.0.1     192.168.0.2    tcp-md5password
  192.168.0.10    192.168.0.2    01234567890123456789012345678901234567890123456789012345678901234567890123456789

TCP MD5 認証未使用時:

[md5]
  No entries

説明

項目 項目の意味
neighbor 隣接ルータのIPアドレス
self TCP MD5認証使用時にパケット送信元となる自身のアドレス

送信に利用する送信元アドレスが経路表上で未定の場合は (none) が表示されます

password システムに登録されたパスワード文字列
注: コンフィグに設定されていてもシステムに未登録の認証パスワードは表示されません。認証パスワードがシステムに登録されるには、当該隣接ルータへの経路が経路表に存在する必要があります。