思科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



本文转自 linuxpp 51CTO博客,原文链接:http://blog.51cto.com/13505118/2052704,如需转载请自行联系原作者

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值