当前位置: 首页 > news >正文

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

目录

  • 实验条件
    • 网络拓朴
  • 环境配置
  • 开始排错
    • 错点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.lryc.cn/news/275459.html

相关文章:

  • 75.乐理基础-打拍子-八三、八六拍的三角形打法
  • STLink下不了程序的解决办法
  • 操作系统---期末应用综合题
  • 56K star!一键拥有跨平台 ChatGPT 应用:ChatGPT-Next-Web
  • springMvc向request作用域存储数据的4种方式
  • SolidUI Gitee GVP
  • uthash -- basic
  • 利用MATLAB绘制折线图
  • C# halcon 工业产品尺寸测量
  • Vue中插槽的简单使用
  • 华为OD机试真题-机器人仓库搬砖-2023年OD统一考试(C卷)
  • 三维模型数据的几何坐标变换的点云重建并行计算技术方法分析
  • Android 横竖屏切换之窗体泄露leaked window DecorView XXXActivity
  • mysql之视图执行计划
  • 软件安装文档 | Docker (简洁)
  • PHP代码审计之实战审代码篇2
  • 05 Ciso模拟器连接腾讯云物联网开发平台
  • Nginx(二十) 获取真实客户端IP
  • 【攻防世界】Reverse—— IgniteMe writeup
  • m1芯片电脑上的paragon15如何安装激活 m1芯片电脑上ntfs for mac如何安装
  • 【DevOps-01]】DevOps介绍
  • 基于PHP的花店管理系统
  • 《PySpark大数据分析实战》-24.数据可视化图表介绍
  • kafka 偏移量的类型与提交方式
  • TCP服务器的编写(下)
  • Linux系统安全及应用
  • 初识Web服务器
  • IOS - 手机安装包 ipa 常见几种方式
  • 60、resnet50 权值和参数加载
  • wordpress在界面将站点地址直接修改为https导致上不去问题的解决办法