概要

広域イーサネットで相互接続している4拠点の社内ネットワークにおいて、OSPFによるルーティングを行う演習です。Part1では、OSPFの基本設定を行います。

Part1:OSPFの基本設定
Part2:デフォルトルートの生成
Part3:スタブエリア
Part4:ルート集約
Part5:トラブルシューティング

ネットワーク構成

図 演習:実践的なOSPFルーティング 論理構成図
図 演習:実践的なOSPFルーティング 論理構成図

 図 演習:実践的なOSPFルーティング ルーティングプロトコル
図 演習:実践的なOSPFルーティング ルーティングプロトコル

設定条件

Part1:OSPFの基本設定 -> このページで設定

  1. 図 ルーティングプロトコルの構成のように、OSPFおよびRIPv2の設定を行います。OSPFルータのルータIDは、YY.YY.YY.YY(YY:ルータ番号)とします。また、将来的なギガビットイーサネット導入に対応できるように設定します。
  2. 不要なインタフェースにはルーティングプロトコルのパケットを送信しないようにします。
  3. R42では、RIPv2のルートをOSPFへ再配送します。また、R42はR43へRIPv2でデフォルトルートをアドバタイズします。
  4. 10.0.0.0/24上では、R11がDR、R12がBDRとなるようにします。また、MD5によるネイバー認証を行い、ネイバーの障害検出を4秒以内にできるようにします。

Part2デフォルトルートの生成

  1. R13、R14でインターネットへルーティングするためのデフォルトルートをスタティックで設定します。
  2. R13、R14でOSPFドメインにデフォルトルートを生成します。インターネットへのルーティングはR13を優先します。

Part3:スタブエリアの設定

  1. エリア2、エリア4にはLSAタイプ5をアドバタイズしないように設定します。エリア4にはインターネットへの接続性を確保するために、デフォルトルートをアドバタイズできるようにします。
  2. エリア3のLSDBのサイズが最も小さくなるように設定します。

Part4:ルート集約

  1. エリア1、エリア2、エリア3、エリア4のネットワークアドレスを集約してバックボーンエリアにアドバタイズします。
  2. RIPv2ドメインのルートを集約してOSPFドメインへアドバタイズします。

初期設定

各ルータの以下の項目について初期設定を行なっています。

  • ホスト名
  • IPアドレス

R11 Initial Configuration (Click)

!

version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R11
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 10.1.11.11 255.255.255.255
!
interface FastEthernet0/0
 ip address 10.0.0.11 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 10.1.1.11 255.255.255.0
 duplex auto
 speed auto
!
interface Serial2/0
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/3
 no ip address
 shutdown
 serial restart-delay 0
!
!
ip http server
ip forward-protocol nd
!
!
!
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R12 Initial Configuration (Click)

!

version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R12
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 10.1.12.12 255.255.255.255
!
interface FastEthernet0/0
 ip address 10.0.0.12 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 10.1.1.12 255.255.255.0
 duplex auto
 speed auto
!
interface Serial2/0
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/3
 no ip address
 shutdown
 serial restart-delay 0
!
!
ip http server
ip forward-protocol nd
!
!
!
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R13 Initial Configuration (Click)

!

version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R13
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 10.1.13.13 255.255.255.255
!
interface FastEthernet0/0
 ip address 10.1.2.13 255.255.255.0
 ip nat inside
 ip virtual-reassembly
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 10.1.1.13 255.255.255.0
 ip nat inside
 ip virtual-reassembly
 duplex auto
 speed auto
!
interface Serial2/0
 ip address 100.1.0.1 255.255.255.252
 ip nat outside
 ip virtual-reassembly
 serial restart-delay 0
!
interface Serial2/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/3
 no ip address
 shutdown
 serial restart-delay 0
!
!
ip http server
ip forward-protocol nd
!
!
ip nat inside source list 1 interface Serial2/0 overload
!
access-list 1 permit 10.0.0.0 0.255.255.255
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R14 Initial Configuration (Click)

!

version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R14
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 10.1.14.14 255.255.255.255
!
interface FastEthernet0/0
 ip address 10.1.3.14 255.255.255.0
 ip nat inside
 ip virtual-reassembly
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 10.1.1.14 255.255.255.0
 ip nat inside
 ip virtual-reassembly
 duplex auto
 speed auto
!
interface Serial2/0
 ip address 100.1.0.5 255.255.255.252
 ip nat outside
 ip virtual-reassembly
 serial restart-delay 0
!
interface Serial2/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/3
 no ip address
 shutdown
 serial restart-delay 0
!
!
ip http server
ip forward-protocol nd
!
!
ip nat inside source list 1 interface Serial2/0 overload
!
access-list 1 permit 10.0.0.0 0.255.255.255
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R21 Initial Configuration (Click)

!

version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R21
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 10.2.21.21 255.255.255.255
!
interface FastEthernet0/0
 ip address 10.0.0.21 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 10.2.1.21 255.255.255.0
 duplex auto
 speed auto
!
interface Serial2/0
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/3
 no ip address
 shutdown
 serial restart-delay 0
!
!
ip http server
ip forward-protocol nd
!
!
!
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R22 Initial Configuration (Click)

!

version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R22
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 10.2.22.22 255.255.255.255
!
interface FastEthernet0/0
 ip address 10.2.2.22 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 10.2.1.22 255.255.255.0
 duplex auto
 speed auto
!
interface Serial2/0
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/3
 no ip address
 shutdown
 serial restart-delay 0
!
!
ip http server
ip forward-protocol nd
!
!
!
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R23 Initial Configuration (Click)

!

version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R23
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 10.2.23.23 255.255.255.255
!
interface FastEthernet0/0
 ip address 10.2.3.23 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 10.2.1.23 255.255.255.0
 duplex auto
 speed auto
