!
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.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 ospf 1
redistribute rip metric 100 subnets
network 172.18.0.0 0.0.255.255 area 0
!
router rip
redistribute ospf 1 metric 10
network 172.17.0.0
!
ip classless
no ip http server
!
!
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
!
router ospf 1
log-adjacency-changes
network 172.18.0.0 0.0.255.255 area 0
network 172.19.0.0 0.0.255.255 area 0
!
ip classless
no ip http server
!
!
line con 0
line aux 0
line vty 0 4
password cisco
login
!
no scheduler allocate
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:12, Serial0
R 172.18.0.0/16 [120/10] via 172.17.0.2, 00:00:12, Serial0
Gateway of last resort is not set
C 172.17.0.0/16 is directly connected, Serial0
O 172.19.0.0/16 [110/1563] via 172.18.0.2, 00:56:01, Serial1
C 172.18.0.0/16 is directly connected, Serial1
Gateway of last resort is not set
O E2 172.17.0.0/16 [110/100] via 172.18.0.1, 00:57:56, Serial0
C 172.19.0.0/16 is directly connected, FastEthernet0
C 172.18.0.0/16 is directly connected, Serial0
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:10, Serial0
R 172.18.0.0/16 [120/10] via 172.17.0.2, 00:00:10, 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:25, Serial0
O 172.19.0.0/16 [110/1563] via 172.18.0.2, 01:24:42, Serial1
C 172.18.0.0/16 is directly connected, Serial1
「172.16.0.0/16」ルートを学習しています。
配送元が「connected」の場合、シードメトリック値は、1になっています。
R 172.16.0.0/16 [120/1] via 172.17.0.1, 00:00:25, Serial0
「connected」の場合、シードメトリック値の設定は、省略できます。
●Router_Cのルーティングテーブル
Gateway of last resort is not set
O E2 172.17.0.0/16 [110/100] via 172.18.0.1, 01:26:33, Serial0
O E2 172.16.0.0/16 [110/100] via 172.18.0.1, 00:03:23, Serial0
C 172.19.0.0/16 is directly connected, FastEthernet0
C 172.18.0.0/16 is directly connected, Serial0