!
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
network 10.10.10.0 mask 255.255.255.0
neighbor 172.16.0.2 remote-as 200
no auto-summary
!
ip classless
!
end
●Router_Bの設定
!
version 11.2
!
hostname Router_B
!
interface Ethernet0
ip address 20.20.20.1 255.255.255.0
no keepalive
!
interface Serial0
ip address 172.16.0.2 255.255.0.0
!
router bgp 200
network 20.20.20.0 mask 255.255.255.0
neighbor 172.16.0.1 remote-as 100
no auto-summary
!
ip classless
!
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
20.0.0.0/24 is subnetted, 1 subnets
B 20.20.20.0 [20/0] via 172.16.0.2, 00:05:04
C 172.16.0.0/16 is directly connected, Serial0
●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:03:38
20.0.0.0/24 is subnetted, 1 subnets
C 20.20.20.0 is directly connected, Ethernet0
C 172.16.0.0/16 is directly connected, Serial0