Device | R1 | R2 | R4 |
Host Name | R1 | R2 | R4 |
Enable RIP | On e0 s0 | On e0 | On s0 |
Eethernet 0 | 192.168.1.1/24 | 192.168.1.2/24 |
|
Serial 0 | 192.168.2.1/24 |
| 192.168.2.2/24 |
RIP拓扑: R2-e0--------e0-R1-s0---------s0-R4
RIP脚本(最好使用记事本):
R1
en //进入特权模式
conf t //进入配置模式
host R1 //为路由器命名
int e0 //进入接口
ip add 192.168.1.1 255.255.255.0 //配置ip地址
no shut //启用接口
exit
int s0
ip address 192.168.2.1 255.255.255.0
no shut
end
show ip int brief //查看接口ip地址和状态
conf t
router rip //启用RIP
ver 2 //设定为版本2
no auto-summary //关闭自动汇总
net 192.168.1.0 //连接的网络
net 192.168.2.0
end
show ip route //查看路由
show ip protocols //查看协议
R2
en
conf t
host R2
int e 0
ip add 192.168.1.2 255.255.255.0
no shut
end
show ip int brief
conf t
router rip
ver 2
no auto-sammary
net 192.168.1.0
end
show ip route
show ip protocols
R4
en
conf t
host R4
int s0
ip add 192.168.2.2 255.255.255.0
no shut
end
show ip int brief
conf t
router rip
ver 2
no auto-summary
net 192.168.2.0
end
show ip route
show ip protocols
R2、R4与R1的配置与说明情况差不多
就不再进行注释了
RIP的实验很简单
主要是这种方法很好,有依据可查
制作表格,画拓扑,写清单 都需要完成,不然连自己都不知道
转载于:https://blog.51cto.com/370099/418527