CCNP课程实验-07-OSPF-Trouble-Shooting

news/2025/2/21 15:52:12/

目录

  • 实验条件
    • 网络拓朴
  • 环境配置
  • 开始排错
    • 错点1:R1-R2之间认证不匹配
    • 错误2:hello包的时间配置不匹配
    • 错误3:R2的e0/1接口区域配置不正确
    • 错误4:R4的e0/1接口没有配置进OSPF
    • 错误5:R2的区域1没有配置成特殊区域
    • 错误6:R4上e/0的接口并没有宣告进OSPF
    • 错误7:R4-R3之间的网络类型不一致
    • 错误8:R3没有配置区域1为特殊区域
    • 错误9:R2上的area1的聚合路由
    • 错误10:R2上的e0/1口开销配置的过大

实验条件

网络拓朴

在这里插入图片描述

环境配置

R1

router ospf 89router-id 1.1.1.1interface Loopback0ip address 1.1.1.1 255.255.255.255ip ospf 89 area 1
interface Ethernet0/0ip address 12.1.1.1 255.255.255.0ip ospf authentication message-digestip ospf message-digest-key 1 md5 SPOTOip ospf 89 area 0
interface Ethernet0/1ip address 13.1.1.1 255.255.255.0ip ospf 89 area 0

R2

router ospf 89router-id 2.2.2.2area 1 range 4.4.4.0 255.255.255.0
router ospf 1interface Loopback0ip address 2.2.2.2 255.255.255.255ip ospf 89 area 0
interface Ethernet0/0ip address 12.1.1.2 255.255.255.0ip ospf 89 area 0
interface Ethernet0/1ip address 24.1.1.2 255.255.255.0ip ospf 1 area 89ip ospf cost 100

R3

interface Loopback0ip address 3.3.3.3 255.255.255.255ip ospf 89 area 0
interface Ethernet0/0ip address 34.1.1.3 255.255.255.0ip ospf network point-to-pointip ospf 89 area 1
interface Ethernet0/1ip address 13.1.1.3 255.255.255.0ip ospf hello-interval 11ip ospf 89 area 0router ospf 89router-id 3.3.3.3

R4

router ospf 89router-id 4.4.4.4area 1 stubinterface Loopback0ip address 4.4.4.4 255.255.255.255
interface Ethernet0/0ip address 34.1.1.4 255.255.255.0duplex auto
interface Ethernet0/1ip address 24.1.1.4 255.255.255.0ip authentication mode eigrp 1234 md5ip authentication key-chain eigrp 1234 CCNP

开始排错

查询R1的邻居信息,发现邻居没有建立成功

错点1:R1-R2之间认证不匹配

为R2接口上配置上MD5认证
R2

interface Ethernet0/0ip ospf authentication message-digestip ospf message-digest-key 1 md5 SPOTO

查询结果发现邻居建立。

R1(config)#do show ip ospf neighbor
Neighbor ID     Pri   State           Dead Time   Address         Interface
2.2.2.2           1   FULL/DR         00:00:33    12.1.1.2        Ethernet0/0

错误2:hello包的时间配置不匹配

R3

interface Ethernet0/1ip ospf hello-interval 11

取消该时间间隔配置

interface Ethernet0/1no ip ospf hello-interval

查询邻居信息, R1-R3邻居正常建立。

R1(config)#do show ip ospf neighbor
Neighbor ID     Pri   State           Dead Time   Address         Interface
3.3.3.3           1   FULL/DR         00:00:33    13.1.1.3        Ethernet0/1
2.2.2.2           1   FULL/DR         00:00:38    12.1.1.2        Ethernet0/0

继续查询R2邻居信息

R2(config)#do show ip ospf neighbor
Neighbor ID     Pri   State           Dead Time   Address         Interface
1.1.1.1           1   FULL/BDR        00:00:39    12.1.1.1        Ethernet0/0

发现R2与R4之间的邻居不正常,继续排错

错误3:R2的e0/1接口区域配置不正确

重新配置

interface Ethernet0/1no ip ospf 1 area 89ip ospf 89 area 1

错误4:R4的e0/1接口没有配置进OSPF

配置进OSPF

interface Ethernet0/1no ip ospf 1 area 89ip ospf 89 area 1

查询邻居,发现依然没有建立成功。
发现area1被配置成特殊区域。

router ospf 89router-id 4.4.4.4area 1 stub

错误5:R2的区域1没有配置成特殊区域

将R2上的area1配置成特殊区域。

R2:router ospf 89area 1 stub

邻居成功建立
检查所有的邻居关系。发现还剩下R3-R4之间的邻居关系没有起来,继续排错。

错误6:R4上e/0的接口并没有宣告进OSPF

配置接口进入OSPF

R4:interface Ethernet0/0ip ospf 89 area 1

邻居依然没有建立。继续排错。

错误7:R4-R3之间的网络类型不一致

配置R4上E0/0的网络类型
R3上E0/0的下的网络类型是配置成了point-to-point,所以调整R4的E0/0的网络类型

R4:interface Ethernet0/0ip ospf network point-to-point

邻居依然没有建立。继续排错。

错误8:R3没有配置区域1为特殊区域

R3:router ospf 89area 1 stub

成功排除错误,邻居建立成功。

