思科rip详细配置教程
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
BY: 小福仔更多教程请进
/492311578配置RIP 时,必须注意IP的规划问题。
RIP 不支持可变长子网。
RIP 配置命令
全局模式下route rip
Network A.B.C.D
IP 配置
PC0
172.16.10.2网关172.16.10.1
PC1
172.17.10.1 网关172.17.10.1
R1 配置
R1(config)#int s0/0
R1(config-if)#no shu
%LINK-5-CHANGED: Interface Serial0/0, changed state to down
R1(config-if)#ip address 192.168.10.1 255.255.255.0
R1(config-if)#clock rate 64000
R1(config-if)#exit
R1(config)#int s0/1
R1(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial0/1, changed state to down
R1(config-if)#ip address 192.168.20.1 255.255.255.0
R1(config-if)#clock rate 64000
R1(config)#route rip
R1(config-router)#network 192.168.10.0
R1(config-router)#network 192.168.20.0
R2 配置
R2(config)#int s0/0
R2(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial0/0, changed state to up
R2(config-if)#ip address 192.168.
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up
^
% Invalid input detected at '^' marker.
R2(config-if)#ip address 192.168.1.2 255.255.255.0
R2(config-if)#exit
R2(config)#int f0/0
R2(config-if)#no shutdown
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R2(config-if)#ip address 172.16.10.1 255.255.0.0
R2(config-if)#exit
R2(config)#int s0/0
R2(config-if)#no shutdown
R2(config-if)#ip address 192.168.10.2 255.255.255.0
R2(config-if)#exit
R2(config)#router rip
R2(config-router)#network 192.168.10.0
R2(config-router)#network 172.16.0.0
R3路由配置
R3(config)#int s0/1
R3(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1, changed state to up
^
R3(config-if)#ip address 192.168.20.2 255.255.255.0
R3(config-if)#exit
R3(config)#int f0/0
R3(config-if)#no shu
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R3(config-if)#ip address 172.17.10.1 255.255.0.0
R3(config-if)#exit
R3(config)#route rip
R3(config-router)#network 192.168.20.0
R3(config-router)#network 172.17.0.0
查看路由表
R1
R1#show ip route
R 172.16.0.0/16 [120/1] via 192.168.10.2, 00:00:16, Serial0/0
R 172.17.0.0/16 [120/1] via 192.168.20.2, 00:00:14, Serial0/1
C 192.168.10.0/24 is directly connected, Serial0/0