1:用自己的语言描述OSPF接口的类型及LSA新旧的比较

2:LAB:NBMA环境,使用OSPF协议使SPOKE端可以正常通信,不能修改接口的OSPF网络类型

作业一:用自己的语言描述OSPF接口的类型及LSA新旧的比较。

OSPF接口的类型有:broadcast,NBMA,point-to-point,point-to-muitipoint四种类型

可以通过:ip ospf network xx 命令修改类型参数。

Broadcast:hello-time为10s,dead时间为40s wait时间为40s, 组播发送

NBMA:hello-time为30s,dead时间为120s wait时间为120s, 单播发送

point-to-point:hello-time为10s,dead时间为40s wait时间为40s,组播发送

point-to-muitipoint:hello-time为30s,dead时间为120s wait时间为120s,组播发送。

LSA:默认为1800s更新一次,序列号增加1(默认序列号从0x80000001开始到0x7FFFFFFFF),如果在3600s内没有收到更新信息,就老化LSA。

1:先比较LSA的序列号,值越大则越优先。

2:序列号一致时,则会比较checksum值,如果这个值越大则优先。

3:当序列号和checksum值都相同,则比较AGE时间是不是会等于3600s,如果相等,则表示为最新的。

4:如果AGE时间不等于3600s,会计算两者之间的差,如果差值大于15分钟,则越小月优先,如果小于15分钟,则视为同一条路由。

LAB:NBMA环境,使用OSPF协议使SPOKE端可以正常通信,不能修改接口的OSPF网络类型

使用拓扑图:

以下是R1,R2,R3设备的配置信息:

R1的配置信息:

R1(config-if)#do show run int s1/0 //验证接口s1/0的配置信息

Building configuration...

Current configuration : 202 bytes

!

interface Serial1/0

ip address 123.1.1.1 255.255.255.0 //接口s1/0的IP地址信息

encapsulation frame-relay //接口s1/0封装FR

serial restart-delay 0

frame-relay map ip 123.1.1.3 103 broadcast //FR map 配置

frame-relay map ip 123.1.1.2 102 broadcast //FR map 配置

end

R1(config-if)#do show fram map 验证FR map

Serial1/0 (up): ip 123.1.1.2 dlci 102(0x66,0x1860), static,

broadcast,

CISCO, status defined, active

Serial1/0 (up): ip 123.1.1.3 dlci 103(0x67,0x1870), static,

broadcast,

CISCO, status defined, active

R1(config-if)#do ping 123.1.1.2 //测试123.1.1.2的地址

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 123.1.1.2, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 4/8/12 ms

===============================================================================

R2的配置信息:

R2(config-if)#do show run int s1/0 //验证接口s1/0的配置信息

Building configuration...

Current configuration : 158 bytes

!

interface Serial1/0

ip address 123.1.1.2 255.255.255.0 //接口s1/0的IP地址信息

encapsulation frame-relay //接口s1/0封装FR

serial restart-delay 0

frame-relay map ip 123.1.1.1 201 broadcast //FR map 配置

end

R2(config-if)#do show fram map

Serial1/0 (up): ip 123.1.1.3 dlci 201(0xC9,0x3090), static,

broadcast,

CISCO, status defined, active //在没有这一条的时候R2测试不通R3

Serial1/0 (up): ip 123.1.1.1 dlci 201(0xC9,0x3090), static,

broadcast,

CISCO, status defined, active

R2(config-if)#do ping 123.1.1.1 //测试123.1.1.1的地址

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 123.1.1.1, timeout is 2 seconds:

..!!!

Success rate is 60 percent (3/5), round-trip min/avg/max = 16/29/48 ms

===============================================================================

R3的配置信息:

R3(config-if)#do show run int s1/0 //验证接口s1/0的配置信息

Building configuration...

Current configuration : 158 bytes

!

interface Serial1/0

ip address 123.1.1.3 255.255.255.0 //接口s1/0的IP地址信息

encapsulation frame-relay //接口s1/0封装FR

serial restart-delay 0

frame-relay map ip 123.1.1.1 301 broadcast //FR map 配置

end

R3(config-if)#do show fram map

Serial1/0 (up): ip 123.1.1.2 dlci 301(0x12D,0x48D0), static,

broadcast,

CISCO, status defined, active //在没有这一条的时候R3测试不通R2

Serial1/0 (up): ip 123.1.1.1 dlci 301(0x12D,0x48D0), static,

broadcast,

CISCO, status defined, active

R3(config-if)#do ping 123.1.1.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 123.1.1.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 12/24/40 ms

R3(config-if)#do ping 123.1.1.2

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 123.1.1.2, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 20/34/44 ms

R3可以ping通R1但是无法ping通R2因为没有到达R2和dlci号的对应关系不能进行通信。

===============================================================================

为R1,R2,R3运行ospf并手工指定邻居:

