!
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 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:23, Serial0
R 172.18.0.0/16 [120/10] via 172.17.0.2, 00:00:23, Serial0
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:22, Serial0
O 172.19.0.0/16 [110/1563] via 172.18.0.2, 00:00:02, Serial1
C 172.18.0.0/16 is directly connected, Serial1
●Router_Cのルーティングテーブル
Gateway of last resort is not set
O E2 172.17.0.0/16 [110/100] via 172.18.0.1, 00:00:57, Serial0
O E2 172.16.0.0/16 [110/100] via 172.18.0.1, 00:00:57, Serial0
C 172.19.0.0/16 is directly connected, FastEthernet0
C 172.18.0.0/16 is directly connected, Serial0
Router_BでどのタイプのOSPFルータを担当しているかを確認します。確認には「show ip ospf」コマンドを使用します。
Router#show ip ospf
●Router_B
Router_B#show ip ospf
Routing Process "ospf 1" with ID 172.18.0.1
Supports only single TOS(TOS0) routes
Supports opaque LSA
It is an autonomous system boundary router
Redistributing External Routes from,
rip with metric mapped to 100, includes subnets in redistribution
SPF schedule delay 5 secs, Hold time between two SPFs 10 secs
Minimum LSA interval 5 secs. Minimum LSA arrival 1 secs
Number of external LSA 2. Checksum Sum 0x1A8FA
Number of opaque AS LSA 0. Checksum Sum 0x0
Number of DCbitless external and opaque AS LSA 0
Number of DoNotAge external and opaque AS LSA 0
Number of areas in this router is 1. 1 normal 0 stub 0 nssa
External flood list length 0
Area BACKBONE(0)
Number of interfaces in this area is 1
Area has no authentication
SPF algorithm executed 3 times
Area ranges are
Number of LSA 2. Checksum Sum 0x15617
Number of opaque link LSA 0. Checksum Sum 0x0
Number of DCbitless LSA 0
Number of indication LSA 0
Number of DoNotAge LSA 0
Flood list length 0