2023年11月24日发(作者:)
实验十七:配置动态路由器(RIP ROUTER)
一、实验介绍:
1、实验名称:动态路由的配置
2、实验目的:理解动态路由器配置技术
3、实验设备:R621(1台)、R2600(1台)
4、实验时间:30分钟
二、实验拓扑:
DCE DTE
S2:172.16.2.1/30
F0:192.168.1.1
Router A
R2600
F0:192.168.3.1
PC1
IP:192.168.1.2/24 IP:192.168.3.2/24
GW:192.168.1.1 GW:192.168.3.1
S0:172.16.2.2/30
Router B
R621
PC3
三、实验步骤
二、配置动态路由器(RIP):版本2
1、在PC1和Router A的基本配置
A、将PC1的IP:192.168.1.2 网关:192.168.1.1
在计算机1的“本地连接”—“TCP/IP”协议—设置IP地址;
验证:c:>ipconfig
B、指定Router A的fa 0 和wan 0口的IP地址
>enable !进入全局模式
# configure terminal !进入特权模式
(config)# interface fastethernet 0 !进入以太网fa 0配置模式
(config-if)# ip address 192.168.1.1 255.255.255.0 !定义DCE的fa 0口IP地址
(config-if)# no shutdown !开启端口
(config-if)# exit !退出以太网口模式,返回到特权模式
(config)# interface Serial 2 !进入广域网口WAN0配置模式
(config-if)# ip address 172.16.2.1 255.255.255.252 !定义DCE的WAN0口IP地址
(config-if)# clock rate 64000 !配置Router1的时钟频率(DCE)
(config-if)# no shutdown !开启端口
验证:
# show running-config
#show interface serial 2
2、在PC2和Router B的基本配置
A、将PC2的IP:192.168.3.2 网关:192.168.3.1
在计算机2的“本地连接”—“TCP/IP”协议—设置IP地址;
验证:c:>ipconfig
B、指定Router B的fa 0 和wan 0口的IP地址
>enable !进入全局模式
# configure terminal !进入特权模式
(config)# interface fastethernet 0 !进入以太网fa 0配置模式
(config-if)# ip address 192.168.3.1 255.255.255.0 !定义DTE的fa 0口IP地址
(config-if)# no shutdown !开启端口
(config-if)# exit !退出以太网口模式,返回到特权模式
(config)# interface Serial 0 !进入广域网口WAN0配置模式
(config-if)# ip address 172.16.2.2 255.255.255.252 !定义DTE的WAN0口IP地址
(config-if)# no shutdown !开启端口
验证:
# show running-config
#show interface serial 0
3、配置路由动态协议(版本2)
A、在Router A上
>enable !进入全局模式
# configure terminal !进入特权模式
(config)# router rip !配置动态路由协议
(config-router)# version 2 !配置版本号为2
(config-router)# network 192.168.1.0
(config-router)# network 172.16.2.0
!宣告动态路由主类的子网为172.16.2.0
(config-router)# end
验证:#show ip route
B、在Router B上
>enable !进入全局模式
# configure terminal !进入特权模式
(config)# router rip !配置动态路由协议
(config-router)# version 2 !配置版本号为2
(config-router)# network 192.168.3.0
(config-router)# network 172.16.2.0
(config-router)# end
验证:#show ip route
备注:
1、版本1和版本2的区别
版本1:不支持可变子网路由;
版本2:支持可变子网路由。
2、路由的类型和优先级
C — 0 (Connected:直连路由)
S — 1 (Static:静态路由)
E — 100 (Eigrp:开放拓展路由)
O — 110 (OSPF:开放路由)
R — 120 (RIP:动态路由)


发布评论