!
interface Serial2/0
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/3
 no ip address
 shutdown
 serial restart-delay 0
!
!
ip http server
ip forward-protocol nd
!
!
!
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R31 Initial Configuration (Click)

!

version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R31
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 10.3.31.31 255.255.255.255
!
interface FastEthernet0/0
 ip address 10.0.0.31 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 10.3.1.31 255.255.255.0
 duplex auto
 speed auto
!
interface Serial2/0
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/3
 no ip address
 shutdown
 serial restart-delay 0
!
!
ip http server
ip forward-protocol nd
!
!
!
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R41 Initial Configuration (Click)

!

version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R41
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 10.4.41.41 255.255.255.255
!
interface FastEthernet0/0
 ip address 10.0.0.41 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 10.4.1.41 255.255.255.0
 duplex auto
 speed auto
!
interface Serial2/0
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/3
 no ip address
 shutdown
 serial restart-delay 0
!
!
ip http server
ip forward-protocol nd
!
!
!
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R42 Initial Configuration (Click)

!

version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R42
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 10.4.42.42 255.255.255.0
!
interface FastEthernet0/0
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 10.4.1.42 255.255.255.0
 duplex auto
 speed auto
!
interface Serial2/0
 ip address 172.16.0.42 255.255.255.0
 serial restart-delay 0
!
interface Serial2/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/3
 no ip address
 shutdown
 serial restart-delay 0
!
!
ip http server
ip forward-protocol nd
!
!
!
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R43 Initial Configuration (Click)

!

version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R43
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 10.4.43.43 255.255.255.255
!
interface Loopback1
 ip address 172.16.2.43 255.255.255.0 secondary
 ip address 172.16.1.43 255.255.255.0
!
interface FastEthernet0/0
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface FastEthernet1/0
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface Serial2/0
 ip address 172.16.0.43 255.255.255.0
 serial restart-delay 0
!
interface Serial2/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/3
 no ip address
 shutdown
 serial restart-delay 0
!
!
ip http server
ip forward-protocol nd
!
!
!
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

ISP Initical Configuration (Click)

!
!
!
!
!
!
!
!
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname ISP
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 100.1.1.1 255.255.255.0
!
interface FastEthernet0/0
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface FastEthernet1/0
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface Serial2/0
 ip address 100.1.0.2 255.255.255.252
 serial restart-delay 0
!
interface Serial2/1
 ip address 100.1.0.6 255.255.255.252
 serial restart-delay 0
!
interface Serial2/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/3
 no ip address
 shutdown
 serial restart-delay 0
!
!
ip http server
ip forward-protocol nd
!
!
!
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

設定と確認 Part1:OSPFの基本設定

Step1:エリア1(拠点1)のOSPFの設定

拠点1のR11~R14でOSPFの設定を行います。OSPFルーティングプロセスを有効にします。そして、エリア構成に従ってインタフェースでOSPFを有効にします。また、Loopback0はパッシブインタフェースとして設定します。

R11 エリア1 OSPF

router ospf 1
 router-id 11.11.11.11
 auto-cost reference-bandwidth 3000
 network 10.1.0.0 0.0.255.255 area 1
 passive-interface loopback 0

R12 エリア1 OSPF

router ospf 1
 router-id 12.12.12.12
 auto-cost reference-bandwidth 3000
 network 10.1.0.0 0.0.255.255 area 1
 passive-interface loopback 0

R13 エリア1 OSPF

router ospf 1
 router-id 13.13.13.13
 auto-cost reference-bandwidth 3000
 network 10.1.0.0 0.0.255.255 area 1
 passive-interface loopback 0
 passive-interface F0/0

R14 エリア1 OSPF

router ospf 1
 router-id 14.14.14.14
 auto-cost reference-bandwidth 3000
 network 10.1.0.0 0.0.255.255 area 1
 passive-interface loopback 0
 passive-interface F0/0

Step2:エリア1(拠点1)のOSPFの確認

R11~R14でOSPFの設定を確認するために、以下のshowコマンドを実行します。

  • show ip protocols
  • show ip ospf
  • show ip ospf interface
  • show ip ospf neighbor
  • show ip route ospf

R11の出力は次のようになります。

R11 エリア1 OSPFの確認

R11#show ip protocols 
Routing Protocol is "ospf 1"
  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  Router ID 11.11.11.11
  Number of areas in this router is 1. 1 normal 0 stub 0 nssa
  Maximum path: 4
  Routing for Networks:
    10.1.0.0 0.0.255.255 area 1
 Reference bandwidth unit is 3000 mbps
  Passive Interface(s):
    Loopback0
  Routing Information Sources:
    Gateway         Distance      Last Update
    12.12.12.12          110      00:00:28
    14.14.14.14          110      00:00:28
    13.13.13.13          110      00:00:28
  Distance: (default is 110)

R11#show ip ospf
 Routing Process "ospf 1" with ID 11.11.11.11
 Start time: 01:15:31.480, Time elapsed: 00:09:18.808
 -- omitted --
 Number of areas in this router is 1. 1 normal 0 stub 0 nssa
 Number of areas transit capable is 0
 External flood list length 0
    Area 1
        Number of interfaces in this area is 2 (1 loopback)
        Area has no authentication
        SPF algorithm last executed 00:07:48.884 ago
        SPF algorithm executed 3 times
        Area ranges are
        Number of LSA 5. Checksum Sum 0x022847
        Number of opaque link LSA 0. Checksum Sum 0x000000
        Number of DCbitless LSA 0
        Number of indication LSA 0
        Number of DoNotAge LSA 0
        Flood list length 0

