RIP实验
Posted BE冢虎
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了RIP实验相关的知识,希望对你有一定的参考价值。
实验目标:
应用RIP协议并对比RIP v1和RIP v2的不同
实验规划:
地址规划:
IOU1 | e0/0:192.168.12.1/24 |
loo0:192.168.1.1/24 | |
loo1:172.16.1.1/24 | |
IOU2 | e0/0:192.168.12.2/24 |
e0/1:192.168.23.1/24 | |
loo0:192.168.2.1/24 | |
loo1:172.16.2.1/24 | |
IOU3 | e0/1:192.168.23.2/24 |
loo0:192.168.3.1/24 | |
loo1:172.16.3.1/24 |
实验拓扑:
实验配置与注释:
基本配置:
IOU1:
config terminal
interface e0/0
ip address 192.168.12.1 255.255.255.0
no shutdown
interface loopback 0
ip address 192.168.1.1 255.255.255.0
no shutdown
interface loopback 1
ip address 172.16.1.1 255.255.255.0
no shutdown
exit
IOU2:
config terminal
interface e0/0
ip address 192.168.12.2 255.255.255.0
no shutdown
interface e0/1
ip address 192.168.23.1 255.255.255.0
no shutdown
interface loopback 0
ip address 192.168.2.1 255.255.255.0
no shutdown
interface loopback 1
ip address 172.16.2.1 255.255.255.0
no shutdown
exit
IOU3:
config terminal
interface e0/1
ip address 192.168.23.2 255.255.255.0
no shutdown
interface loopback 0
ip address 192.168.3.1 255.255.255.0
no shutdown
interface loopback 1
ip address 172.16.3.1 255.255.255.0
no shutdown
exit
配置RIP v1:
IOU1:
router rip //启动RIP
network 192.168.1.0 //宣告网段
network 192.168.12.0
network 172.16.1.0
exit
IOU2:
router rip
network 192.168.12.0
network 192.168.23.0
network 192.168.2.0
network 172.16.2.0
exit
IOU3:
router rip
network 192.168.23.0
network 192.168.3.0
network 172.16.3.0
exit
查看路由表:
IOU2:
exit
show ip route
发现没有学习到其他路由的loopback 1地址
配置RIP v2:
IOU1:
router rip
version 2 //启用版本2
no auto-summary //关闭路由汇总
network 172.16.1.0
exit
IOU2:
config terminal
router rip
version 2
no auto-summary
network 172.16.2.0
exit
IOU3:
router rip
version 2
no auto-summary
network 172.16.3.0
exit
查看路由表:
IOU2:
exit
show ip route
对比发现,RIP v2可以学习到无类地址,功能更为全面
结果符合预期,配置结束
(如有疏漏,还望读者指出)
以上是关于RIP实验的主要内容,如果未能解决你的问题,请参考以下文章
第四次实验报告:使用Packet Tracer理解RIP路由协议