实验2网络设备基本连接与测试

实验2网络设备基本连接与测试
实验任务一

  1. 配置ip地址
    1399347-20190706223633898-1950453794.png
    1399347-20190706223639125-1111160064.png

2.RTA ping RTB
ping ?
-a Specify the source IP address
-c Specify the number of echo requests
-f Specify packets not to be fragmented
-h Specify the TTL value
-i Specify an outgoing interface
-m Specify the interval for sending echo requests
-n Numeric output only. No attempt will be made to lookup host
addresses for symbolic names
-p No more than 8 "pad" hexadecimal characters to fill out the
sent packet. For example, -p f2 will fill the sent packet with
000000f2 repeatedly
-q Display only summary
-r Record route. Include the RECORD_ROUTE option in the
ECHO_REQUEST packets and display the route
-s Specify the payload length
-t Specify the wait time for each reply
-topology Specify a topology
-tos Specify the TOS value
-v Display the received ICMP packets other than ECHO-RESPONSE
packets
-vpn-instance Specify a VPN instance
STRING<1-253> IP address or hostname of remote system
ip IP information
ipv6 IPv6 information
mpls MPLS ping
ping –c 50 192.168.1.2
//发送50个报文,目的地址是192.168.1.2
1399347-20190706223648952-7582423.png

ping –s 512 192.168.1.2
//发送报文大小是512字节,目的地址是192.168.1.2
1399347-20190706223657014-1203244244.png

ping –a 192.168.1.1 192.168.1.2
//发送报文源地址为192.168.1.1,目的地址是192.168.1.2
1399347-20190706223702228-1677997738.png

ping –a 192.168.0.1 192.168.1.2
//发送报文源地址为192.168.0.1,目的地址是192.168.1.2
1399347-20190706223708270-924222502.png

加源地址ping,只能使用设备本身的本地接口地址,否则ping不通
但是用了设备本身的接口地址,为什么ping不通,同一个路由器上?
因为没有找不到路由去到192.168.1.2,缺少静态路由指向192.168.1.2
实验任务二:
使用debugging命令查看调试信息
terminal monitor//开启终端对系统信息的监视功能
The current terminal is enabled to display logs.
terminal debugging//开启终端对调试信息的显示功能
The current terminal is enabled to display debugging logs.
1399347-20190706223726014-1810936806.png

第一条是RTB收到ICMP报文,type=8的echo报文
第二条是RTB发出ICMP报文,type=0的echo-reply报文

转载于:https://www.cnblogs.com/akiz/p/11144460.html

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值