R11#show ip ospf interface 
Loopback0 is up, line protocol is up 
  Internet Address 10.1.11.11/32, Area 1 
  Process ID 1, Router ID 11.11.11.11, Network Type LOOPBACK, Cost: 1
  Loopback interface is treated as a stub Host
FastEthernet1/0 is up, line protocol is up 
  Internet Address 10.1.1.11/24, Area 1 
  Process ID 1, Router ID 11.11.11.11, Network Type BROADCAST, Cost: 1
  Transmit Delay is 1 sec, State DROTHER, Priority 1 
  Designated Router (ID) 14.14.14.14, Interface address 10.1.1.14
  Backup Designated router (ID) 13.13.13.13, Interface address 10.1.1.13
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    oob-resync timeout 40
    Hello due in 00:00:07
  Supports Link-local Signaling (LLS)
  Index 1/1, flood queue length 0
  Next 0x0(0)/0x0(0)
  Last flood scan length is 0, maximum is 1
  Last flood scan time is 0 msec, maximum is 0 msec
  Neighbor Count is 3, Adjacent neighbor count is 2 
    Adjacent with neighbor 13.13.13.13  (Backup Designated Router)
    Adjacent with neighbor 14.14.14.14  (Designated Router)
  Suppress hello for 0 neighbor(s)
R11#show ip ospf neighbor 

Neighbor ID     Pri   State           Dead Time   Address         Interface
12.12.12.12       1   2WAY/DROTHER    00:00:34    10.1.1.12       FastEthernet1/0
13.13.13.13       1   FULL/BDR        00:00:34    10.1.1.13       FastEthernet1/0
14.14.14.14       1   FULL/DR         00:00:38    10.1.1.14       FastEthernet1/0
R11#show ip route ospf 
     10.0.0.0/8 is variably subnetted, 8 subnets, 2 masks
O       10.1.3.0/24 [110/60] via 10.1.1.14, 00:38:55, FastEthernet1/0
O       10.1.2.0/24 [110/60] via 10.1.1.13, 00:38:55, FastEthernet1/0
O       10.1.14.14/32 [110/31] via 10.1.1.14, 00:38:55, FastEthernet1/0
O       10.1.13.13/32 [110/31] via 10.1.1.13, 00:38:55, FastEthernet1/0
O       10.1.12.12/32 [110/31] via 10.1.1.12, 00:38:55, FastEthernet1/0

Step3:エリア2(拠点2)のOSPFの設定

拠点2のR21~R23でOSPFの設定を行います。

R21 エリア2 OSPF

router ospf 1
 router-id 21.21.21.21
 auto-cost reference-bandwidth 3000
 network 10.2.0.0 0.0.255.255 area 2
 passive-interface loopback 0

R22 エリア2 OSPF

router ospf 1
 router-id 22.22.22.22
 auto-cost reference-bandwidth 3000
 network 10.2.0.0 0.0.255.255 area 2
 passive-interface loopback 0
 passive-interface F0/0

R23 エリア2 OSPF

router ospf 1
 router-id 23.23.23.23
 auto-cost reference-bandwidth 3000
 network 10.2.0.0 0.0.255.255 area 2
 passive-interface loopback 0
 passive-interface F0/0

Step4:エリア2(拠点2)のOSPFの確認

R21~R23でOSPFの設定を確認するために、以下のshowコマンドを実行します。

  • show ip protocols
  • show ip ospf
  • show ip ospf interface
  • show ip ospf neighbor
  • show ip route ospf

R21の出力は次のようになります。

R21 エリア2 OSPFの確認

R21#show ip protocols 
Routing Protocol is "ospf 1"
  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  Router ID 21.21.21.21
  Number of areas in this router is 1. 1 normal 0 stub 0 nssa
  Maximum path: 4
  Routing for Networks:
    10.2.0.0 0.0.255.255 area 1
 Reference bandwidth unit is 3000 mbps
  Passive Interface(s):
    Loopback0
  Routing Information Sources:
    Gateway         Distance      Last Update
    23.23.23.23          110      00:02:31
    22.22.22.22          110      00:02:31
  Distance: (default is 110)

R21#show ip ospf 
 Routing Process "ospf 1" with ID 21.21.21.21
 Start time: 02:00:31.004, Time elapsed: 00:04:06.244
-- omitted --
 Number of areas in this router is 1. 1 normal 0 stub 0 nssa
 Number of areas transit capable is 0
 External flood list length 0
    Area 2
        Number of interfaces in this area is 2 (1 loopback)
        Area has no authentication
        SPF algorithm last executed 00:02:34.036 ago
        SPF algorithm executed 3 times
        Area ranges are
        Number of LSA 4. Checksum Sum 0x0206AC
        Number of opaque link LSA 0. Checksum Sum 0x000000
        Number of DCbitless LSA 0
        Number of indication LSA 0
        Number of DoNotAge LSA 0
        Flood list length 0

R21#show ip ospf interface 
Loopback0 is up, line protocol is up 
  Internet Address 10.2.21.21/32, Area 1 
  Process ID 1, Router ID 21.21.21.21, Network Type LOOPBACK, Cost: 1
  Loopback interface is treated as a stub Host
FastEthernet1/0 is up, line protocol is up 
  Internet Address 10.2.1.21/24, Area 1 
  Process ID 1, Router ID 21.21.21.21, Network Type BROADCAST, Cost: 30
  Transmit Delay is 1 sec, State DROTHER, Priority 1 
  Designated Router (ID) 22.22.22.22, Interface address 10.2.1.22
  Backup Designated router (ID) 23.23.23.23, Interface address 10.2.1.23
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    oob-resync timeout 40
    Hello due in 00:00:00
  Supports Link-local Signaling (LLS)
  Index 1/1, flood queue length 0
  Next 0x0(0)/0x0(0)
  Last flood scan length is 0, maximum is 1
  Last flood scan time is 0 msec, maximum is 0 msec
  Neighbor Count is 2, Adjacent neighbor count is 2 
    Adjacent with neighbor 22.22.22.22  (Designated Router)
    Adjacent with neighbor 23.23.23.23  (Backup Designated Router)
  Suppress hello for 0 neighbor(s)
