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

實驗名稱:做OSPF的3類5類彙總
實驗拓撲redis

實驗步驟:
配置ipide

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
exitrouter

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
exitip

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
exitit

配置OSPFclass

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
exitroute

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
exitdi

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 pyshow ip rute osshow ip os da

相關文章
相關標籤/搜索