一、实验目的文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
- 掌握RIP协议的配置方法:
- 掌握查看通过动态路由协议RIP学习产生的路由;
- 熟悉广域网线缆的链接方式;
二、实验背景文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
假设校园网通过一台三层交换机连到校园网出口路由器上,路由器再和校园外的另一台路由器连接。现要做适当配置,实现校园网内部主机与校园网外部主机之间的相互通信。为了简化网管的管理维护工作,学校决定采用RIPV2协议实现互通。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
三、技术原理文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
- RIP(Routing Information Protocols,路由信息协议)是应用较早、使用较普遍的IGP内部网管协议,使用于小型同类网络,是距离矢量协议;
- RIP协议跳数作为衡量路径开销的,RIP协议里规定最大跳数为15;
- RIP协议有两个版本:RIPv1和RIPv2,RIPv1属于有类路由协议,不支持VLSM,以广播形式进行路由信息的更新,更新周期为30秒;RIPv2属于无类路由协议,支持VLSM,以组播形式进行路由更细。
四、实验步骤文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
建立建立packet tracer拓扑图文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
(1)在本实验中的三层交换机上划分VLAN10和VLAN20,其中VLAN10用于连接校园网主机,VLAN20用于连接R1。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
(2)路由器之间通过电缆通过串口连接,DCE端连接在R1上,配置其时钟频率64000。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
(3)主机和交换机通过直连线,主机与路由器通过交叉线连接。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
(4)在S3560上配置RIPV2路由协议。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
(5)在路由器R1、R2上配置RIPV2路由协议。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
(6)将PC1、PC2主机默认网关设置为与直连网路设备接口IP地址。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
(7)验证PC1、PC2主机之间可以互相同信;文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
五、实验设备文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
PC 2台;Switch_3560 1台;Router-PT 2台;直连线;交叉线;DCE 串口线文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
六、实验拓扑图文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
七、实验命令文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
PC1文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
IP: 192.168.1.2文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
Submask: 255.255.255.0文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
Gateway:文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
PC2文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
IP: 192.168.2.2文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
Submask: 255.255.255.0文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
Gateway:文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
S3560文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
en文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
conf t文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
hostname S3560文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
vlan 10文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
exit文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
vlan 20文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
exit文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
interface fa 0/10文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
switchport access vlan 10文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
exit文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
interface fa 0/20文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
switchport access valn 20文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
exit文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
end文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
show vlan文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
conf t文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
interface vlan 10文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
ip address 255.255.255.0文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
no shutdown文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
exit文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
interface vlan 20文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
ip address 255.255.255.0文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
no shutdown文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
end文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
show ip route文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
show runing文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
conf t文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
router rip文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
network 192.168.1.0文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
network 192.168.3.0文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
version 2文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
end文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
show ip route文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
R1文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
en文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
conf t文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
hostname R1文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
interface fa 0/0文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
no shutdown文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
ip address 255.255.255.0文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
interface serial 2/0文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
no shutdown文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
ip address 255.255.255.0文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
clock rate 64000文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
end文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
show ip route文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
conf t文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
router rip文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
network 192.168.3.0文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
network 192.168.4.0文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
version 2文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
exit文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
R2文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
en文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
conf t文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
hostname R2文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
interface fa 0/0文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
no shutdown文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
ip address 255.255.255.0文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
interface serial 2/0文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
no shutdown文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
ip address 255.255.255.0文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
end文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
show ip route文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
conf t文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
router rip文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
network 192.168.2.0文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
netword 192.168.4.0文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
version 2文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
end文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
八、实验结果文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
配置PC0、PC1的IP地址:文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
配置S3560:文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
配置R1:文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
配置R2:文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
PC0 ping PC1:文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html
文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wangluo/10543.html