R21#show ip ospf neighbor 

Neighbor ID     Pri   State           Dead Time   Address         Interface
22.22.22.22       1   FULL/DR         00:00:39    10.2.1.22       FastEthernet1/0
23.23.23.23       1   FULL/BDR        00:00:36    10.2.1.23       FastEthernet1/0
R21#show ip route ospf 
     10.0.0.0/8 is variably subnetted, 7 subnets, 2 masks
O       10.2.23.23/32 [110/31] via 10.2.1.23, 00:02:41, FastEthernet1/0
O       10.2.22.22/32 [110/31] via 10.2.1.22, 00:02:41, FastEthernet1/0
O       10.2.2.0/24 [110/60] via 10.2.1.22, 00:02:41, FastEthernet1/0
O       10.2.3.0/24 [110/60] via 10.2.1.23, 00:02:41, FastEthernet1/0

Step5:エリア3(拠点3)のOSPFの設定

拠点3のR31でOSPFの設定を行います。

R31 エリア3 OSPF

router ospf 1
 router-id 31.31.31.31
 auto-cost reference-bandwidth 3000
 network 10.3.0.0 0.0.255.255 area 3
 passive-interface loopback 0
 passive-interface F01/0

Step6:エリア3(拠点3)のOSPFの確認

R31でOSPFの設定を確認するために、以下のshowコマンドを実行します。

  • show ip protocols
  • show ip ospf
  • show ip ospf interface

R31の出力は次のようになります。

R31 エリア3 OSPFの確認

R31#show ip protocols 
Routing Protocol is "ospf 1"
  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  Router ID 31.31.31.31
  Number of areas in this router is 1. 1 normal 0 stub 0 nssa
  Maximum path: 4
  Routing for Networks:
    10.3.0.0 0.0.255.255 area 3
 Reference bandwidth unit is 3000 mbps
  Passive Interface(s):
    FastEthernet1/0
    Loopback0
  Routing Information Sources:
    Gateway         Distance      Last Update
  Distance: (default is 110)

R31#show ip ospf 
 Routing Process "ospf 1" with ID 31.31.31.31
 Start time: 02:21:55.064, Time elapsed: 00:01:22.328
-- omitted --
 Number of areas in this router is 1. 1 normal 0 stub 0 nssa
 Number of areas transit capable is 0
 External flood list length 0
    Area 3
        Number of interfaces in this area is 2 (1 loopback)
        Area has no authentication
        SPF algorithm last executed 00:01:17.404 ago
        SPF algorithm executed 1 times
        Area ranges are
        Number of LSA 1. Checksum Sum 0x00723F
        Number of opaque link LSA 0. Checksum Sum 0x000000
        Number of DCbitless LSA 0
        Number of indication LSA 0
        Number of DoNotAge LSA 0
        Flood list length 0

R31#show ip ospf interface 
Loopback0 is up, line protocol is up 
  Internet Address 10.3.31.31/32, Area 3 
  Process ID 1, Router ID 31.31.31.31, Network Type LOOPBACK, Cost: 1
  Loopback interface is treated as a stub Host
FastEthernet1/0 is up, line protocol is up 
  Internet Address 10.3.1.31/24, Area 3 
  Process ID 1, Router ID 31.31.31.31, Network Type BROADCAST, Cost: 30
  Transmit Delay is 1 sec, State DR, Priority 1 
  Designated Router (ID) 31.31.31.31, Interface address 10.3.1.31
  No backup designated router on this network
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    oob-resync timeout 40
    No Hellos (Passive interface) 
  Supports Link-local Signaling (LLS)
  Index 1/1, flood queue length 0
  Next 0x0(0)/0x0(0)
  Last flood scan length is 0, maximum is 0
  Last flood scan time is 0 msec, maximum is 0 msec
  Neighbor Count is 0, Adjacent neighbor count is 0 
  Suppress hello for 0 neighbor(s)

Step7:エリア4(拠点4)のOSPFの設定

拠点4のR41~R42でOSPFの設定を行います。

R41 エリア4 OSPF

router ospf 1
 router-id 41.41.41.41
 auto-cost reference-bandwidth 3000
 network 10.4.0.0 0.0.255.255 area 4
 passive-interface loopback 0

R42 エリア4 OSPF

router ospf 1
 router-id 42.42.42.42
 auto-cost reference-bandwidth 3000
 network 10.4.0.0 0.0.255.255 area 4
 passive-interface loopback 0

Step8:エリア4(拠点4)のOSPFの確認

R41~R42でOSPFの設定を確認するために、以下のshowコマンドを実行します。

  • show ip protocols
  • show ip ospf
  • show ip ospf interface
  • show ip ospf neighbor
  • show ip route ospf

R41の出力は次のようになります。

R41 エリア4 OSPFの確認

R41#show ip protocols 
Routing Protocol is "ospf 1"
  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  Router ID 41.41.41.41
  Number of areas in this router is 1. 1 normal 0 stub 0 nssa
  Maximum path: 4
  Routing for Networks:
    10.4.0.0 0.0.255.255 area 4
 Reference bandwidth unit is 3000 mbps
  Passive Interface(s):
    Loopback0
  Routing Information Sources:
    Gateway         Distance      Last Update
    42.42.42.42          110      00:00:26
  Distance: (default is 110)

