通过本实验,可以掌握以下技能:
实验的拓扑结构如图实验4所示,地址如下。通过2对交叉线序双绞线分别把twins和sa连接起来、twins和gill连接起来。
各路由器使用的接口及其编号见图的标注。各接口IP地址分配如下:
这里采用图形化界面进行配置具体信息
twins
sa
gill
sa
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router rip
Router(config-router)#version 2
Router(config-router)#network 192.168.10.2
Router(config-router)#network 192.168.12.1
Router(config-router)#^Z
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router#
twins
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router rip
Router(config-router)#version 2
Router(config-router)#network 192.168.10.1
Router(config-router)#network 192.168.11.1
Router(config-router)#^Z
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router#
gill
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#router rip
Router(config-router)#version 2
Router(config-router)#network 192.168.11.2
Router(config-router)#network 192.168.15.1
Router(config-router)#^Z
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router#
sa
twins
gill
sa
twins
gill
从服务器ping到主机PC
SERVER>ipconfig
FastEthernet0 Connection:(default port)
Link-local IPv6 Address.........: FE80::2E0:B0FF:FE2D:D805
IP Address......................: 192.168.12.2
Subnet Mask.....................: 255.255.255.0
Default Gateway.................: 192.168.12.1
SERVER>ping 192.168.12.1
Pinging 192.168.12.1 with 32 bytes of data:
Reply from 192.168.12.1: bytes=32 time=0ms TTL=255
Reply from 192.168.12.1: bytes=32 time=3ms TTL=255
Reply from 192.168.12.1: bytes=32 time=5ms TTL=255
Reply from 192.168.12.1: bytes=32 time=0ms TTL=255
Ping statistics for 192.168.12.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 5ms, Average = 2ms
SERVER>ping 192.168.10.2
Pinging 192.168.10.2 with 32 bytes of data:
Reply from 192.168.10.2: bytes=32 time=0ms TTL=255
Reply from 192.168.10.2: bytes=32 time=2ms TTL=255
Reply from 192.168.10.2: bytes=32 time=0ms TTL=255
Reply from 192.168.10.2: bytes=32 time=0ms TTL=255
Ping statistics for 192.168.10.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 2ms, Average = 0ms
SERVER>ping 192.168.10.1
Pinging 192.168.10.1 with 32 bytes of data:
Reply from 192.168.10.1: bytes=32 time=8ms TTL=254
Reply from 192.168.10.1: bytes=32 time=6ms TTL=254
Reply from 192.168.10.1: bytes=32 time=0ms TTL=254
Reply from 192.168.10.1: bytes=32 time=5ms TTL=254
Ping statistics for 192.168.10.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 8ms, Average = 4ms
SERVER>ping 192.168.11.1
Pinging 192.168.11.1 with 32 bytes of data:
Reply from 192.168.11.1: bytes=32 time=1ms TTL=254
Reply from 192.168.11.1: bytes=32 time=0ms TTL=254
Reply from 192.168.11.1: bytes=32 time=0ms TTL=254
Reply from 192.168.11.1: bytes=32 time=0ms TTL=254
Ping statistics for 192.168.11.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms
SERVER>ping 192.168.15.1
Pinging 192.168.15.1 with 32 bytes of data:
Reply from 192.168.15.1: bytes=32 time=2ms TTL=253
Reply from 192.168.15.1: bytes=32 time=1ms TTL=253
Reply from 192.168.15.1: bytes=32 time=1ms TTL=253
Reply from 192.168.15.1: bytes=32 time=1ms TTL=253
Ping statistics for 192.168.15.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 2ms, Average = 1ms
SERVER>ping 192.168.15.2
Pinging 192.168.15.2 with 32 bytes of data:
Reply from 192.168.15.2: bytes=32 time=11ms TTL=125
Reply from 192.168.15.2: bytes=32 time=1ms TTL=125
Reply from 192.168.15.2: bytes=32 time=7ms TTL=125
Reply from 192.168.15.2: bytes=32 time=0ms TTL=125
Ping statistics for 192.168.15.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 11ms, Average = 4ms
SERVER>
从PCping 服务器
至此,该实验完成!