R1的OSPF配置信息:

R1(config-router)#do show run | se ospf

ip ospf 110 area 0 //开启运行ospf动态路由协议区域0

router ospf 110 //运行ospf

log-adjacency-changes

network 1.1.1.0 0.0.0.255 area 0 //宣告网段

neighbor 123.1.1.2 //手工指定邻居

neighbor 123.1.1.3 //手工指定邻居

R1(config-router)#do show ip ospf int b

Interface PID Area IP Address/Mask Cost State Nbrs F/C

Lo0 110 0 1.1.1.1/24 1 LOOP 0/0

Se1/0 110 0 123.1.1.1/24 64 DR 2/2

R1(config-router)#do show ip route //验证路由信息

Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

E1 - OSPF external type 1, E2 - OSPF external type 2

i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

ia - IS-IS inter area, * - candidate default, U - per-user static route

o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

1.0.0.0/24 is subnetted, 1 subnets

C 1.1.1.0 is directly connected, Loopback0

2.0.0.0/32 is subnetted, 1 subnets

O 2.2.2.2 [110/65] via 123.1.1.2, 00:17:04, Serial1/0

3.0.0.0/32 is subnetted, 1 subnets

O 3.3.3.3 [110/65] via 123.1.1.3, 00:19:18, Serial1/0

123.0.0.0/24 is subnetted, 1 subnets

C 123.1.1.0 is directly connected, Serial1/0

R2的OSPF配置信息:

R2(config-router)#do show run | se ospf

ip ospf priority 0 //ospf 优先级改为0

ip ospf 110 area 0 //开启运行ospf动态路由协议区域0

router ospf 110 //运行ospf

log-adjacency-changes

network 2.2.2.0 0.0.0.255 area 0 //宣告网段

R2(config-router)#do show ip ospf int b

Interface PID Area IP Address/Mask Cost State Nbrs F/C

Lo0 110 0 2.2.2.2/24 1 LOOP 0/0

Se1/0 110 0 123.1.1.2/24 64 DROTH 1/1

R2(config-if)#do show ip route //验证路由信息

Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

E1 - OSPF external type 1, E2 - OSPF external type 2

i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

ia - IS-IS inter area, * - candidate default, U - per-user static route

o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

1.0.0.0/32 is subnetted, 1 subnets

O 1.1.1.1 [110/65] via 123.1.1.1, 00:16:35, Serial1/0

2.0.0.0/24 is subnetted, 1 subnets

C 2.2.2.0 is directly connected, Loopback0

3.0.0.0/32 is subnetted, 1 subnets

O 3.3.3.3 [110/65] via 123.1.1.3, 00:16:35, Serial1/0

123.0.0.0/24 is subnetted, 1 subnets

C 123.1.1.0 is directly connected, Serial1/0

R3的OSPF配置信息:

R3#show run | se ospf

ip ospf priority 0 //ospf 优先级改为0

ip ospf 110 area 0 //开启运行ospf动态路由协议区域0

router ospf 110 //运行ospf

log-adjacency-changes

network 3.3.3.0 0.0.0.255 area 0 //宣告网段

R3#show ip ospf int b

Interface PID Area IP Address/Mask Cost State Nbrs F/C

Lo0 110 0 3.3.3.3/24 1 LOOP 0/0

Se1/0 110 0 123.1.1.3/24 64 DROTH 1/1

R3(config-if)#do show ip route //验证路由信息

Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

E1 - OSPF external type 1, E2 - OSPF external type 2

i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

ia - IS-IS inter area, * - candidate default, U - per-user static route

o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

1.0.0.0/32 is subnetted, 1 subnets

O 1.1.1.1 [110/65] via 123.1.1.1, 00:28:38, Serial1/0

2.0.0.0/32 is subnetted, 1 subnets

O 2.2.2.2 [110/65] via 123.1.1.2, 00:15:58, Serial1/0

3.0.0.0/24 is subnetted, 1 subnets

C 3.3.3.0 is directly connected, Loopback0

123.0.0.0/24 is subnetted, 1 subnets

C 123.1.1.0 is directly connected, Serial1/0

测试结果:R3测试R1和R2

R3(config-if)#do ping 1.1.1.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 8/18/24 ms

R3(config-if)#do ping 2.2.2.2

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 20/28/40 ms