R41#show ip ospf 
 Routing Process "ospf 1" with ID 41.41.41.41
 Start time: 02:30:02.916, Time elapsed: 00:01:25.192
-- omitted --
 Number of areas in this router is 1. 1 normal 0 stub 0 nssa
 Number of areas transit capable is 0
 External flood list length 0
    Area 4
        Number of interfaces in this area is 2 (1 loopback)
        Area has no authentication
        SPF algorithm last executed 00:00:28.744 ago
        SPF algorithm executed 2 times
        Area ranges are
        Number of LSA 3. Checksum Sum 0x01963A
        Number of opaque link LSA 0. Checksum Sum 0x000000
        Number of DCbitless LSA 0
        Number of indication LSA 0
        Number of DoNotAge LSA 0
        Flood list length 0

R41#show ip ospf interface 
Loopback0 is up, line protocol is up 
  Internet Address 10.4.41.41/32, Area 4 
  Process ID 1, Router ID 41.41.41.41, Network Type LOOPBACK, Cost: 1
  Loopback interface is treated as a stub Host
FastEthernet1/0 is up, line protocol is up 
  Internet Address 10.4.1.41/24, Area 4 
  Process ID 1, Router ID 41.41.41.41, Network Type BROADCAST, Cost: 30
  Transmit Delay is 1 sec, State BDR, Priority 1 
  Designated Router (ID) 42.42.42.42, Interface address 10.4.1.42
  Backup Designated router (ID) 41.41.41.41, Interface address 10.4.1.41
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
    oob-resync timeout 40
    Hello due in 00:00:01
  Supports Link-local Signaling (LLS)
  Index 1/1, flood queue length 0
  Next 0x0(0)/0x0(0)
  Last flood scan length is 1, maximum is 1
  Last flood scan time is 0 msec, maximum is 0 msec
  Neighbor Count is 1, Adjacent neighbor count is 1 
    Adjacent with neighbor 42.42.42.42  (Designated Router)
  Suppress hello for 0 neighbor(s)
R41#show ip ospf neighbor 

Neighbor ID     Pri   State           Dead Time   Address         Interface
42.42.42.42       1   FULL/DR         00:00:31    10.4.1.42       FastEthernet1/0
R41#show ip route ospf 
     10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
O       10.4.42.42/32 [110/31] via 10.4.1.42, 00:00:56, FastEthernet1/0

Step9:RIPv2の設定

R42とR43でRIPv2の設定を行います。R42はR43へデフォルトルートをアドバタイズします。

R42 RIPv2

router rip
 version 2
 network 172.16.0.0
 default-information originate

R43 RIPv2

router rip
 version 2
 network 172.16.0.0
 passive-interface default
 no passive-interface serial2/0

Step10:RIPv2の確認

R42/R43でRIPv2の設定を確認するために、以下のshowコマンドを実行します。

  • show ip protocols
  • show ip route rip

R42の出力は次のようになります。

R42 RIPv2の確認

R42#show ip protocols 
Routing Protocol is "ospf 1"
-- omitted --
Routing Protocol is "rip"
  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  Sending updates every 30 seconds, next due in 1 seconds
  Invalid after 180 seconds, hold down 180, flushed after 240
  Redistributing: rip
  Default version control: send version 2, receive version 2
    Interface             Send  Recv  Triggered RIP  Key-chain
    Serial2/0             2     2                                    
  Automatic network summarization is in effect
  Maximum path: 4
  Routing for Networks:
    172.16.0.0
  Routing Information Sources:
    Gateway         Distance      Last Update
    172.16.0.43          120      00:00:00
  Distance: (default is 120)

R42#show ip route rip 
     172.16.0.0/24 is subnetted, 3 subnets
R       172.16.1.0 [120/1] via 172.16.0.43, 00:00:04, Serial2/0
R       172.16.2.0 [120/1] via 172.16.0.43, 00:00:04, Serial2/0

Step11:RIPv2からOSPFへの再配送の設定

R42でRIPv2からOSPFへ再配送を行い、RIPドメインのルートをOSPFでアドバタイズします。

R42 再配送

router ospf 1
 redistribute rip subnets

Step12:RIPv2からOSPFへの再配送の確認

R42でRIPv2からOSPFへの再配送の設定を確認するため、以下のshowコマンドを実行します。

  • show ip protocols
  • show ip ospf database

R42 再配送の確認

R42#show ip protocols 
Routing Protocol is "ospf 1"
  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  Router ID 42.42.42.42
  It is an autonomous system boundary router
  Redistributing External Routes from,
    rip, includes subnets in redistribution
  Number of areas in this router is 1. 1 normal 0 stub 0 nssa
  Maximum path: 4
  Routing for Networks:
    10.4.0.0 0.0.255.255 area 4
 Reference bandwidth unit is 3000 mbps
  Passive Interface(s):
    Loopback0
  Routing Information Sources:
    Gateway         Distance      Last Update
    41.41.41.41          110      00:01:16
  Distance: (default is 110)

-- omitted --

R42#show ip ospf database 

            OSPF Router with ID (42.42.42.42) (Process ID 1)

                Router Link States (Area 4)

Link ID         ADV Router      Age         Seq#       Checksum Link count
41.41.41.41     41.41.41.41     1353        0x80000002 0x006385 2
42.42.42.42     42.42.42.42     84          0x80000003 0x004892 2

                Net Link States (Area 4)

Link ID         ADV Router      Age         Seq#       Checksum
10.4.1.42       42.42.42.42     1352        0x80000001 0x00EE1C

                Type-5 AS External Link States

