!
version 11.2
!
hostname Router_A
!
interface Ethernet0
ip address 10.10.10.1 255.255.255.0
no keepalive
!
interface Serial0
ip address 172.16.0.1 255.255.0.0
clockrate 64000
!
router bgp 100
no synchronization
network 10.10.10.0 mask 255.255.255.0
neighbor 172.16.0.2 remote-as 200
no auto-summary
!
ip classless
ip route 0.0.0.0 0.0.0.0 172.16.0.2
!
end
●Router_Bの設定
!
version 11.2
!
hostname Router_B
!
enable password cisco
!
interface Serial0
ip address 172.16.0.2 255.255.0.0
!
interface Serial1
ip address 172.17.0.1 255.255.0.0
clockrate 64000
!
router bgp 200
no synchronization
neighbor 172.16.0.1 remote-as 100
neighbor 172.17.0.2 remote-as 200
no auto-summary
!
ip classless
!
end
●Router_Cの設定
!
version 11.2
!
hostname Router_C
!
enable password cisco
!
interface Serial0
ip address 172.17.0.2 255.255.0.0
!
router bgp 200
no synchronization
neighbor 172.17.0.1 remote-as 200
no auto-summary
!
ip classless
!
end
各ルータのルーティングテーブルを確認してみます。
●Router_Aのルーティングテーブル
Gateway of last resort is 172.16.0.2 to network 0.0.0.0
10.0.0.0/24 is subnetted, 1 subnets
C 10.10.10.0 is directly connected, Ethernet0
C 172.16.0.0/16 is directly connected, Serial0
S* 0.0.0.0/0 [1/0] via 172.16.0.2
●Router_Bのルーティングテーブル
Gateway of last resort is not set
10.0.0.0/24 is subnetted, 1 subnets
B 10.10.10.0 [20/0] via 172.16.0.1, 00:13:22
C 172.16.0.0/16 is directly connected, Serial0
C 172.17.0.0/16 is directly connected, Serial1
●Router_Cのルーティングテーブル
Gateway of last resort is not set
C 172.17.0.0/16 is directly connected, Serial0
Router_Bでは、BGPによる「10.10.10.0」の経路があります。
Router_Cでは、BGPによる「10.10.10.0」の経路がありません。
Router_Cで、BGPテーブルを確認します。
Router_C#show ip bgp
BGP table version is 1, local router ID is 172.17.0.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
* i10.10.10.0/24 172.16.0.1 0 100 0 100 i
設定の反映を早めるために、「clear ip bgp *」で確立しているBGPピアをリセットします。
Router_C#clear ip bgp *
しばらく待ってから(直ぐに反映されます)
Router_Cで、BGPテーブルを確認します。
Router_C#sh ip bgp
BGP table version is 2, local router ID is 172.17.0.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*>i10.10.10.0/24 172.17.0.1 0 100 0 100 i
Gateway of last resort is not set
10.0.0.0/24 is subnetted, 1 subnets
B 10.10.10.0 [200/0] via 172.17.0.1, 00:03:29
C 172.17.0.0/16 is directly connected, Serial0