zoukankan      html  css  js  c++  java
  • OSPF多区域与扩展应用

    AR1:

    Int lo 0

    Ip add 1.1.1.1 24

    Int g0/0/0

    Ip add 12.1.1.1 24

    Ospf 1 router-id 1.1.1.1

    Area 0

    Network 1.1.1.0 0.0.0.255

    Network 12.1.1.0 0.0.0.255

    AR2:

    Int lo 0

    Ip add 2.2.2.2 24

    Int g0/0/1

    Ip add 12.1.1.2 24

    Int g0/0/0

    Ip add 23.1.1.2 24

    Ospf 1 router-id 2.2.2.2

    Area 0

    Network 2.2.2.0 0.0.0.255

    Network 12.1.1.0 0.0.0.255

    Area 1

    Network 23.1.1.0 0.0.0.255

    AR3:

    Int lo 0

    Ip add 3.3.3.3 24

    Int g0/0/1

    Ip add 23.1.1.3 24

    Ospf 1 router-id 3.3.3.3

    Area 1

    Network 3.3.3.0 0.0.0.255

    Network 23.1.1.0 0.0.0.255

    路由汇总

    AR3:

    Int lo 1

    Ip add 172.16.16.1 24

    Int lo 2

    Ip add 172.16.17.1 24

    Int lo 3

    Ip add 172.16.18.1 24

    Int lo 4

    Ip add 172.16.19.1 24

    Ospf 1

    Area 1

    Network 172.16.16.0 0.0.0.255

    Network 172.16.17.1 0.0.0.255

    Network 172.16.18.0 0.0.0.255

    Network 172.16.19.0 0.0.0.255

    在AR2上做汇总

    Ospf 1

    Area 1

    Abr-summary 172.16.16.0 255.255.252.0

    外部路由引入与汇总

    AR3:

    Int lo 5

    Ip add 192.168.0.1 24

    Int lo 6

    Ip add 192.168.1.1 24

    Int lo 7

    Ip add 192.168.2.1 24

    Int lo 8

    Ip add 192.168.3.1 24

    Rip 1

    Version 2

    Undo sum

    Network 192.168.0.0

    Network 192.168.1.0

    Network 192.168.2.0

    Network 192.168.3.0

    Ospf 1

    Import-route rip 1

    Asbr-summary 192.168.0.0 255.255.252.0

    引入默认路由

    default-route-advertise always

     

     

     

  • 相关阅读:
    HDU 1849 Rabbit and Grass
    HDU 1848 Fibonacci again and again
    HDU 1847 Good Luck in CET-4 Everybody!
    HDU 1846 Brave Game
    HDU 1387 Team Queue
    HDU 1870 愚人节的礼物
    HDU 1509 Windows Message Queue
    HDU 4381 Grid
    HDU 5800 To My Girlfriend
    HDU 5806 NanoApe Loves Sequence Ⅱ
  • 原文地址:https://www.cnblogs.com/hehuanling/p/10064187.html
Copyright © 2011-2022 走看看