Link ID         ADV Router      Age         Seq#       Checksum Tag
172.16.0.0      42.42.42.42     83          0x80000001 0x0071C9 0
172.16.1.0      42.42.42.42     83          0x80000001 0x0066D3 0
172.16.2.0      42.42.42.42     83          0x80000001 0x005BDD 0

Step13:エリア0のOSPFの設定

R11/R12/R21/R31/R41でOSPFエリア0の設定を行います。Helloインターバルを1秒に変更にし、MD5によるネイバー認証を有効化します。また、R11がDR、R12がBDRになるように以下の表のようにそれぞれのルータのF0/0のOSPFプライオリティを設定します。

インタフェースプライオリティ
R11 F0/0255
R12 F0/0100
R21 F0/00
R31 F0/00
R41 F0/00
表 OSPFプライオリティ

R11 エリア0 OSPFの設定

interface FastEthernet0/0
 ip ospf authentication message-digest
 ip ospf message-digest-key 1 md5 cisco
 ip ospf hello-interval 1
 ip ospf priority 255

router ospf 1
 network 10.0.0.0 0.0.0.255 area 0

R12 エリア0 OSPFの設定

interface FastEthernet0/0
 ip ospf authentication message-digest
 ip ospf message-digest-key 1 md5 cisco
 ip ospf hello-interval 1
 ip ospf priority 100

router ospf 1
 network 10.0.0.0 0.0.0.255 area 0

R21 エリア0 OSPFの設定

interface FastEthernet0/0
 ip ospf authentication message-digest
 ip ospf message-digest-key 1 md5 cisco
 ip ospf hello-interval 1
 ip ospf priority 0

router ospf 1
 network 10.0.0.0 0.0.0.255 area 0

R31 エリア0 OSPFの設定

interface FastEthernet0/0
 ip ospf authentication message-digest
 ip ospf message-digest-key 1 md5 cisco
 ip ospf hello-interval 1
 ip ospf priority 0

router ospf 1
 network 10.0.0.0 0.0.0.255 area 0

R41 エリア0 OSPFの設定

interface FastEthernet0/0
 ip ospf authentication message-digest
 ip ospf message-digest-key 1 md5 cisco
 ip ospf hello-interval 1
 ip ospf priority 0

router ospf 1
 network 10.0.0.0 0.0.0.255 area 0

Step14:エリア0のOSPFの確認

エリア0のOSPFの設定を確認するために、以下のshowコマンドを実行します。

  • show ip ospf interface F0/0
  • show ip ospf neighbor
  • show ip route ospf

R11の出力は次のようになります。

R11 エリア0 OSPFの確認

R11#show ip ospf interface fa0/0
FastEthernet0/0 is up, line protocol is up 
  Internet Address 10.0.0.11/24, Area 0 
  Process ID 1, Router ID 11.11.11.11, Network Type BROADCAST, Cost: 30
  Transmit Delay is 1 sec, State DR, Priority 255 
  Designated Router (ID) 11.11.11.11, Interface address 10.0.0.11
  Backup Designated router (ID) 12.12.12.12, Interface address 10.0.0.12
  Timer intervals configured, Hello 1, Dead 4, Wait 4, Retransmit 5
    oob-resync timeout 40
    Hello due in 00:00:00
  Supports Link-local Signaling (LLS)
  Index 1/3, flood queue length 0
  Next 0x0(0)/0x0(0)
  Last flood scan length is 1, maximum is 6
  Last flood scan time is 0 msec, maximum is 4 msec
  Neighbor Count is 4, Adjacent neighbor count is 4 
    Adjacent with neighbor 12.12.12.12  (Backup Designated Router)
    Adjacent with neighbor 21.21.21.21
    Adjacent with neighbor 31.31.31.31
    Adjacent with neighbor 41.41.41.41
  Suppress hello for 0 neighbor(s)
  Message digest authentication enabled
    Youngest key id is 1
R11#show ip ospf neighbor 

Neighbor ID     Pri   State           Dead Time   Address         Interface
12.12.12.12     100   FULL/BDR        00:00:03    10.0.0.12       FastEthernet0/0
21.21.21.21       0   FULL/DROTHER    00:00:03    10.0.0.21       FastEthernet0/0
31.31.31.31       0   FULL/DROTHER    00:00:03    10.0.0.31       FastEthernet0/0
41.41.41.41       0   FULL/DROTHER    00:00:03    10.0.0.41       FastEthernet0/0
12.12.12.12       1   2WAY/DROTHER    00:00:36    10.1.1.12       FastEthernet1/0
13.13.13.13       1   FULL/BDR        00:00:37    10.1.1.13       FastEthernet1/0
14.14.14.14       1   FULL/DR         00:00:30    10.1.1.14       FastEthernet1/0
R11#show ip route ospf
     172.16.0.0/24 is subnetted, 3 subnets
O E2    172.16.0.0 [110/20] via 10.0.0.41, 00:01:56, FastEthernet0/0
O E2    172.16.1.0 [110/20] via 10.0.0.41, 00:01:56, FastEthernet0/0
O E2    172.16.2.0 [110/20] via 10.0.0.41, 00:01:56, FastEthernet0/0
     10.0.0.0/8 is variably subnetted, 19 subnets, 2 masks
