返回顶部
首页 > 资讯 > 后端开发 > Python >思科OSPF的LSA的3类5类汇总小实验
  • 572
分享到

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

思科OSPFLSA 2023-01-31 06:01:50 572人浏览 薄情痞子

Python 官方文档:入门教程 => 点击学习

摘要

实验名称:作OSPF的3类5类汇总实验拓扑 实验步骤:配置ip R1:enableconf tint f 0/0no shuip add 192.168.12.1 255.255.255.0exitint l 0ip add 10.10.1

实验名称:作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

--结束END--

本文标题: 思科OSPF的LSA的3类5类汇总小实验

本文链接: https://lsjlt.com/news/189674.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作