ospf hello时间和dead_使用OSPF协议使SPOKE端正常通信相关推荐

  1. ospf hello时间和dead_网络工程师_思科 | OSPF由简到难,配合命令学

    交换机工作原理: 基于源mac学习,基于目的mac转发. 路由器的工作原理: 收到一个数据包,拆掉帧头,拆开ip包头,提取目的ip地址,查找自己的路由表,有路由,转发,没有路由,丢弃. 路由器查表原则 ...

  2. ospf hello时间和dead_图文并茂解释OSPF邻居关系建立失败的几种常见情况(太实用了!)...

    网络工程师阿龙 中国网工圈最早的公益公众号(关注近5w+)! 关注 最近有人遇到OSPF邻居建立不起来,本期龙哥就与大家分享个人见解.如有讲错地方或有更好的见解欢迎评论区见哈~ 拓扑图 本期我讲以此拓 ...

  3. ospf hello时间和dead_深入理解OSPF协议----第二讲:OSPF报文类型

    各位小伙伴们:大家好,!今天让我们来继续一起聊聊OSPF协议:通过上一节的介绍,我们已经知道OSPF路由设备之间交流的是LSA(链路状态通告),并不是路由表:后续几节想给大家讲讲OSPF邻居之间是如何 ...

  4. RIP、OSPF、BGP、动态路由选路协议、自治域AS

    目录 view sourceprint? 1.1. 动态路由选路协议简介 2.2. RIP(Routing Information Protocol)路由信息协议 3.3. OSPF(Open Sho ...

  5. ospf配置命令_思科设备 OSPF 的相关知识点

    OSPF 基本配置命令 进入 OSPF 进程配置模式:Router(config)#router ospf <进程号> 在 OSPF 进程中宣告接口:Router(config-route ...

  6. o oia ospf 路由优先_动态路由OSPF中注入默认路由,原来都是这么玩的,进去看看...

    一 .OSPF网络注入默认路由 二. 实战步骤 1.本实验用 R1 的环回接口 1 来模拟 Internet. (1)步骤 1:配置路由器 R1 R1(config)# interface loopb ...

  7. 蓝牙协议分析(5)_BLE广播通信相关的技术分析

    蓝牙协议分析(5)_BLE广播通信相关的技术分析 作者:wowo 发布于:2016-5-27 16:15 分类:蓝牙 1. 前言 大家都知道,相比传统蓝牙,蓝牙低功耗(BLE)最大的突破就是加大了对广 ...

  8. 上位机使用C++通过ADS协议与倍福PLC通信例程-字符串变量读取

    前言 建议初学者先看这一章节内容,里面包括一些基础的环境配置和项目建立流程,以后开发项目这些流程是通用的,务必掌握并熟练. 链接: 上位机使用C++通过ADS协议与倍福PLC通信例程-布尔变量的读取 ...

  9. xmodem java_Xmodem XMODEM协议是一种串口通信中广泛用到的异步文件传输协议 联合开发网 - pudn.com...

    Xmodem 所属分类:串口编程 开发工具:Java 文件大小:3KB 下载次数:6 上传日期:2017-11-02 21:50:52 上 传 者:雄霸天下19 说明:  XMODEM协议是一种串口通 ...

最新文章

  1. Sysinternals Suite 2012.06.28软件简介
  2. $.post把表单对象传递过去_第二章 第三节 Request请求对象详解
  3. MAT之DT:DT实现根据乳腺肿瘤特征向量高精度预测肿瘤的是恶性还是良性
  4. 31天重构学习笔记3. 提升方法
  5. webpack+vue+vueRouter模块化构建完整项目实例详细步骤-入门篇
  6. snort的详细配置
  7. 安装ae显示安装程序无法初始化_adobe CC 2015/2017安装失败(adobe cc安装不了的解决办法)...
  8. python元祖推导式_python推导式深入讲解
  9. java daemon线程的作用_JAVA DAEMON线程的理解
  10. mysql中的extra是什么意思_1130mysql explain中的type列含义和extra列的含义
  11. 企业数字化转型热潮下,IT技术领导者的10大使命
  12. PLSQL使用技巧 如何设置默认显示My Objects、记住密码等
  13. 容器内部使用docker命令时报错:缺少libcrypto.so.10
  14. oracle没按成功怎么卸载,关于oracle卸载没有卸载完全的问题
  15. 冯诺依曼计算机流程图,基本流程图综述
  16. 我在CSDN参与的3000个帖子
  17. sip gw功能包括_米尔MYD-C335X-GW开发板,为工业网关量身打造
  18. R语言使用sort函数降序排序向量数据、设置decreasing参数进行降序排序
  19. 红警2尤里的复仇中文完整PC版
  20. 计算机图形学必备的数学知识

热门文章

  1. Linux grep
  2. Linux usual cmd
  3. 【转】最小编辑距离 算法原理
  4. 找不到QtDir变量的解决办法, 同时不需要经过编译就可以使用qt 库
  5. Java IDE鱼龙混杂,我们该如何选择呢?
  6. AB1601的波特率注意事项
  7. android enum java包_Android @IntDef注解取代Java enum枚举提高性能详解
  8. 47. 全排列 II(回溯算法)
  9. 【python】数据结构与算法之快速排序(重要)
  10. [register]-ARMV8-aarch64 部分系统寄存器总结(必背)