O IA    10.3.1.0/24 [110/60] via 10.0.0.31, 00:02:06, FastEthernet0/0
O IA    10.2.23.23/32 [110/61] via 10.0.0.21, 00:02:06, FastEthernet0/0
O IA    10.2.22.22/32 [110/61] via 10.0.0.21, 00:02:06, FastEthernet0/0
O IA    10.2.21.21/32 [110/31] via 10.0.0.21, 00:02:06, FastEthernet0/0
O       10.1.3.0/24 [110/60] via 10.1.1.14, 00:02:55, FastEthernet1/0
O IA    10.3.31.31/32 [110/31] via 10.0.0.31, 00:02:06, FastEthernet0/0
O IA    10.2.1.0/24 [110/60] via 10.0.0.21, 00:02:06, FastEthernet0/0
O       10.1.2.0/24 [110/60] via 10.1.1.13, 00:02:55, FastEthernet1/0
O IA    10.2.2.0/24 [110/90] via 10.0.0.21, 00:02:06, FastEthernet0/0
O IA    10.2.3.0/24 [110/90] via 10.0.0.21, 00:02:06, FastEthernet0/0
O       10.1.14.14/32 [110/31] via 10.1.1.14, 00:02:55, FastEthernet1/0
O       10.1.13.13/32 [110/31] via 10.1.1.13, 00:02:55, FastEthernet1/0
O       10.1.12.12/32 [110/31] via 10.1.1.12, 00:02:55, FastEthernet1/0
O IA    10.4.42.42/32 [110/61] via 10.0.0.41, 00:02:06, FastEthernet0/0
O IA    10.4.41.41/32 [110/31] via 10.0.0.41, 00:02:06, FastEthernet0/0
O IA    10.4.1.0/24 [110/60] via 10.0.0.41, 00:02:06, FastEthernet0/0

Part1完了の設定ファイル

R11 Completed Configuration (Click)

!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R11
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 10.1.11.11 255.255.255.255
!
interface FastEthernet0/0
 ip address 10.0.0.11 255.255.255.0
 ip ospf authentication message-digest
 ip ospf message-digest-key 1 md5 cisco
 ip ospf hello-interval 1
 ip ospf priority 255
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 10.1.1.11 255.255.255.0
 duplex auto
 speed auto
!
interface Serial2/0
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/3
 no ip address
 shutdown
 serial restart-delay 0
!
!
router ospf 1
 router-id 11.11.11.11
 log-adjacency-changes
 auto-cost reference-bandwidth 3000
 passive-interface Loopback0
 network 10.0.0.0 0.0.0.255 area 0
 network 10.1.0.0 0.0.255.255 area 1
!
ip http server
ip forward-protocol nd
!
!
!
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R12 Completed Configuration (Click)

!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R12
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 10.1.12.12 255.255.255.255
!
interface FastEthernet0/0
 ip address 10.0.0.12 255.255.255.0
 ip ospf authentication message-digest
 ip ospf message-digest-key 1 md5 cisco
 ip ospf hello-interval 1
 ip ospf priority 100
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 10.1.1.12 255.255.255.0
 duplex auto
 speed auto
!
interface Serial2/0
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/3
 no ip address
 shutdown
 serial restart-delay 0
!
!
router ospf 1
 router-id 12.12.12.12
 log-adjacency-changes
 auto-cost reference-bandwidth 3000
 passive-interface Loopback0
 network 10.0.0.0 0.0.0.255 area 0
 network 10.1.0.0 0.0.255.255 area 1
!
ip http server
ip forward-protocol nd
!
!
!
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R13 Completed Configuration (Click)

!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R13
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 10.1.13.13 255.255.255.255
!
interface FastEthernet0/0
 ip address 10.1.2.13 255.255.255.0
 ip nat inside
 ip virtual-reassembly
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 10.1.1.13 255.255.255.0
 ip nat inside
 ip virtual-reassembly
 duplex auto
 speed auto
!
interface Serial2/0
 ip address 100.1.0.1 255.255.255.252
 ip nat outside
 ip virtual-reassembly
 serial restart-delay 0
!
interface Serial2/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/3
 no ip address
 shutdown
 serial restart-delay 0
!
!
router ospf 1
 router-id 13.13.13.13
 log-adjacency-changes
 auto-cost reference-bandwidth 3000
 passive-interface FastEthernet0/0
 passive-interface Loopback0
 network 10.1.0.0 0.0.255.255 area 1
!
ip http server
ip forward-protocol nd
!
!
ip nat inside source list 1 interface Serial2/0 overload
!
access-list 1 permit 10.0.0.0 0.255.255.255
access-list 1 permit 172.16.0.0 0.0.255.255
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R14 Completed Configuration (Click)

!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R14
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 10.1.14.14 255.255.255.255
!
interface FastEthernet0/0
 ip address 10.1.3.14 255.255.255.0
 ip nat inside
 ip virtual-reassembly
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 10.1.1.14 255.255.255.0
 ip nat inside
 ip virtual-reassembly
 duplex auto
 speed auto
!
interface Serial2/0
 ip address 100.1.0.5 255.255.255.252
 ip nat outside
 ip virtual-reassembly
 serial restart-delay 0
!
interface Serial2/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/3
 no ip address
 shutdown
 serial restart-delay 0
!
!
router ospf 1
 router-id 14.14.14.14
 log-adjacency-changes
 auto-cost reference-bandwidth 3000
 passive-interface FastEthernet0/0
 passive-interface Loopback0
 network 10.1.0.0 0.0.255.255 area 1
!
ip http server
ip forward-protocol nd
!
!
ip nat inside source list 1 interface Serial2/0 overload
!
access-list 1 permit 10.0.0.0 0.255.255.255
access-list 1 permit 172.16.0.0 0.0.255.255
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R21 Completed Configuration (Click)

!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R21
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 10.2.21.21 255.255.255.255
!
interface FastEthernet0/0
 ip address 10.0.0.21 255.255.255.0
 ip ospf authentication message-digest
 ip ospf message-digest-key 1 md5 cisco
 ip ospf hello-interval 1
 ip ospf priority 0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 10.2.1.21 255.255.255.0
 duplex auto
 speed auto
!
interface Serial2/0
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/3
 no ip address
 shutdown
 serial restart-delay 0
