!
version 11.2
no service udp-small-servers
no service tcp-small-servers
!
hostname Router_A
!
enable password cisco
!
interface Ethernet0
ip address 172.19.0.2 255.255.0.0
no keepalive
!
interface Ethernet1
no ip address
shutdown
!
interface Serial0
ip address 172.20.0.1 255.255.0.0
bandwidth 64
clockrate 64000
!
interface Serial1
no ip address
shutdown
!
router ospf 1
network 172.19.0.0 0.0.255.255 area 0
network 172.20.0.0 0.0.255.255 area 0
!
no ip classless
!
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
!
ip subnet-zero
!
interface Ethernet0
ip address 172.21.0.1 255.255.0.0
!
interface Serial0
ip address 172.20.0.2 255.255.0.0
bandwidth 64
no fair-queue
!
interface Serial1
no ip address
shutdown
!
router ospf 1
network 172.20.0.0 0.0.255.255 area 0
network 172.21.0.0 0.0.255.255 area 1
!
ip classless
logging buffered
!
line con 0
line aux 0
line vty 0 4
password cisco
login
!
end
●Router_Cの設定
!
version 11.1
service udp-small-servers
service tcp-small-servers
!
hostname Router_C
!
enable password cisco
!
ip subnet-zero
!
interface Ethernet0
ip address 172.21.0.2 255.255.0.0
!
interface Serial0
no ip address
shutdown
!
interface Serial1
no ip address
shutdown
!
interface TokenRing0
no ip address
shutdown
!
router ospf 1
network 172.21.0.0 0.0.255.255 area 1
!
ip classless
!
line con 0
line aux 0
line vty 0 4
password cisco
login
!
end
Router_Aでルーティングテーブルを確認をしてみます。
●Router_Aのルーティングテーブル
Gateway of last resort is not set
C 172.20.0.0/16 is directly connected, Serial0
O IA 172.21.0.0/16 [110/1572] via 172.20.0.2, 00:30:12, Serial0
C 172.19.0.0/16 is directly connected, Ethernet0
Router_BでどのタイプのOSPFルータを担当しているかを確認します。確認には「show ip ospf」コマンドを使用します。
Router#show ip ospf
●Router_B
Router_B#show ip ospf
Routing Process "ospf 1" with ID 172.21.0.1
Supports only single TOS(TOS0) routes
It is an area border router
Summary Link update interval is 00:30:00 and the update due in 00:14:31
SPF schedule delay 5 secs, Hold time between two SPFs 10 secs
Number of areas in this router is 2. 2 normal 0 stub
Area BACKBONE(0)
Number of interfaces in this area is 1
Area has no authentication
SPF algorithm executed 5 times
Area ranges are
Link State Update Interval is 00:30:00 and due in 00:12:20
Link State Age Interval is 00:20:00 and due in 00:12:19
Area 1
Number of interfaces in this area is 1
Area has no authentication
SPF algorithm executed 4 times
Area ranges are
Link State Update Interval is 00:30:00 and due in 00:12:29
Link State Age Interval is 00:20:00 and due in 00:12:29