首页 > 其他分享 > 动态路由协议

动态路由协议

时间:2023-03-18 17:32:00浏览次数:28  
标签:协议 R1 R2 OSPF 192.168 动态 config 路由


1动态路由的概述

  1. 虽然静态路由在有些时候很有用,但是是必须是手动操作每条路由条目,对于大型网络来说经常改变的情况,配置静态路由工作量非常繁重,因此使用动态路由是必要的。
  2. 动态路由协议就像路由器之间用来交流信息语言,通过他,路由器之间可以共享网络信息。但当动态路由不限于路由的选择和路由表的更新,到达目的网络最佳路径出现问题时,动态路由协议可以在剩下的可用路径,选择最佳路径进行替代。

RIP度量值为跳数

最大跳数为15跳,16跳为不可达

RIP更新时间

每隔30s发送路由更新消息,UDP520端口

RIP路由更新消息

发送整个路由表信息

2什么是动态路由?动态路由的特点有哪些?

动态路由是网络中路由器之间互相通信,传递路由信息,利用收到的路由信息更新路由表的过程

特点是:减少了管理任务,但占用了网络带宽

3简述直连路由、静态路由、动态路由的形成过程?

直连路由:路由器配置接口IP地址并且端口状态为up时,路由表中生成直连路由

静态路由:手工配置

动态路由:不需要手工写路由,路由器之间能够自己互相学习

4什么是水平分割?有什么作用?

执行水平分割可以阻止路由环路的发生,从一个接口学习到路由信息,不再从这个接口发送出去,同时也能减少路由更新信息占用的链路带宽资源

5 RIP的基本概念

定期更新邻居广播更新全路由表更新

6 动态路由和静态路由之间的区别?

动态路由不需要手动配置,路由之间相互学习产生路由表

静态路由手工配置吓一跳产生路由表

7 RIP路由协议v1与v2之间的区别?

                     动态路由协议_静态路由


动态路由操作实验步骤(有类地址)

Rip 1

                     动态路由协议_路由表_02


PC1> ip 192.168.1.2 192.168.1.1​


R1#conf t​

R1(config)#int f0/0​

R1(config-if)#ip add 192.168.1.1 255.255.255.0​

R1(config-if)#no sh​

R1(config-if)#int f0/1​

R1(config-if)#ip add 10.0.0.1 255.0.0.0 ​

R1(config-if)#no sh​

R1(config)#router rip​

R1(config-router)#network 192.168.1.0 ​

R1(config-router)#network 10.0.0.0​

R1(config-router)#end​

R1#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​


C 10.0.0.0/8 is directly connected, FastEthernet0/1​

C 192.168.1.0/24 is directly connected, FastEthernet0/0​

R 192.168.2.0/24 [120/1] via 10.0.0.2, 00:00:10, FastEthernet0/1​



R2#conf t​

R2(config)#int f0/0​

R2(config-if)#ip add 10.0.0.2 255.0.0.0​

R2(config-if)#no sh​

R2(config-if)#int f0/1​

R2(config-if)#ip add 192.168.2.1 255.255.255.0​

R2(config-if)#no sh​

R2(config)#router rip​

R2(config-router)#network 10.0.0.0​

R2(config-router)#network 192.168.2.0​

R2(config-router)#end​

R2#show ip router​

^​

% Invalid input detected at '^' marker.​


R2#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​


C 10.0.0.0/8 is directly connected, FastEthernet0/0​

R 192.168.1.0/24 [120/1] via 10.0.0.1, 00:00:10, FastEthernet0/0​

C 192.168.2.0/24 is directly connected, FastEthernet0/1​





PC2> ip 192.168.2.2 192.168.2.1​

Checking for duplicate address...​

PC2 : 192.168.2.2 255.255.255.0 gateway 192.168.2.1​


PC1> ping 192.168.2.2​

192.168.2.2 icmp_seq=1 timeout​

84 bytes from 192.168.2.2 icmp_seq=2 ttl=62 time=60.304 ms​

84 bytes from 192.168.2.2 icmp_seq=3 ttl=62 time=60.671 ms​

84 bytes from 192.168.2.2 icmp_seq=4 ttl=62 time=61.223 ms​

84 bytes from 192.168.2.2 icmp_seq=5 ttl=62 time=61.673 ms​


PC2> ping 192.168.1.2​

84 bytes from 192.168.1.2 icmp_seq=1 ttl=62 time=60.846 ms​

84 bytes from 192.168.1.2 icmp_seq=2 ttl=62 time=60.594 ms​

84 bytes from 192.168.1.2 icmp_seq=3 ttl=62 time=61.308 ms​

84 bytes from 192.168.1.2 icmp_seq=4 ttl=62 time=61.126 ms​

84 bytes from 192.168.1.2 icmp_seq=5 ttl=62 time=61.569 ms​



标签:协议,R1,R2,OSPF,192.168,动态,config,路由
From: https://blog.51cto.com/u_15717661/6129726

相关文章