BGPの応用設定(その3)

※Packet Tracer では、iBGPをサポートしていないため、BGPのごく一部の機能しか試すことができません。細かな機能の検証については、実機が必要です。ここでは、実機で検証した結果を紹介しています。

 今回、検証に使用したのは、Cisco2500シリーズのルータです。Cisco2500ルータは、中古で安く入手できるコストパフォーマンスに優れたルータです。

 ここでは、「BGPの応用設定(その1)」で構築したBGPネットワークを利用して、iBGP、eBGPの確認を行います。

BGPでは、

  • AS内ルーティングを行う内部BGP(iBGP)
  • AS間のルーティングを行う外部BGP(eBGP)

の2つの形態でルーティングを行っています。

つまり

●AS内部
iBGPで、同じAS内のBGPスピーカーとピア張る。

●外部AS間
eBGPで、各ASのBGPスピーカーとピアを張る。

それでは、BGPのピアを確認してみます。

ルータのピア接続の詳細を確認するには、「show ip bgp neighbors」コマンドを使用します。

Router_Bで、「show ip bgp neighbors」コマンドを実行してみます。

Router_B#show ip bgp neighbors
BGP neighbor is 172.16.0.1,  remote AS 100, external link
 Index 1, Offset 0, Mask 0x2
  BGP version 4, remote router ID 172.16.0.1
  BGP state = Established, table version = 2, up for 00:24:59
  Last read 00:00:59, hold time is 180, keepalive interval is 60 seconds
  Minimum time between advertisement runs is 30 seconds
  Received 28 messages, 0 notifications, 0 in queue
  Sent 27 messages, 0 notifications, 0 in queue
  Connections established 1; dropped 0
Connection state is ESTAB, I/O status: 1, unread input bytes: 0
Local host: 172.16.0.2, Local port: 11001
Foreign host: 172.16.0.1, Foreign port: 179

(途中略)

BGP neighbor is 172.17.0.2,  remote AS 200, internal link
 Index 0, Offset 0, Mask 0x0
  BGP version 4, remote router ID 172.17.0.2
  BGP state = Established, table version = 2,