2017年5月19日金曜日

OSPF demand-circuit(Hello & LSA リフレッシュ抑制)

◾️OSPF demand-circuit(Hello & LSA リフレッシュ抑制)

 【課題】
  ・R1-R2間で定期的に実施されるHello&LSAリフレッシュ処理を抑制する。

 【補足】
  ・デフォルトではLSAは30分間隔でリフレッシュ(再送)処理が実行されます。
   又、HelloインターバルはOPSFネットワークタイプにより10秒or30秒毎に
   OSPF Helloを送出し、ネイバー関係の死活管理を実施している。
   demand-circuitを有効化する事により、OSPF Helloを送出及び
   LSAリフレッシュ処理を停止します。
   ※LSAリフレッシュのみを抑制する必要がある場合は、flood-reduction
    有効にする必要があります。

◾️検証環境図




①検証環境 事前設定確認

(1)OSPFネイバー確認

 OSPFネイバーが正常に張れている事を確認する。
1#show ip ospf neighbor

Neighbor ID     Pri   State           Dead Time   Address         Interface
192.168.12.2      1   FULL/DR         00:00:31    192.168.12.2    Ethernet0/0

IOU2#show ip ospf neighbor 

Neighbor ID     Pri   State           Dead Time   Address         Interface
1.1.1.1           1   FULL/BDR        00:00:34    192.168.12.1    Ethernet0/0

(2)OSPF設定確認
 デフォルトではdemand-circuitは無効化されている。
R1#show run all | section demand-circuit
 no ip ospf demand-circuit

R2#show run all | section demand-circuit
 no ip ospf demand-circuit

 show interfaceコマンドでdemand-circuit関連の出力がない事を確認する。
R1#show ip ospf interface e0/0| include demand
R1#


R2#show ip ospf interface e0/0| include demand
R2#

設定変更

(1)R1,R2にてdemand-circuitを有効化する。
R1(config)#int e0/0
R1(config-if)#ip ospf demand-circuit 


R2(config)#int e0/0
R2(config-if)#ip ospf demand-circuit 

(2)R1,R2の設定をshow interfaceコマンドで確認する。
R1#show ip ospf interface e0/0| include demand
  Configured as demand circuit
  Run as demand circuit


R1#show ip ospf interface e0/0| include demand
  Configured as demand circuit
  Run as demand circuit

(3)R1,R2のOSPFデータベースの確認する。
R1#show ip ospf database router 2.2.2.2 

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

Router Link States (Area 0)

  LS age: 1 (DoNotAge)            //LSカウントが止まり、DoNotAgeを出力される事を確認する。
  Options: (No TOS-capability, DC)
  LS Type: Router Links
  Link State ID: 2.2.2.2
  Advertising Router: 2.2.2.2
  LS Seq Number: 80000027
  Checksum: 0xECFF
  Length: 48
  Number of Links: 2


R2# sh ip ospf database router 1.1.1.1

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

Router Link States (Area 0)

  LS age: 1 (DoNotAge)            //LSカウントが止まり、DoNotAgeを出力される事を確認する。
  Options: (No TOS-capability, DC)
  LS Type: Router Links
  Link State ID: 1.1.1.1
  Advertising Router: 1.1.1.1
  LS Seq Number: 8000002A
  Checksum: 0x31BE
  Length: 60
  Number of Links: 3