!
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 ospf 1
redistribute rip
network 172.18.0.0 0.0.255.255 area 0
!
router rip
redistribute ospf 1
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
!
no scheduler allocate
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_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:02, Serial0
O 172.19.0.0/16 [110/1563] via 172.18.0.2, 00:17:12, Serial1
C 172.18.0.0/16 is directly connected, Serial1
全てのルートがルーティングテーブルに格納されています。
●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
Gateway of last resort is not set
O E2 172.17.0.0/16 [110/20] via 172.18.0.1, 00:17:43, Serial0
O E2 172.16.0.0/16 [110/20] via 172.18.0.1, 00:17:43, Serial0
C 172.19.0.0/16 is directly connected, FastEthernet0
C 172.18.0.0/16 is directly connected, Serial0