思科OSPF的LSA的3類5類彙總小實驗

2021-09-20 23:25:37 字數 3161 閱讀 2101

實驗名稱:作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 

yshow 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

yshow ip route

show ip os da

r3:clear ip os p

yshow ip route

show ip os da

show ip os

r4:clear ip os p 

yshow 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 

yshow ip route

show ip os

show ip os da

r2:clear ip os p

yshow ip route

show ip os da

r3:clear ip os p

yshow ip rute os

show ip os da

r4:clear ip os p

yshow ip rute os

show ip os da

lsa五類 OSPF外部路由4類5類LSA

一 拓撲 二 igp配置 1 需求 r5和r6配置rip,r6引入外部路由 r5配置 rip r5 rip 1 di th rip 1 undo summary version 2 network 10.0.0.0 r6配置 rip r6 rip 1 di th rip 1 version 2 ne...

lsa五類 OSPF五類LSA型別詳解

實驗拓撲 簡單說明 cisco和華為的管理距離不同,當然配置也不可能相同 cisco 110huawei 10 華為通過ospf學習到的路由為內部路由器,值是10,在ospf程序裡引入rip路由,外部路由器的話,150 ospf在內部無環,但是當然不可能是不出環的,不出環是不可能的,出環那麼好玩,是...

OSPF及一類LSA 二類LSA

ospf 鏈路狀態行協議 距離向量型和鏈路狀態型的區別 距離向量型 分布式計算 路由傳遞的計算都包含前乙個路由器計算的基礎。好處 減少計算量可以達到快速收斂的目的。壞處 前乙個計算錯誤會出現問題可靠性低,在傳遞過程中會將不優的丟棄 鏈路狀態型 先傳遞資訊沿途路由器不會進行加工。會收到全網的鏈路狀態形...