错误9:R2上的area1的聚合路由

取消聚合路由

R2:router ospf 89no area 1 range 4.4.4.0 255.255.255.0

查询R1上的路由表,依然没有出现等价负载均衡。继续排错

R1(config)#do show ip route 
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static route, H - NHRP, l - LISPa - application route+ - replicated route, % - next hop override, p - overrides from PfRGateway of last resort is not set
......4.0.0.0/32 is subnetted, 1 subnets
O IA     4.4.4.4 [110/21] via 13.1.1.3, 00:08:53, Ethernet0/1
......

错误10:R2上的e0/1口开销配置的过大

取消R2上的e0/1口上的开销配置,采用默认值。

R2:interface Ethernet0/1no ip ospf cost 100

查看R1上的路由表检查结果

R1(config)#do show ip route 
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static route, H - NHRP, l - LISPa - application route+ - replicated route, % - next hop override, p - overrides from PfRGateway of last resort is not set1.0.0.0/32 is subnetted, 1 subnets
C        1.1.1.1 is directly connected, Loopback02.0.0.0/32 is subnetted, 1 subnets
O        2.2.2.2 [110/11] via 12.1.1.2, 05:21:57, Ethernet0/03.0.0.0/32 is subnetted, 1 subnets
O        3.3.3.3 [110/11] via 13.1.1.3, 05:18:12, Ethernet0/14.0.0.0/32 is subnetted, 1 subnets
O IA     4.4.4.4 [110/21] via 13.1.1.3, 04:47:40, Ethernet0/1[110/21] via 12.1.1.2, 00:00:03, Ethernet0/012.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C        12.1.1.0/24 is directly connected, Ethernet0/0
L        12.1.1.1/32 is directly connected, Ethernet0/013.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C        13.1.1.0/24 is directly connected, Ethernet0/1
L        13.1.1.1/32 is directly connected, Ethernet0/124.0.0.0/24 is subnetted, 1 subnets
O IA     24.1.1.0 [110/20] via 12.1.1.2, 00:00:03, Ethernet0/034.0.0.0/24 is subnetted, 1 subnets
O IA     34.1.1.0 [110/20] via 13.1.1.3, 05:18:12, Ethernet0/1
R1(config)#

目标达成


http://www.ppmy.cn/news/1295649.html

相关文章

地理空间分析5——空间关联分析与Python

目录 写在开头1.空间自相关2.空间回归分析2.1 构建地理权重矩阵2.2 执行空间回归分析2.3 解释结果3 地理加权回归3.1 构建地理权重矩阵3.2 执行地理加权回归分析3.3 解释地理加权回归结果写在最后写在开头 空间关联分析是数据科学领域中一个重要的技术,尤其在地理信息系统(G…

docker运行状态

systemctl status docker Active: active (running) since 一 2024-01-08 06:21:10 CST; 3min 57s ago [rootlocalhost ~]# systemctl status docker ● docker.service - Docker Application Container EngineLoaded: loaded (/usr/lib/systemd/system/docker.service; enabl…

【SQL】加快SQL查询的九种优秀实践

1.只检索需要的列 对于那些所谓的数据库开发老司机而言,他们会有一个常见的SQL习惯:在编写查询代码时,频繁地使用SELECT *,一次性列出所有可能需要的数据列。显然,如果查询一个存储了一百多列的数据表的所有列,您可以想象会发生什么?毕竟在真实的系统应用环境中,这样的…

SpringCloud-高级篇(十一)

(1)搭建Redis-主从架构 前面我们实现了Redis的持久化,解决了数据安全问题,但是还有需要解决的问题,下面学习Redis的主从集群,解决Redis的并发能力的问题 Redis的集群往往是主从集群,Redsi为什么…

什么是跨域以及怎么处理跨域问题

文章目录 什么是跨域?跨域问题常见场景怎么处理跨域1、配置代理2、CORS(跨域资源共享)3、JSONP(仅限 GET 请求)4、使用 WebSocket 注意事项: 什么是跨域? 跨域(Cross-Origin&#x…

Ubuntu 24.04 Preview 版安装 libtinfo5

Ubuntu 24.04 Preview 版安装 libtinfo5 0. 背景1. 安装 libtinfo52. 安装 cuda 0. 背景 Ubuntu 24.04 Preview 版安装 Cuda 时报确实 libtinfo5 的错误。 1. 安装 libtinfo5 wget http://archive.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.4-2_amd64.deb dpk…

机器学习笔记 - win11 + camke + vs2022 + vcpkg编译pcl点云处理库,并创建c++项目,加载3d点云文件并显示

一、环境说明 这里编译的环境主要是基于vcpkg、cmake、Visual Studio 2022、win11。 1、首先更新vcpkg 因为我本地是已经安装过vcpkg的,但是很久没有更新了,所以首先更新一下,该挂梯子的要挂梯子了,如果挂了梯子也不好用,那就更新的时候看看什么下载不下来,就想办法手动…

ClickHouse基础知识(七):ClickHouse的分片集群

副本虽然能够提高数据的可用性,降低丢失风险,但是每台服务器实际上必须容纳全量数据,对数据的横向扩容没有解决。 要解决数据水平切分的问题,需要引入分片的概念。通过分片把一份完整的数据进行切 分,不同的分片分布到…