!
!
router ospf 1
 router-id 21.21.21.21
 log-adjacency-changes
 auto-cost reference-bandwidth 3000
 passive-interface Loopback0
 network 10.0.0.0 0.0.0.255 area 0
 network 10.2.0.0 0.0.255.255 area 2
!
ip http server
ip forward-protocol nd
!
!
!
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R22 Initial Configuration (Click)

!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R22
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 10.2.22.22 255.255.255.255
!
interface FastEthernet0/0
 ip address 10.2.2.22 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 10.2.1.22 255.255.255.0
 duplex auto
 speed auto
!
interface Serial2/0
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/3
 no ip address
 shutdown
 serial restart-delay 0
!
!
router ospf 1
 router-id 22.22.22.22
 log-adjacency-changes
 auto-cost reference-bandwidth 3000
 passive-interface FastEthernet0/0
 passive-interface Loopback0
 network 10.2.0.0 0.0.255.255 area 2
!
ip http server
ip forward-protocol nd
!
!
!
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R23 Completed Configuration (Click)

!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R23
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 10.2.23.23 255.255.255.255
!
interface FastEthernet0/0
 ip address 10.2.3.23 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 10.2.1.23 255.255.255.0
 duplex auto
 speed auto
!
interface Serial2/0
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/3
 no ip address
 shutdown
 serial restart-delay 0
!
!
router ospf 1
 router-id 23.23.23.23
 log-adjacency-changes
 auto-cost reference-bandwidth 3000
 passive-interface FastEthernet0/0
 passive-interface Loopback0
 network 10.2.0.0 0.0.255.255 area 2
!
ip http server
ip forward-protocol nd
!
!
!
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R31 Completed Configuration (Click)

!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R31
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 10.3.31.31 255.255.255.255
!
interface FastEthernet0/0
 ip address 10.0.0.31 255.255.255.0
 ip ospf authentication message-digest
 ip ospf message-digest-key 1 md5 cisco
 ip ospf hello-interval 1
 ip ospf priority 0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 10.3.1.31 255.255.255.0
 duplex auto
 speed auto
!
interface Serial2/0
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/3
 no ip address
 shutdown
 serial restart-delay 0
!
!
router ospf 1
 router-id 23.23.23.23
 log-adjacency-changes
 auto-cost reference-bandwidth 3000
 passive-interface FastEthernet0/0
 passive-interface Loopback0
 network 10.0.0.0 0.0.0.255 area 0
 network 10.2.0.0 0.0.255.255 area 2
!
ip http server
ip forward-protocol nd
!
!
!
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R41 Completed Configuration (Click)

!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R41
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 10.4.41.41 255.255.255.255
!
interface FastEthernet0/0
 ip address 10.0.0.41 255.255.255.0
 ip ospf authentication message-digest
 ip ospf message-digest-key 1 md5 cisco
 ip ospf hello-interval 1
 ip ospf priority 0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 10.4.1.41 255.255.255.0
 duplex auto
 speed auto
!
interface Serial2/0
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/3
 no ip address
 shutdown
 serial restart-delay 0
!
!
router ospf 1
 router-id 41.41.41.41
 log-adjacency-changes
 auto-cost reference-bandwidth 3000
 passive-interface Loopback0
 network 10.0.0.0 0.0.0.255 area 0
 network 10.4.0.0 0.0.255.255 area 4
!
ip http server
ip forward-protocol nd
!
!
!
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R42 Completed Configuration (Click)

!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R42
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 10.4.42.42 255.255.255.0
!
interface FastEthernet0/0
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 10.4.1.42 255.255.255.0
 duplex auto
 speed auto
!
interface Serial2/0
 ip address 172.16.0.42 255.255.255.0
 serial restart-delay 0
!
interface Serial2/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/3
 no ip address
 shutdown
 serial restart-delay 0
!
!
router ospf 1
 router-id 42.42.42.42
 log-adjacency-changes
 auto-cost reference-bandwidth 3000
 redistribute rip subnets
 passive-interface Loopback0
 network 10.4.0.0 0.0.255.255 area 4
!
router rip
 version 2
 network 172.16.0.0
 default-information originate
!
ip http server
ip forward-protocol nd
!
!
!
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

R43 Completed Configuration (Click)

!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R43
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 10.4.43.43 255.255.255.255
!
interface Loopback1
 ip address 172.16.2.43 255.255.255.0 secondary
 ip address 172.16.1.43 255.255.255.0
!
interface FastEthernet0/0
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface FastEthernet1/0
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface Serial2/0
 ip address 172.16.0.43 255.255.255.0
 serial restart-delay 0
!
interface Serial2/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/3
 no ip address
 shutdown
 serial restart-delay 0
!
!
router rip
 version 2
 passive-interface default
 no passive-interface Serial2/0
 network 172.16.0.0
!
ip http server
ip forward-protocol nd
!
!
!
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

ISP Completed Configuration (Click)

!
!
!
!
!
!
!
!
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname ISP
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
 ip address 100.1.1.1 255.255.255.0
!
interface FastEthernet0/0
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface FastEthernet1/0
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface Serial2/0
 ip address 100.1.0.2 255.255.255.252
 serial restart-delay 0
!
interface Serial2/1
 ip address 100.1.0.6 255.255.255.252
 serial restart-delay 0
!
interface Serial2/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial2/3
 no ip address
 shutdown
 serial restart-delay 0
!
!
ip http server
ip forward-protocol nd
!
!
!
!
!
!
control-plane
!
!
!
!
mgcp behavior g729-variants static-pt
!
!
!
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
line aux 0
line vty 0 4
 login
!
!
end

関連記事

関連記事

OSPFの仕組み