!
hostname Router_A
!
enable password cisco
!
interface Ethernet0/0
ip address 172.16.0.1 255.255.0.0
!
interface Serial0/0
ip address 172.17.0.1 255.255.0.0
clockrate 64000
!
router rip
version 2
network 172.16.0.0
network 172.17.0.0
!
ip classless
!
line vty 0 4
password cisco
login
!
end
●Router_Bの設定
!
hostname Router_B
!
enable password cisco
!
interface Ethernet0/0
ip address 172.18.0.1 255.255.0.0
!
interface Serial0/0
ip address 172.17.0.2 255.255.0.0
!
router rip
version 2
network 172.17.0.0
network 172.18.0.0
!
ip classless
!
line vty 0 4
password cisco
login
!
end
Router_A、Router_Bのルーティングテーブルを確認してみます。
●Router_Aのルーティングテーブル
Gateway of last resort is not set
C 172.17.0.0/16 is directly connected, Serial0/0
C 172.16.0.0/16 is directly connected, Ethernet0/0
R 172.18.0.0/16 [120/1] via 172.17.0.2, 00:00:09, Serial0/0
●Router_Bのルーティングテーブル
Gateway of last resort is not set
C 172.17.0.0/16 is directly connected, Serial0/0
R 172.16.0.0/16 [120/1] via 172.17.0.1, 00:00:17, Serial0/0
C 172.18.0.0/16 is directly connected, Ethernet0/0