将文件“shu.cfg”下载到C:\\Documents and Settings\\Owner中,保存的文件名为“back-shu.cfg”. 步骤五:使用FTP上传文件
使用“put”命令上传文件,上传之后的文件可以使用“dir”命令进行查看,如下图(12)所示:
图(12)
实验二 网络设备基本连接与调试: 实验任务一:搭建基本连接环境
本实验任务供学员熟悉并掌握路由器、交换机、PC的节本网络连接配置。 步骤一:完成PC、交换机、路由器互联
完成两台路由器通过串口电缆背靠背相连;路由器以太口分别下接交换机;PC通过网线连接到交换机端口上。 步骤二:配置IP地址
将所有设备的配置清空重启后开始下面的配置
使用“ip address”命令配置路由器的串口和以太口IP地址。 RTA的配置如下: [RTA]interface e0/0
[RTA-Ethernet0/0]ip address 192.168.2.1 255.255.255.0
[RTA-Ethernet0/0]quit [RTA]interface s0/0
[RTA-Serial0/0]ip address 192.168.4.1 255.255.255.0 [RTA-Serial0/0]quit [RTA]
RTB的配置如下: [RTB]interface e0/0
[RTB-Ethernet0/0]ip address 192.168.3.1 255.255.255.0 [RTB-Ethernet0/0]quit [RTB]interface s0/0
[RTB-Serial0/0]ip address 192.168.4.2 255.255.255.0 [RTB-Serial0/0]quit [RTB]
PCA的网络IP地址设置如下,如下图(13)所示:
图(13)
PCA通过二层交换机连接到路由器接口E0/0,那么PCA的网管地址应设置为路由器的借口E0/0的IP地址。对于PCB采用同样的配置方式。PCB的网络IP地址设置如下,如下图(14)所示:
图(14)
实验任务二:使用ping命令检查连通性 步骤一:RTA ping RTB
通过超级终端登入到RTA后,ping RTB的串口S0/0,检查路由器之间串口的连通性。
[RTA]ping 192.168.4.2
PING 192.168.4.2: 56 data bytes, press CTRL_C to break
Reply from 192.168.4.2: bytes=56 Sequence=1 ttl=255 time=25 ms Reply from 192.168.4.2: bytes=56 Sequence=2 ttl=255 time=25 ms Reply from 192.168.4.2: bytes=56 Sequence=3 ttl=255 time=25 ms Reply from 192.168.4.2: bytes=56 Sequence=4 ttl=255 time=24 ms Reply from 192.168.4.2: bytes=56 Sequence=5 ttl=255 time=25 ms
--- 192.168.4.2 ping statistics --- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss
round-trip min/avg/max = 24/24/25 ms
结果显示,RTA收到了ICMP的Echo Reply 报文,RTA可以ping通RTB。反之亦然。
这里路由器默认是发送5个ICMP请求报文,大小是56bytes所以ping成功后,会收到5个Reply报文。而Windows默认是发送4个ICMP请求报文,大小事32bytes。
查看路由器ping命令携带的参数。 [RTA]ping ?
-a Select source IP address
-c Specify the number of echo requests to be sent -f Specify packets not to be fragmented
-h Specify TTL value for echo requests to be sent -i Select the interface to send the packets
-m Specify the interval in milliseconds to send packets -n Numeric output only. No attempt will be made to lookup host
addresses for symbolic names
-p No more than 8 \hexadecimal characters to fill out the
sent packet. For example, -p f2 will fill the sent packet
with 000000f2 repeatedly
-q Quiet output. Nothing will be displayed except for the summary
lines.
-r Record route. Include the RECORD_ROUTE option in the ECHO_REQUEST packets and display the route -s Specify the number of data bytes to be sent
-t Specify the time in milliseconds to wait for each reply
-tos Specify TOS value for echo requests to be sent -v Display the received ICMP packets other than ECHO-RESPONSE
packets.
-vpn-instance Specify VPN-Instance of MPLS VPN
STRING<1-255> IP address or hostname of a remote system ip IP Protocol ---- More ----
例如,可以使用参数-c来设定发送50个ping报文: [RTA]ping –c 50 192.168.4.2 步骤二:PCA ping RTA
点击“开始”→“运行”,输入“cmd”进入PCA命令行窗口,ping RTA的E0/0口(图(15))和S0/0口地址(图(16))。
图(15)
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库网络设备的基本操作与连接调试(7)在线全文阅读。
相关推荐: