OSPF包括的な実験

ラボトポロジ

実験需要

図1に示すように、IPアドレスに応じた構成を示し、ゲートウェイポイントPC1はR8で
192.168.0.0/24,192.168.1.0/24,192.168.2.0/24エリア0,192.168.10.0に属する前記2、OSPFは、/、4つの領域に分割されています図24は、AREA1,192.168.4.0 / 24,100.0.0.0 / 24属するAREA2,192.168.5.0,100.1.1.0 / 24 AREA3に属する属する
。3、により骨格スペーサーにリンク断を防止するために、仮想コネクションR3及びR4内に配置されました
静的ルートR5および172.16.0.0/24 172.16.1.0/24セグメント上に配置され、OSPFの内部に導入された4、
R7及びR8、R5およびネクストホップポイントR6にデフォルトルートを設定し、5
。6に172.16.1.0/24 172.16.0.0/24のASBRと正確ルート集約ネットワーク上
7、それぞれ面積セグメントは0であり、重合経路上R3及びR4
8は、NSSA領域AREA3のように構成される
9、R6静的ルート設定100.2.2.0/24セグメント、及びAREA3に導入し
10、認証領域AREA0の構成では、パスワードは123456です

実験手順

1.ループバックを実行するIPアドレスとポートアドレスを設定

OSPFの設定2.準地域を把握するに従って、

AR1

[Huawei]ospf 
[Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]network 192.168.0.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.255

AR2

[Huawei]ospf 
[Huawei-ospf-1]area 
[Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]net 
[Huawei-ospf-1-area-0.0.0.0]network 192.168.0.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.0]network 192.168.2.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.0]ar  
[Huawei-ospf-1-area-0.0.0.0]arp-ping 
[Huawei-ospf-1-area-0.0.0.0]area    
[Huawei-ospf-1-area-0.0.0.0]area    
[Huawei-ospf-1-area-0.0.0.0]area 3
[Huawei-ospf-1-area-0.0.0.3]net 
[Huawei-ospf-1-area-0.0.0.3]network 192.168.5.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.3]area 1
[Huawei-ospf-1-area-0.0.0.1]net 
[Huawei-ospf-1-area-0.0.0.1]network 192.168.10.0 0.0.0.255

AR3

[Huawei]ospf 
[Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]net 
[Huawei-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.0]area 1
[Huawei-ospf-1-area-0.0.0.1]network 192.168.10.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.1]area 2
[Huawei-ospf-1-area-0.0.0.2]net 
[Huawei-ospf-1-area-0.0.0.2]network 192.168.4.0 0.0.0.255

AR4

[Huawei]ospf 
[Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]net 
[Huawei-ospf-1-area-0.0.0.0]network 192.168.2.0 0.0.0.255

AR5

[Huawei]ospf 
[Huawei-ospf-1]ar   
[Huawei-ospf-1]area 2
[Huawei-ospf-1-area-0.0.0.2]net 
[Huawei-ospf-1-area-0.0.0.2]network 192.168.4.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.2]network 100.0.0.0 0.0.0.255

AR6

[Huawei]ospf 
[Huawei-ospf-1]ar   
[Huawei-ospf-1]area 3
[Huawei-ospf-1-area-0.0.0.3]net 
[Huawei-ospf-1-area-0.0.0.3]network 192.168.5.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.3]net 
[Huawei-ospf-1-area-0.0.0.3]network 100.1.1.0 0.0.0.255

3. R3およびR4における仮想リンクを設定します

AR3

[Huawei-ospf-1-area-0.0.0.1]vlink-peer 192.168.10.2 

AR4

[Huawei-ospf-1-area-0.0.0.1]vlink-peer 192.168.1.1

4.スタティックルーティング、およびOSPFの内部へ

AR5

[Huawei]IP route-static 172.16.0.1 24 100.0.0.1
[Huawei]IP route-static 172.16.1.1 24 100.0.0.1
[Huawei-ospf-1]import-route static 

AR3にOSPFルーティングテーブルを表示します

Huawei]dis ip routing-table protocol ospf 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : OSPF
         Destinations : 7        Routes : 7        

OSPF routing table status : <Active>
         Destinations : 7        Routes : 7

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

      100.0.0.0/24  OSPF    10   2           D   192.168.4.1     GigabitEthernet
0/0/2
      100.1.1.0/24  OSPF    10   3           D   192.168.10.2    GigabitEthernet
0/0/1
     172.16.0.0/24  O_ASE   150  1           D   192.168.4.1     GigabitEthernet
