C 192.168.4.0/24 is directly connected, Serial2/0 R1#
R2:
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname R2 R2(config)#interface fa0/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 192.168.2.1 255.255.255.0 R2(config-if)#exit
R2(config)#interface serial 2/0 R2(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial2/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up
R2(config-if)#ip address 192.168.4.2 255.255.255.0 R2(config-if)#exit R2(config)#end
%SYS-5-CONFIG_I: Configured from console by console 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 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
C 192.168.2.0/24 is directly connected, FastEthernet0/0 C 192.168.4.0/24 is directly connected, Serial2/0 R2#conf t
Enter configuration commands, one per line. End with CNTL/Z. R2(config)#router rip
R2(config-router)#network 192.168.2.0 R2(config-router)#network 192.168.4.0 R2(config-router)#version 2 R2(config-router)#end
%SYS-5-CONFIG_I: Configured from console by console 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 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
R 192.168.1.0/24 [120/2] via 192.168.4.1, 00:00:00, Serial2/0 C 192.168.2.0/24 is directly connected, FastEthernet0/0
R 192.168.3.0/24 [120/1] via 192.168.4.1, 00:00:00, Serial2/0 C 192.168.4.0/24 is directly connected, Serial2/0 R2#
五、测试
Packet Tracer PC Command Line 1.0 PC>ipconfig
IP Address......................: 192.168.2.2 Subnet Mask.....................: 255.255.255.0 Default Gateway.................: 192.168.2.1
PC>ping 192.168.1.2
Pinging 192.168.1.2 with 32 bytes of data:
Request timed out.
Request timed out.
Reply from 192.168.1.2: bytes=32 time=16ms TTL=125 Reply from 192.168.1.2: bytes=32 time=17ms TTL=125
Ping statistics for 192.168.1.2:
Packets: Sent = 4, Received = 2, Lost = 2 (50% loss), Approximate round trip times in milli-seconds:
Minimum = 16ms, Maximum = 17ms, Average = 16ms
PC>ping 192.168.1.2
Pinging 192.168.1.2 with 32 bytes of data:
Reply from 192.168.1.2: bytes=32 time=19ms TTL=125 Reply from 192.168.1.2: bytes=32 time=16ms TTL=125 Reply from 192.168.1.2: bytes=32 time=13ms TTL=125 Reply from 192.168.1.2: bytes=32 time=15ms TTL=125
Ping statistics for 192.168.1.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds:
Minimum = 13ms, Maximum = 19ms, Average = 15ms PC>
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库Packet Tracer 5.0实验(九) 路由器RIP动态路由配置(2)在线全文阅读。
相关推荐: