!
version 11.2
no service udp-small-servers
no service tcp-small-servers
!
hostname Router_A
!
enable password cisco
!
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
!
interface Serial1
ip address 172.18.0.1 255.255.0.0
clockrate 64000
!
router bgp 100
no synchronization
network 10.10.10.0 mask 255.255.255.0
network 172.16.0.0
network 172.18.0.0
neighbor 172.16.0.2 remote-as 100
neighbor 172.18.0.2 remote-as 100
no auto-summary
!
ip classless
!
line con 0
line aux 0
line vty 0 4
password cisco
login
!
end
●Router_Bの設定
!
version 11.2
no service udp-small-servers
no service tcp-small-servers
!
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 100
no synchronization
network 172.16.0.0
network 172.17.0.0
neighbor 172.16.0.1 remote-as 100
neighbor 172.17.0.2 remote-as 100
no auto-summary
!
ip classless
!
line con 0
line aux 0
line vty 0 4
password cisco
login
!
end
●Router_Cの設定
!
version 11.2
no service udp-small-servers
no service tcp-small-servers
!
hostname Router_C
!
enable password cisco
!
interface Serial0
ip address 172.17.0.2 255.255.0.0
!
interface Serial1
ip address 172.18.0.2 255.255.0.0
!
router bgp 100
no synchronization
network 172.17.0.0
network 172.18.0.0
neighbor 172.17.0.1 remote-as 100
neighbor 172.18.0.1 remote-as 100
no auto-summary
!
ip classless
!
line con 0
exec-timeout 0 0
line aux 0
line vty 0 4
password cisco
login
!
end
各ルータのルーティングテーブルを確認してみます。
●Router_Aのルーティングテーブル
Gateway of last resort is not set
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
B 172.17.0.0/16 [200/0] via 172.16.0.2, 00:01:27
C 172.18.0.0/16 is directly connected, Serial1
●Router_Bのルーティングテーブル
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.16.0.1, 00:06:49
C 172.16.0.0/16 is directly connected, Serial0
C 172.17.0.0/16 is directly connected, Serial1
B 172.18.0.0/16 [200/0] via 172.16.0.1, 00:06:49
●Router_Cのルーティングテーブル
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.18.0.1, 00:01:54
B 172.16.0.0/16 [200/0] via 172.17.0.1, 00:02:20
C 172.17.0.0/16 is directly connected, Serial0
C 172.18.0.0/16 is directly connected, Serial1