!
version 11.1
service udp-small-servers
service tcp-small-servers
!
hostname Router_A
!
enable password cisco
!
interface Ethernet0
ip address 172.16.0.1 255.255.0.0
!
interface Serial0
ip address 172.17.0.1 255.255.0.0
bandwidth 500
clockrate 500000
!
interface Serial1
ip address 192.168.1.1 255.255.255.0
bandwidth 64
clockrate 64000
!
router rip
network 172.16.0.0
network 172.17.0.0
!
ip classless
ip route 172.18.0.0 255.255.0.0 192.168.1.2
!
line con 0
line aux 0
line vty 0 4
password cisco
login
!
end
●Router_Bの設定
!
version 11.1
service udp-small-servers
service tcp-small-servers
!
hostname Router_B
!
enable password cisco
!
interface Ethernet0
ip address 172.18.0.1 255.255.0.0
!
interface Serial0
ip address 172.17.0.2 255.255.0.0
bandwidth 500
no fair-queue
!
interface Serial1
ip address 192.168.1.2 255.255.255.0
bandwidth 64
!
router rip
network 172.17.0.0
network 172.18.0.0
!
ip classless
ip route 172.16.0.0 255.255.0.0 192.168.1.1
logging buffered
!
line con 0
exec-timeout 0 0
line aux 0
line vty 0 4
password cisco
login
!
end
Router_A、Router_Bのルーティングテーブルを確認してみます。
●Router_Aのルーティングテーブル
Gateway of last resort is not set
C 192.168.1.0/24 is directly connected, Serial1
C 172.16.0.0/16 is directly connected, Ethernet0
C 172.17.0.0/16 is directly connected, Serial0
S 172.18.0.0/16 [1/0] via 192.168.1.2
●Router_Bのルーティングテーブル
Gateway of last resort is not set
C 192.168.1.0/24 is directly connected, Serial1
C 172.16.0.0/16 is directly connected, Ethernet0
C 172.17.0.0/16 is directly connected, Serial0
S 172.18.0.0/16 [1/0] via 192.168.1.2