思科OSPF的LSA的3类5类汇总小实验

发布时间:2019-09-13 09:28:57编辑:auto阅读(1888)

    实验名称:作OSPF的3类5类汇总
    实验拓扑

    实验步骤:
    配置ip

    R1:
    enable
    conf t
    int f 0/0
    no shu
    ip add 192.168.12.1 255.255.255.0
    exit
    int l 0
    ip add 10.10.1.1 255.255.255.0
    exit

    R2:
    enable
    conf t
    int f 0/1
    no shu
    ip add 192.168.12.2 255.255.255.0
    exit
    int l 0
    ip add 10.10.2.2 255.255.255.0
    exit
    int f0/0
    no shu
    ip add 192.168.23.2 255.255.255.0
    exit

    R3:
    enable
    conf t
    int f0/1
    no shu
    ip add 192.168.23.3 255.255.255.0
    exit
    int l 0
    ip add 10.10.3.3 255.255.255.0
    exit
    int f0/0
    no shu
    ip add 192.168.34.3 255.255.255.0
    exit

    R4:
    enable
    conf t
    int f0/1
    no shu
    ip add 192.168.34.4 255.255.255.0
    exit
    int l 0
    ip add 10.10.4.4 255.255.255.0
    exit

    配置OSPF

    R1:
    router os 1
    router-id 1.1.1.1
    net 192.168.12.0 0.0.0.255 ar 12
    net 10.10.1.0 0.0.0.255 ar 12
    exit

    R2:
    router os 1
    router-id 2.2.2.2
    net 192.168.12.0 0.0.0.255 ar 12
    net 192.168.23.0 0.0.0.255 ar 0
    net 10.10.2.0 0.0.0.255 ar 0
    exit

    R3:
    router os 1
    router-id 3.3.3.3
    net 192.168.23.0 0.0.0.255 ar 0
    net 192.168.34.0 0.0.0.255 ar 0
    net 10.10.3.0 0.0.0.255 ar 0
    exit

    R4:
    router os 1
    router-id 4.4.4.4
    net 192.168.34.0 0.0.0.255 ar 0
    net 10.10.4.0 0.0.0.255 ar 0
    exit

    做3类汇总思路先在R1作几个直连路由,在R2做汇总,在其他路由
    做验证
    R1:
    int l 11
    ip add 11.11.1.1 255.255.255.0
    exit
    int l 12
    ip add 11.11.2.2 255.255.255.0
    exit
    int l 13
    ip add 11.11.3.3 255.255.255.0
    exit
    router os 1
    router-id 1.1.1.1
    net 11.11.1.0 0.0.0.255 ar 12
    net 11.11.2.0 0.0.0.255 ar 12
    net 11.11.3.0 0.0.0.255 ar 12
    exit
    clear ip os p
    y
    show ip route
    show ip os da

    R2:
    router os 1
    area 12 range 11.11.0.0 255.255.0.0 (把12区域的11.11的各
    个网段汇总为11.11.0.0网段)
    exit
    clear ip os p
    y
    show ip route
    show ip os da

    R3:
    clear ip os p
    y
    show ip route
    show ip os da
    show ip os

    R4:
    clear ip os p
    y
    show ip route
    show ip os da
    show ip os
    show ip route os

    做5类的汇总思路,先在R1做几个直连路由,静态重分发,做5类
    LSA,在R1做会总,在其他路由验证

    R1:
    int l 21
    ip add 22.22.1.1 255.255.255.0
    exit
    int l 22
    ip add 22.22.2.2 255.255.255.0
    exit
    int l 23
    ip add 22.222.3.3 255.255.255.0
    exit

    router os 1
    redistribute connected subnets (静态重分发,建5类LSA)
    exit
    router os 1
    summary-address 22.22.0.0 255.255.0.0
    exit
    clear ip os p
    y
    show ip route
    show ip os
    show ip os da

    R2:
    clear ip os p
    y
    show ip route
    show ip os da

    R3:
    clear ip os p
    y
    show ip rute os
    show ip os da

    R4:
    clear ip os p
    y
    show ip rute os
    show ip os da

关键字