!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router_A
!
boot-start-marker
boot-end-marker
!
enable password cisco
!
no aaa new-model
ip subnet-zero
!
ip cef
!
interface FastEthernet0
ip address 172.16.0.1 255.255.0.0
speed auto
no keepalive
!
interface Serial0
bandwidth 64
ip address 172.17.0.1 255.255.0.0
clockrate 64000
no fair-queue
!
router rip
network 172.16.0.0
network 172.17.0.0
!
ip classless
no ip http server
!
!
line con 0
line aux 0
line vty 0 4
password cisco
login
!
end
●Router_Bの設定
!
version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Router_B
!
logging buffered 4096 debugging
enable password cisco
!
memory-size iomem 25
ip subnet-zero
!
interface Serial0
bandwidth 64
ip address 172.17.0.2 255.255.0.0
no fair-queue
!
interface Serial1
bandwidth 64
ip address 172.18.0.1 255.255.0.0
!
interface FastEthernet0
no ip address
shutdown
speed auto
!
router rip
redistribute igrp 100 metric 10
network 172.17.0.0
!
router igrp 100
redistribute rip route-map rip-to-igrp
network 172.18.0.0
!
ip classless
no ip http server
!
access-list 1 permit 172.16.0.0
route-map rip-to-igrp permit 10
match ip address 1
set metric 32 100 255 1 1500
!
route-map rip-to-igrp permit 20
set metric 64 100 255 1 1500
!
line con 0
exec-timeout 0 0
transport input none
line aux 0
line vty 0 4
password cisco
login
!
end
●Router_Cの設定
!
version 12.2
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Router_C
!
enable password cisco
!
memory-size iomem 25
ip subnet-zero
!
interface FastEthernet0
ip address 172.19.0.1 255.255.0.0
no keepalive
speed auto
!
interface Serial0
bandwidth 64
ip address 172.18.0.2 255.255.0.0
no fair-queue
clockrate 64000
!
interface Serial1
no ip address
shutdown
!
interface Serial2
no ip address
shutdown
!
router igrp 100
network 172.18.0.0
network 172.19.0.0
!
ip classless
no ip http server
!
line con 0
line aux 0
line vty 0 4
password cisco
login
!
end
各ルータのルーティングテーブルを確認してみます。
●Router_Aのルーティングテーブル
Gateway of last resort is not set
C 172.17.0.0/16 is directly connected, Serial0
C 172.16.0.0/16 is directly connected, FastEthernet0
R 172.19.0.0/16 [120/10] via 172.17.0.2, 00:00:01, Serial0
R 172.18.0.0/16 [120/10] via 172.17.0.2, 00:00:01, Serial0
●Router_Bのルーティングテーブル
Gateway of last resort is not set
C 172.17.0.0/16 is directly connected, Serial0
R 172.16.0.0/16 [120/1] via 172.17.0.1, 00:00:03, Serial0
I 172.19.0.0/16 [100/158260] via 172.18.0.2, 00:00:27, Serial1
C 172.18.0.0/16 is directly connected, Serial1
●Router_Cのルーティングテーブル
Gateway of last resort is not set
I 172.17.0.0/16 [100/158350] via 172.18.0.1, 00:00:01, Serial0
I 172.16.0.0/16 [100/314600] via 172.18.0.1, 00:00:01, Serial0
C 172.19.0.0/16 is directly connected, FastEthernet0
C 172.18.0.0/16 is directly connected, Serial0
Router_B#show int s1
Serial1 is up, line protocol is up
Hardware is PowerQUICC Serial
Internet address is 172.18.0.1/16
MTU 1500 bytes, BW 64 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation HDLC, loopback not set
・
・
(省略)