概要

広域イーサネットで相互接続している4拠点の社内ネットワークにおいて、OSPFによるルーティングを行う演習です。Part3では、小規模な拠点をスタブエリアとしてLSDBを最適化します。

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ドメインへアドバタイズします。

初期設定

「演習:実践的なOSPFルーティング Part2」完了時点から開始します。

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
 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 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
 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 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
!
!
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
 default-information originate metric-type 1
!
ip http server
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 100.1.0.2
!
!
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 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
!
!
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
 default-information originate
!
ip http server
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 100.1.0.6
!
!
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 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
 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 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
!
!
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 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
 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 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
 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 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
!
!
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 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
!
!
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 Initial 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

設定と確認 Part3:スタブエリア

Step1:エリア2のLSDBの確認

エリア2にLSAタイプ5をアドバタイズしないようにするためには、エリア2をスタブエリアとして設定します。スタブエリアの設定にともなうLSDBの変化を確認するために、現在のエリア2のLSDBを確認します。そのために、R22でshow ip ospf databaseコマンドを実行します。

R22 show ip ospf database

R22#show ip ospf database 

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

                Router Link States (Area 2)

Link ID         ADV Router      Age         Seq#       Checksum Link count
21.21.21.21     21.21.21.21     1001        0x80000039 0x005A4C 2
22.22.22.22     22.22.22.22     1708        0x80000038 0x0078E8 3
23.23.23.23     23.23.23.23     1632        0x80000038 0x007ADA 3

                Net Link States (Area 2)

Link ID         ADV Router      Age         Seq#       Checksum
10.2.1.23       23.23.23.23     1632        0x80000037 0x00DA9B

                Summary Net Link States (Area 2)

Link ID         ADV Router      Age         Seq#       Checksum
10.0.0.0        21.21.21.21     1001        0x80000035 0x005339
10.1.1.0        21.21.21.21     1001        0x80000035 0x006903
10.1.2.0        21.21.21.21     1001        0x80000035 0x008BC1
10.1.3.0        21.21.21.21     1001        0x80000035 0x0080CB
10.1.11.11      21.21.21.21     1001        0x80000035 0x00690B
10.1.12.12      21.21.21.21     1001        0x80000035 0x00541E
10.1.13.13      21.21.21.21     1001        0x80000035 0x006CE5
10.1.14.14      21.21.21.21     1001        0x80000035 0x0057F8
10.3.1.0        21.21.21.21     1001        0x80000035 0x005119
10.3.31.31      21.21.21.21     1001        0x80000035 0x00AB9E
10.4.1.0        21.21.21.21     1001        0x80000035 0x004524
10.4.41.41      21.21.21.21     1001        0x80000035 0x00CC68
10.4.42.42      21.21.21.21     1001        0x80000035 0x00E430

                Summary ASB Link States (Area 2)

Link ID         ADV Router      Age         Seq#       Checksum
13.13.13.13     21.21.21.21     1747        0x80000017 0x00D888
14.14.14.14     21.21.21.21     1747        0x80000017 0x00AAB2
42.42.42.42     21.21.21.21     1001        0x80000035 0x00616D

                Type-5 AS External Link States

Link ID         ADV Router      Age         Seq#       Checksum Tag
0.0.0.0         13.13.13.13     1540        0x80000017 0x0004E4 1
0.0.0.0         14.14.14.14     1346        0x80000017 0x0069FA 1
172.16.0.0      42.42.42.42     884         0x80000036 0x0007FE 0
172.16.1.0      42.42.42.42     884         0x80000036 0x00FB09 0
172.16.2.0      42.42.42.42     884         0x80000036 0x00F013 0

エリア2のLSDBには、LSAタイプ4およびLSAタイプ5が含まれていることがわかります。

Step2:エリア2のスタブエリアの設定

エリア2にLSAタイプ5をアドバタイズしないように、R21~R23でスタブエリアの設定を行います。

R21/R22/R23 スタブエリアの設定

router ospf 1
 area 2 stub

Step3:エリア2のLSDBの確認

エリア2をスタブエリアにしたあとのLSDBを確認します。R22では、次のような出力になります。

R22 show ip ospf database

R22#show ip ospf database 

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

                Router Link States (Area 2)