0/0/2
     172.16.1.0/24  O_ASE   150  1           D   192.168.4.1     GigabitEthernet
0/0/2
    192.168.0.0/24  OSPF    10   2           D   192.168.1.2     GigabitEthernet
0/0/0
    192.168.2.0/24  OSPF    10   2           D   192.168.10.2    GigabitEthernet
0/0/1
    192.168.5.0/24  OSPF    10   2           D   192.168.10.2    GigabitEthernet
0/0/1

5. R7およびR8、R5とR6にデフォルトルートを設定するネクストホップポイント

AR7で

[Huawei]ip route-static 192.168.4.0 24 100.0.0.2 

AR8で

[Huawei]ip route-static 192.168.5.0 24 100.1.1.1 

6. 172.16.0.0/24 172.16.1.0/24ネットワークで正確なルート集約ASBR

[Huawei-ospf-1]asbr-summary 172.16.0.0 255.255.254.0

AR7でのPINGテスト接続

[Huawei]ping 192.168.4.1
  PING 192.168.4.1: 56  data bytes, press CTRL_C to break
    Reply from 192.168.4.1: bytes=56 Sequence=1 ttl=255 time=30 ms
    Reply from 192.168.4.1: bytes=56 Sequence=2 ttl=255 time=40 ms
    Reply from 192.168.4.1: bytes=56 Sequence=3 ttl=255 time=10 ms
    Reply from 192.168.4.1: bytes=56 Sequence=4 ttl=255 time=40 ms
    Reply from 192.168.4.1: bytes=56 Sequence=5 ttl=255 time=10 ms

  --- 192.168.4.1 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 10/26/40 ms

AR8の接続をテストし

[Huawei]ping 192.168.5.1
  PING 192.168.5.1: 56  data bytes, press CTRL_C to break
    Reply from 192.168.5.1: bytes=56 Sequence=1 ttl=254 time=30 ms
    Reply from 192.168.5.1: bytes=56 Sequence=2 ttl=254 time=30 ms
    Reply from 192.168.5.1: bytes=56 Sequence=3 ttl=254 time=30 ms
    Reply from 192.168.5.1: bytes=56 Sequence=4 ttl=254 time=20 ms
    Reply from 192.168.5.1: bytes=56 Sequence=5 ttl=254 time=30 ms

  --- 192.168.5.1 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/28/30 ms

7. AREAルートセグメント0は、R3及びR4で重合されます

AR3

abr-summary 192.168.0.0 255.255.252.0

AR4

abr-summary 192.168.0.0 255.255.252.0

OSPFルーティングテーブルを確認する重合ことが判明しました

[Huawei]DIS IP routing-table protocol ospf 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : OSPF
         Destinations : 5        Routes : 5        

OSPF routing table status : <Active>
         Destinations : 5        Routes : 5

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

      100.0.0.0/24  OSPF    10   4           D   192.168.5.1     GigabitEthernet
0/0/1
     172.16.0.0/23  O_ASE   150  2           D   192.168.5.1     GigabitEthernet
0/0/1
    192.168.0.0/22  OSPF    10   3           D   192.168.5.1     GigabitEthernet
0/0/1
    192.168.4.0/24  OSPF    10   3           D   192.168.5.1     GigabitEthernet
0/0/1
   192.168.10.0/24  OSPF    10   2           D   192.168.5.1     GigabitEthernet
0/0/1

8. 将AREA3配置为NSSA区域

AR4

[Huawei]ospf
[Huawei-ospf-1]area 3
[Huawei-ospf-1-area-0.0.0.3]nssa 

AR6

[Huawei]ospf
[Huawei-ospf-1]area 3
[Huawei-ospf-1-area-0.0.0.3]nssa 

9. 在R6上配置到达100.2.2.0/24网段的静态路由,并引入到AREA3

AR6

[Huawei]ip route-static 100.2.2.0 24 100.1.1.2  
[Huawei-ospf-1]import-route static 

10. 在AREA0配置区域认证,密码为123456

AR1

[Huawei-ospf-1-area-0.0.0.0]authentication-mode simple cipher 123456

AR2

[Huawei-ospf-1-area-0.0.0.0]authentication-mode simple cipher 123456

AR3

[Huawei-ospf-1-area-0.0.0.0]authentication-mode simple cipher 123456

AR4

[Huawei-ospf-1-area-0.0.0.0]authentication-mode simple cipher 123456

おすすめ

転載: www.cnblogs.com/yu15/p/11290294.html