思科OSPF的LSA的3类5类汇总小实验
实验名称:作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
免责声明:
① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。
② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341