您現(xiàn)在的位置: test4exam >> 計(jì)算機(jī)考試 >> CISCO認(rèn)證 >> 正文
實(shí)驗(yàn)介紹:
本實(shí)驗(yàn)所用的設(shè)備為:三臺帶有2個S0口和一個E0口的路由器,三臺PC
靈活掌握RIP的動態(tài)路由的配置。
實(shí)驗(yàn)步驟:
1. R1上的配置:
Router>
Router>en
Router#conf t
Router(config)#host r1
r1(config)#int e0
r1(config-if)#ip add 172.16.1.1 255.255.255.0
r1(config-if)#no shutdown
r1(config-if)#exit
r1(config)#int s0
r1(config-if)#ip add 172.16.2.1 255.255.255.0
r1(config-if)#no shutdown
r1(config-if)#clock rate 56000
r1(config-if)#no shutdown
r1(config-if)#exit
r1(config)#router rip
r1(config-router)#net 172.16.0.0
r1(config-router)#^Z
RIP協(xié)議啟用前的路由表
r1#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
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, * - candidate default
U - per-user static route
Gateway of last resort is not set
C 172.16.1.0/24 is directly connected, Ethernet0
C 172.16.2.0/24 is directly connected, Serial0
RIP協(xié)議啟用后的路由表
r1#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
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, * - candidate default
U - per-user static route
Gateway of last resort is not set
C 172.16.1.0/24 is directly connected, Ethernet0
C 172.16.2.0/24 is directly connected, Serial0
R 172.16.3.0/24 [120/1] via 172.16.2.2, 00:01:37, Serial0
R 172.16.4.0/24 [120/1] via 172.16.2.2, 00:07:21, Serial0
R 172.16.5.0/24 [120/2] via 172.16.2.2, 00:05:21, Serial0
2. R2上的配置:
Router>
Router>en
Router#conf t
Router(config)#host r2
r2(config)#int s1
r2(config-if)#ip add 172.16.2.2 255.255.255.0
r2(config-if)#no shutdown
r2(config-if)#exit
r2(config)#int s0
r2(config-if)#ip add 172.16.4.0 255.255.255.0
r2(config-if)#ip add 172.16.4.1 255.255.255.0
r2(config-if)#clock rate 56000
r2(config-if)#no shutdown
r2(config-if)#exit
r2(config)#int e0
r2(config-if)#ip add 172.16.3.1 255.255.255.0
r2(config-if)#no shutdown
r2(config-if)#exit
r2(config)#router rip
r2(config-router)#net 172.16.0.0
r2(config-router)#^Z
r2#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
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, * - candidate default
U - per-user static route
Gateway of last resort is not set
C 172.16.2.0/24 is directly connected, Serial1
C 172.16.3.0/24 is directly connected, Ethernet0
C 172.16.4.0/24 is directly connected, Serial0
R 172.16.1.0/24 [120/1] via 172.16.2.1, 00:09:13, Serial1
R 172.16.5.0/24 [120/1] via 172.16.4.2, 00:09:13, Serial0
3. R3上的配置:
Router>
Router>en
Router#conf t
Router(config)#int s1
Router(config-if)#ip add 172.16.4.2 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#int e0
Router(config-if)#ip add 172.16.5.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#host r3
r3(config)#
r3(config)#router rip
r3(config-router)#net 172.16.0.0
r3(config-router)#^Z
r3#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
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, * - candidate default
U - per-user static route
Gateway of last resort is not set
C 172.16.4.0/24 is directly connected, Serial1
C 172.16.5.0/24 is directly connected, Ethernet0
R 172.16.1.0/24 [120/1] via 172.16.4.1, 00:05:32, Serial1
R 172.16.2.0/24 [120/1] via 172.16.4.1, 00:08:19, Serial1
R 172.16.3.0/24 [120/1] via 172.16.4.1, 00:05:32, Serial1
4. 測試:
r1#
r1#ping
Protocol [ip]:
Target IP address: 172.16.5.2
Repeat count [5]:
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]:
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.5.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max =
PC 上的配置為:
PC1:IP為172.16.1.2 網(wǎng)關(guān):172.16.1.1
PC2:IP為172.16.3.2 網(wǎng)關(guān):172.16.3.1
PC3:IP為172.16.5.2 網(wǎng)關(guān):172.16.5.1
Copyright ©2013-2015 江浙滬招生考試網(wǎng) All Rights Reserved.
地址: 蘇州市姑蘇區(qū)閶胥路483號(工投創(chuàng)業(yè)園) 電話:0512-85551931 郵編: 214000
郵箱: [email protected] 版權(quán)所有:蘇州邁峰教育科技有限公司 蘇ICP備15050684號-2