雏鹰部落

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 2465|回复: 8

RIP动态路由配置实验

  [复制链接]
发表于 2010-11-29 22:07:44 | 显示全部楼层 |阅读模式
Router 3
Router3>enable
Router3#configure terminal
Router(config)#interface loopback0
Router(config-if)#ip address 172.168.11.1 255.255.255.0
‍Router(config)#interface f0/0
Router(config-if)#ip address 172.168.12.1 255.255.255.0
‍Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#router rip
‍Router(config-router)#version 2
Router(config-router)#no auto-summary
Router(config-router)#network 172.168.0.0
Router(config-router)#exit
Router(config)#exit
Router0#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]

Router 4
Router4>enable
Router4#configure terminal
Router(config)#interface f0/0
Router(config-if)#ip address 172.168.12.2 255.255.255.0
Router(config-if)#no shutdown
‍Router(config)#interface f0/1
Router(config-if)#ip address 172.168.13.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#router rip
‍Router(config-router)#version 2
Router(config-router)#no auto-summary
Router(config-router)#network 172.168.0.0
Router(config-router)#exit
Router(config)#exit
Router4#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Router 5
Router5>enable
Router3#configure terminal
Router(config)#interface loopback0
Router(config-if)#ip address 172.168.14.1 255.255.255.0
‍Router(config)#interface f0/1
Router(config-if)#ip address 172.168.13.2 255.255.255.0
‍Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#router rip
‍Router(config-router)#version 2
Router(config-router)#no auto-summary
Router(config-router)#network 172.168.0.0
Router(config-router)#exit
Router(config)#exit
Router0#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]

完成了,现在可以相互ping一下看看通不通了。

如:(在r3上ping172.168.14.1和172.168.13.1和172.168.13.2
在r4上ping172.168.11.1和172.168.14.1
在r5上ping172.168.11.1和172.168.12.1和172.168.12.2)
如果配置成功的话上面这些地址都可以ping的通。
在配置的过程中你可以用show ip route 这条命令来查看配置信息
如:在router3上显示
Router#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP

D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP

i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area

* - candidate default, U - per-user static route, o - ODR

P - periodic downloaded static route
Gateway of last resort is not set

172.168.0.0/24 is subnetted, 4 subnets
C
172.168.11.0 is directly connected, Loopback0
C
172.168.12.0 is directly connected, FastEthernet0/0
R
172.168.13.0 [120/1] via 172.168.12.2, 00:00:10, FastEthernet0/0
R
172.168.14.0 [120/2] via 172.168.12.2, 00:00:10, FastEthernet0/0
router4上显示
Router#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP

D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP

i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area

* - candidate default, U - per-user static route, o - ODR

P - periodic downloaded static route
Gateway of last resort is not set

172.168.0.0/24 is subnetted, 4 subnets
R
172.168.11.0 [120/1] via 172.168.12.1, 00:00:13, FastEthernet0/0
C
172.168.12.0 is directly connected, FastEthernet0/0
C
172.168.13.0 is directly connected, FastEthernet0/1
R
172.168.14.0 [120/1] via 172.168.13.2, 00:00:15, FastEthernet0/1
router5上显示
Router#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP

D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP

i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area

* - candidate default, U - per-user static route, o - ODR

P - periodic downloaded static route
Gateway of last resort is not set

172.168.0.0/24 is subnetted, 4 subnets
R
172.168.11.0 [120/2] via 172.168.13.1, 00:00:21, FastEthernet0/1
R
172.168.12.0 [120/1] via 172.168.13.1, 00:00:21, FastEthernet0/1
C
172.168.13.0 is directly connected, FastEthernet0/1
C
172.168.14.0 is directly connected, Loopback0
以上显示的信息表明它们之间已经相互学习到了路由信息,看看你配置的是否显示的一样。
仔细检查一下~
完成了

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
发表于 2010-11-30 00:19:34 | 显示全部楼层
这是草稿吧?
发表于 2010-11-30 09:06:41 | 显示全部楼层
还是实验报告 ?
发表于 2010-11-30 09:09:50 | 显示全部楼层
后期可以再加工排版一下会更好!
发表于 2010-11-30 10:04:37 | 显示全部楼层
技术常总结,幸福常相伴
发表于 2010-11-30 12:39:46 | 显示全部楼层
楼主可以考虑一下把字体统一一下,然后自己的注释用不同颜色标注。在进行一些排版这样更容易让大家理解和学习。
发表于 2010-12-1 09:21:08 | 显示全部楼层
关注中,前段时间把CISCO给耽误了,现在重新捡起来学。。。。
发表于 2010-12-1 13:28:56 | 显示全部楼层
鼓励鼓励!
发表于 2010-12-1 16:52:32 | 显示全部楼层
无比的晕。。。不过看在LZ辛苦发上来的份上顶了吧!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|熊猫同学技术论坛|小黑屋| 网络工程师论坛 ( 沪ICP备09076391 )

GMT+8, 2024-11-22 12:32 , Processed in 0.168034 second(s), 20 queries , Gzip On.

快速回复 返回顶部 返回列表