Link ID         ADV Router      Age         Seq#       Checksum Link count
21.21.21.21     21.21.21.21     75          0x8000003B 0x007432 2
22.22.22.22     22.22.22.22     74          0x8000003B 0x0090CF 3
23.23.23.23     23.23.23.23     73          0x8000003B 0x0092C1 3

                Net Link States (Area 2)

Link ID         ADV Router      Age         Seq#       Checksum
10.2.1.23       23.23.23.23     73          0x8000003A 0x00F282

                Summary Net Link States (Area 2)

Link ID         ADV Router      Age         Seq#       Checksum
0.0.0.0         21.21.21.21     88          0x80000001 0x0039B0
10.0.0.0        21.21.21.21     88          0x80000036 0x006F1E
10.1.1.0        21.21.21.21     88          0x80000036 0x0085E7
10.1.2.0        21.21.21.21     88          0x80000036 0x00A7A6
10.1.3.0        21.21.21.21     88          0x80000036 0x009CB0
10.1.11.11      21.21.21.21     88          0x80000036 0x0085EF
10.1.12.12      21.21.21.21     89          0x80000036 0x007003
10.1.13.13      21.21.21.21     89          0x80000036 0x0088CA
10.1.14.14      21.21.21.21     89          0x80000036 0x0073DD
10.3.1.0        21.21.21.21     89          0x80000036 0x006DFD
10.3.31.31      21.21.21.21     89          0x80000036 0x00C783
10.4.1.0        21.21.21.21     89          0x80000036 0x006109
10.4.41.41      21.21.21.21     89          0x80000036 0x00E84D
10.4.42.42      21.21.21.21     89          0x80000036 0x000115

スタブエリアの設定を行うことで、エリア2のLSDBからLSAタイプ4、LSAタイプ5がなくなってしまったことがわかります。そして、外部ルートの代わりにABRであるR21(ルータID:21.21.21.21)がLSAタイプ3でデフォルトルートをアドバタイズしていることがわかります。

図 エリア2のLSAのアドバタイズ
図 エリア2のLSAのアドバタイズ

Step4:エリア3のLSDBの確認

エリア3のLSDBを最小化するためには、エリア3をトータリースタブエリアとして設定します。トータリースタブエリアの設定にともなうLSDBの変化を確認するために、現在のエリア3のLSDBを確認します。そのために、R31でshow ip ospf databaseコマンドを実行します。

R31 show ip ospf database

R31#show ip ospf database 

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

-- omitted --

                Router Link States (Area 3)

Link ID         ADV Router      Age         Seq#       Checksum Link count
31.31.31.31     31.31.31.31     164         0x80000039 0x000573 2

                Summary Net Link States (Area 3)

Link ID         ADV Router      Age         Seq#       Checksum
10.0.0.0        31.31.31.31     919         0x80000036 0x00243F
10.1.1.0        31.31.31.31     919         0x80000036 0x003A09
10.1.2.0        31.31.31.31     919         0x80000036 0x005CC7
10.1.3.0        31.31.31.31     919         0x80000036 0x0051D1
10.1.11.11      31.31.31.31     919         0x80000036 0x003A11
10.1.12.12      31.31.31.31     919         0x80000036 0x002524
10.1.13.13      31.31.31.31     919         0x80000036 0x003DEB
10.1.14.14      31.31.31.31     934         0x80000036 0x0028FE
10.2.1.0        31.31.31.31     934         0x80000036 0x002E14
10.2.2.0        31.31.31.31     1034        0x80000001 0x00BA9D
10.2.3.0        31.31.31.31     1024        0x80000001 0x00AFA7
10.2.21.21      31.31.31.31     934         0x80000036 0x005BDA
10.2.22.22      31.31.31.31     1034        0x80000001 0x00DD6D
10.2.23.23      31.31.31.31     1024        0x80000001 0x00C880
10.4.1.0        31.31.31.31     934         0x80000036 0x00162A
10.4.41.41      31.31.31.31     934         0x80000036 0x009D6E
10.4.42.42      31.31.31.31     934         0x80000036 0x00B536

                Summary ASB Link States (Area 3)

Link ID         ADV Router      Age         Seq#       Checksum
13.13.13.13     31.31.31.31     934         0x80000018 0x00A98E
14.14.14.14     31.31.31.31     934         0x80000018 0x007BB8
42.42.42.42     31.31.31.31     934         0x80000036 0x003273

                Type-5 AS External Link States

