惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
B
Blog RSS Feed
量子位
aimingoo的专栏
aimingoo的专栏
V
Visual Studio Blog
Y
Y Combinator Blog
Vercel News
Vercel News
云风的 BLOG
云风的 BLOG
宝玉的分享
宝玉的分享
Engineering at Meta
Engineering at Meta
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
GbyAI
GbyAI
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
Stack Overflow Blog
Stack Overflow Blog
大猫的无限游戏
大猫的无限游戏
Microsoft Security Blog
Microsoft Security Blog
B
Blog
Last Week in AI
Last Week in AI
有赞技术团队
有赞技术团队
博客园 - 聂微东
腾讯CDC
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
J
Java Code Geeks

博客园 - kyovcs

通用连接数据库的C#类 感受 C# 3.0 的优雅 用FLASHMX连结ASPX的方式 防止SQL注入漏洞 使用TRUNK连接多台交换机VLAN(Vlan + Trunk) VLAN间路由实验 Cisco IOS 基本命令集 CCNA课堂精简笔记 .NET委托:一个C#睡前故事 C#学习笔记 最少步骤:N变1 取胜之道 点灯游戏算法 关于被整除问题 八方块移动游戏 Visual C# 诠释常用排序算法 A*寻路初探 线索二叉树(C# 2.0) 二叉树遍历算法实现(C#2.0)
配置RIPv2(Enabling Rip v2)
kyovcs · 2007-10-20 · via 博客园 - kyovcs

步骤一:配置各路由器的IP地址,并使用ping命令确认直连接口相互可以ping通。

步骤二:配置各路由器的RIP协议。

步骤三:在R1使用PING 172.16.2.1结果是不通的。

步骤四:解决步骤三的问题。解决的方法是:启用RIP V2的协议

R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#exit

R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#exit

R3(config)#router rip
R3(config-router)#version 2
R3(config-router)#exit


步骤五:观察R2的路由表

R2#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
       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

     172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
R       172.16.1.0/24 [120/1] via 172.16.3.1, 00:00:00, Serial1/1
R       172.16.2.0/27 [120/1] via 172.16.3.1, 00:00:00, Serial1/1
C       172.16.3.0/24 is directly connected, Serial1/1
     10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
R       10.2.2.0/27 [120/1] via 10.3.3.1, 00:00:00, Serial1/0
R       10.1.1.0/24 [120/1] via 10.3.3.1, 00:00:00, Serial1/0
C       10.3.3.0/24 is directly connected, Serial1/0


步骤六:使用DEBUG观察RIPV2的通告

R3#
00:06:36: RIP: sending v2 update to 224.0.0.9 via Serial1/0 (172.16.3.1)
00:06:36: RIP: build update entries
00:06:36:       172.16.1.0/24 via 0.0.0.0, metric 1, tag 0
00:06:36:       172.16.2.0/27 via 0.0.0.0, metric 1, tag 0
00:06:36: RIP: sending v2 update to 224.0.0.9 via Loopback0 (172.16.1.1)
00:06:36: RIP: build update entries
00:06:36:       10.0.0.0/8 via 0.0.0.0, metric 2, tag 0
00:06:36:       172.16.2.0/27 via 0.0.0.0, metric 1, tag 0
00:06:36:       172.16.3.0/24 via 0.0.0.0, metric 1, tag 0
00:06:36: RIP: sending v2 update to 224.0.0.9 via Loopback1 (172.16.2.1)
00:06:36: RIP: build update entries
00:06:36:       10.0.0.0/8 via 0.0.0.0, metric 2, tag 0
00:06:36:       172.16.1.0/24 via 0.0.0.0, metric 1, tag 0
00:06:36:       172.16.3.0/24 via 0.0.0.0, metric 1, tag 0
00:06:36: RIP: ignored v2 packet from 172.16.1.1 (sourced from one of our addresses)
00:06:36: RIP: ignored v2 packet from 172.16.2.1 (sourced from one of our addresses)
00:06:37: RIP: received v2 update from 172.16.3.2 on Serial1/0
00:06:37:      10.0.0.0/8 via 0.0.0.0 in 1 hops
R3#


步骤七:观察R1的路由表

R1#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
       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

R    172.16.0.0/16 [120/1] via 10.3.3.2, 00:00:06, Serial1/1
     10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
C       10.2.2.0/27 is directly connected, Loopback1
C       10.1.1.0/24 is directly connected, Loopback0
C       10.3.3.0/24 is directly connected, Serial1/1
R1#


步骤八:在R2上关闭自动汇总

R2(config)#router rip
R2(config-router)#no auto-summary
R2(config-router)#exit


步骤九:再次到R1上查看路由表

R1#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
       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

     172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
R       172.16.1.0/24 [120/2] via 10.3.3.2, 00:00:00, Serial1/1
R       172.16.2.0/27 [120/2] via 10.3.3.2, 00:00:00, Serial1/1
R       172.16.3.0/24 [120/1] via 10.3.3.2, 00:00:00, Serial1/1
     10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
C       10.2.2.0/27 is directly connected, Loopback1
C       10.1.1.0/24 is directly connected, Loopback0
C       10.3.3.0/24 is directly connected, Serial1/1


步骤十:在R2上配置手工总结

R2(config)#interface serial 1/0
R2(config-if)#ip summary-address rip 172.16.0.0 255.255.0.0


步骤十一:再次回到R1上查看路由表

R1#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
       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

R    172.16.0.0/16 [120/1] via 10.3.3.2, 00:00:00, Serial1/1
     10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
C       10.2.2.0/27 is directly connected, Loopback1
C       10.1.1.0/24 is directly connected, Loopback0
C       10.3.3.0/24 is directly connected, Serial1/1
R1#