中小企业可以用到的动态路由技术,原来这么配置的,一分钟了解下

2024-04-01 05:52:55

一、目的

1.在三台路由器上启用RIP协议;

2.查看路由表并验证各网段之间的连通性.

二、拓扑

三、配置步骤

1.cisco1上的配置

cisco1(config)#router rip

cisco1(config-router)#network 192.168.12.0

注:启用RIP协议、把路由器所有IP地址匹配192.168.12.1—192.168.12.255的接口参与到RIP协议的路由选择进程中。

2.cisco2上的配置

cisco2(config)#router rip

cisco2(config-router)#network 192.168.12.0

cisco2(config-router)#network 192.168.23.0

3.cisco3上的配置

Cisco3(config)#router rip

cisco3(config-router)#network 192.168.23.0

4.查看路由协议

cisco1#show ip protocol

Routing Protocol is "rip"

Sending updates every 30 seconds

Invalid after 180 seconds, hold down 180, flushed after 240

Outgoing update filter list for all interfaces is not set

Incoming update filter list for all interfaces is not set

Redistributing: rip

Default version control: send version 1, receive any version

Interface Send Recv Triggered RIP Key-chain

Serial 0 1 1 2

Automatic network summarization is in effect

Maximum path: 4

Routing for Networks:

192.168.12.0

Routing Information Sources:

Gateway Distance Last Update

Distance: (default is 120)

【RIP每30S发送路由表的拷贝给它的邻居。180S时间后还接收不到邻居宣告的路由条目,则认为邻居possiblely down状态。180S时间之内如果出现物理问题,则宣告这个端口上所有接收到的路由条目为possiblely down状态。标注为possiblely down状态的路由条目,再经过60S的时间后,将完全从路由表中删除。240=180+60】

5.查看路由表

cisco1#sh ip route

Gateway of last resort is not set

C 192.168.12.0/24 is directly connected, Serial0

R 192.168.23.0/24 [120/1] via 192.168.1.2, 00:00:15, Serial0

【RIP协议的标号为R IP的管理距离值为120。 RIP计算度量值的方法是跳数,从R1到192.168.23.0网段需要经过几台路由器,也就是几跳,所以跳数为1】

6.测试连通性

cisco1#ping 192.168.23.3

Type escape sequence to abort.

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

!!!!!

以下是华为数通路由交换方向完整技术分享,欢迎对华为网络技术感兴趣的小伙伴们订阅。【可在专栏中进行查看订阅】


华为新版HCIP数通路由交换

华为新版HCIE数通路由交换