Link ID         ADV Router      Age         Seq#       Checksum Tag
0.0.0.0         13.13.13.13     935         0x80000018 0x0002E5 1
0.0.0.0         14.14.14.14     769         0x80000018 0x0067FB 1
172.16.0.0      42.42.42.42     310         0x80000037 0x0005FF 0
172.16.1.0      42.42.42.42     310         0x80000037 0x00F90A 0
172.16.2.0      42.42.42.42     310         0x80000037 0x00EE14 0

エリア3のLSDBには、LSAタイプ3、LSAタイプ4およびLSAタイプ5が含まれていることがわかります。

Step5:エリア3のトータリースタブエリアの設定

エリア3のLSDBを最小化するためにエリア3をトータリースタブエリアとして設定します。

R31 トータリースタブエリアの設定

router ospf 1
 area 3 stub no-summary

Step6:エリア3のLSDBの確認

エリア3をトータリースタブエリアにしたあとのLSDBを確認します。R31では、次のような出力になります。

R31 show ip ospf database

R31#show ip ospf database 

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

-- omitted --

                Router Link States (Area 3)

Link ID         ADV Router      Age         Seq#       Checksum Link count
31.31.31.31     31.31.31.31     532         0x80000039 0x000573 2

                Summary Net Link States (Area 3)

Link ID         ADV Router      Age         Seq#       Checksum
0.0.0.0         31.31.31.31     42          0x80000001 0x000CB5

                Type-5 AS External Link States

Link ID         ADV Router      Age         Seq#       Checksum Tag
0.0.0.0         13.13.13.13     1288        0x80000018 0x0002E5 1
0.0.0.0         14.14.14.14     1122        0x80000018 0x0067FB 1
172.16.0.0      42.42.42.42     662         0x80000037 0x0005FF 0
172.16.1.0      42.42.42.42     662         0x80000037 0x00F90A 0
172.16.2.0      42.42.42.42     662         0x80000037 0x00EE14 0

エリア3をトータリースタブエリアとすることで、エリア3のLSDBにはLSAタイプ3としてデフォルトルートを表すもののみとなっていることがわかります。

なお、R31はABRなので、LSAタイプ5も表示されています。エリア3の内部ルータであれば、LSDBにはLSAタイプ5は存在しなくなります。

図 エリア3のLSAのアドバタイズ
図 エリア3のLSAのアドバタイズ

Step7:エリア4のLSDBの確認

エリア4のR42はASBRです。通常のスタブエリアにはASBRを配置できません。ASBRを配置できるようにして、LSAタイプ5をアドバタイズしないようにするためには、エリア4をNSSAとして設定します。NSSAの設定にともなうLSDBの変化を確認するために、現在のエリア4のLSDBを確認します。そのために、R42でshow ip ospf databaseコマンドを実行します。

R42 show ip ospf database

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     1586        0x80000039 0x00F7B8 2
42.42.42.42     42.42.42.42     1316        0x80000039 0x00DBC8 2

                Net Link States (Area 4)

Link ID         ADV Router      Age         Seq#       Checksum
10.4.1.42       42.42.42.42     812         0x80000038 0x008053

                Summary Net Link States (Area 4)

Link ID         ADV Router      Age         Seq#       Checksum
10.0.0.0        41.41.41.41     1586        0x80000036 0x00F644
10.1.1.0        41.41.41.41     1586        0x80000036 0x000D0E
10.1.2.0        41.41.41.41     1586        0x80000036 0x002FCC
10.1.3.0        41.41.41.41     1586        0x80000036 0x0024D6
10.1.11.11      41.41.41.41     1586        0x80000036 0x000D16
10.1.12.12      41.41.41.41     1586        0x80000036 0x00F729
10.1.13.13      41.41.41.41     1586        0x80000036 0x0010F0
10.1.14.14      41.41.41.41     1587        0x80000036 0x00FA04
10.2.1.0        41.41.41.41     1587        0x80000036 0x000119
10.2.2.0        41.41.41.41     93          0x80000002 0x008BA3
10.2.3.0        41.41.41.41     93          0x80000002 0x0080AD
10.2.21.21      41.41.41.41     1587        0x80000036 0x002EDF
10.2.22.22      41.41.41.41     93          0x80000002 0x00AE73
10.2.23.23      41.41.41.41     93          0x80000002 0x009986
10.3.1.0        41.41.41.41     1587        0x80000036 0x00F424
10.3.31.31      41.41.41.41     1587        0x80000036 0x004FA9

                Summary ASB Link States (Area 4)

Link ID         ADV Router      Age         Seq#       Checksum
13.13.13.13     41.41.41.41     1843        0x80000018 0x007C93
14.14.14.14     41.41.41.41     1843        0x80000018 0x004EBD

                Type-5 AS External Link States

Link ID         ADV Router      Age         Seq#       Checksum Tag
0.0.0.0         13.13.13.13     1946        0x80000018 0x0002E5 1
0.0.0.0         14.14.14.14     1780        0x80000018 0x0067FB 1
172.16.0.0      42.42.42.42     1316        0x80000037 0x0005FF 0
172.16.1.0      42.42.42.42     1316        0x80000037 0x00F90A 0
172.16.2.0      42.42.42.42     1317        0x80000037 0x00EE14 0

Step8:エリア4のNSSAの設定

エリア4をNSSAとして設定します。R41がエリア4へデフォルトルートをアドバタイズできるようにarea nssa default-information originateコマンドを利用します。

R41 エリア4 NSSAの設定

router ospf 1
 area 4 nssa default-information-originate

R42 エリア4 NSSAの設定

router ospf 1
 area 4 nssa

Step9:エリア4のLSDBの確認

エリア4をNSSAにしたあとのLSDBを確認します。R42では、次のような出力になります。

R42 show ip ospf database

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     41          0x8000003B 0x009F07 2
42.42.42.42     42.42.42.42     40          0x8000003B 0x007D1F 2

                Net Link States (Area 4)

Link ID         ADV Router      Age         Seq#       Checksum
10.4.1.42       42.42.42.42     40          0x8000003A 0x0022A9

                Summary Net Link States (Area 4)

Link ID         ADV Router      Age         Seq#       Checksum
10.0.0.0        41.41.41.41     61          0x80000037 0x009A99
10.1.1.0        41.41.41.41     61          0x80000037 0x00B063
10.1.2.0        41.41.41.41     61          0x80000037 0x00D222
10.1.3.0        41.41.41.41     61          0x80000037 0x00C72C
10.1.11.11      41.41.41.41     61          0x80000037 0x00B06B
10.1.12.12      41.41.41.41     61          0x80000037 0x009B7E
10.1.13.13      41.41.41.41     61          0x80000037 0x00B346
10.1.14.14      41.41.41.41     62          0x80000037 0x009E59
10.2.1.0        41.41.41.41     62          0x80000037 0x00A46E
10.2.2.0        41.41.41.41     62          0x80000003 0x002FF8
10.2.3.0        41.41.41.41     62          0x80000003 0x002403
10.2.21.21      41.41.41.41     62          0x80000037 0x00D135
10.2.22.22      41.41.41.41     62          0x80000003 0x0052C8
10.2.23.23      41.41.41.41     62          0x80000003 0x003DDB
10.3.1.0        41.41.41.41     62          0x80000037 0x009879
10.3.31.31      41.41.41.41     62          0x80000037 0x00F2FE

                Type-7 AS External Link States (Area 4)

Link ID         ADV Router      Age         Seq#       Checksum Tag
0.0.0.0         41.41.41.41     62          0x80000001 0x003AD2 0
172.16.0.0      42.42.42.42     46          0x80000001 0x00EDE0 0
172.16.1.0      42.42.42.42     46          0x80000001 0x00E2EA 0
172.16.2.0      42.42.42.42     46          0x80000001 0x00D7F4 0

エリア4をNSSAとして設定することで、R41はエリア4にLSAタイプ5をアドバタイズしないようになります。また、R41はLSAタイプ7でデフォルトルートをエリア4にアドバタイズしています。

ASBRであるR42は、RIPドメインのルートをLSAタイプ7でエリア4にアドバタイズしていることがわかります。

図 エリア4のLSAのアドバタイズ
図 エリア4のLSAのアドバタイズ

Part3完了の設定ファイル

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
 default-information originate metric-type 1
!
ip http server
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 100.1.0.2
!
!
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
 default-information originate
!
ip http server
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 100.1.0.6
!
!
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
 area 2 stub
 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 Completed 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
 area 2 stub
 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
 area 2 stub
 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
 area 3 stub no-summary
 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
 area 4 nssa default-information-originate
 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
 area 4 nssa
 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の仕組み