ping_and_arping

本文介绍了两种常用的网络诊断工具:arping 和 ping。arping 使用 ARP 协议来检查指定 IP 地址的主机 MAC 地址;而 ping 则通过 ICMP 协议来检查指定 IP 地址的主机是否可达。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

arping使用ARP协议检查指定IP地址的主机的MAC地址。

ping使用ICMP协议检查指定IP地址的主机是否连通。

 

协议栈:

好了 现在继续帮我处理吧 [root@kelly kelly]# vim /etc/sysconfig/network-scripts/ifcfg-ens33 [root@kelly kelly]# systemctl restart NetworkManager [root@kelly kelly]# ifdown ens33 && ifup ens33 成功断开设备 "ens33"。 连接已成功激活(D-Bus 活动路径:/org/freedesktop/NetworkManager/ActiveConnection/5) [root@kelly kelly]# nmcli connection reload [root@kelly kelly]# nmcli connection up ens33 连接已成功激活(D-Bus 活动路径:/org/freedesktop/NetworkManager/ActiveConnection/6) [root@kelly kelly]# ethtool ens33 | grep "Link detected" Link detected: yes [root@kelly kelly]# ping 192.168.233.1 PING 192.168.233.1 (192.168.233.1) 56(84) bytes of data. From 192.168.233.100 icmp_seq=1 Destination Host Unreachable From 192.168.233.100 icmp_seq=2 Destination Host Unreachable From 192.168.233.100 icmp_seq=3 Destination Host Unreachable From 192.168.233.100 icmp_seq=4 Destination Host Unreachable From 192.168.233.100 icmp_seq=5 Destination Host Unreachable From 192.168.233.100 icmp_seq=6 Destination Host Unreachable From 192.168.233.100 icmp_seq=7 Destination Host Unreachable From 192.168.233.100 icmp_seq=8 Destination Host Unreachable From 192.168.233.100 icmp_seq=9 Destination Host Unreachable From 192.168.233.100 icmp_seq=10 Destination Host Unreachable From 192.168.233.100 icmp_seq=11 Destination Host Unreachable ^C --- 192.168.233.1 ping statistics --- 12 packets transmitted, 0 received, +11 errors, 100% packet loss, time 11007ms pipe 4 [root@kelly kelly]# arping 192.168.233.100 arping: Suitable device could not be determined. Please, use option -I. Usage: arping [-fqbDUAV] [-c count] [-w timeout] [-I device] [-s source] destination -f : quit on first reply -q : be quiet -b : keep broadcasting, don't go unicast -D : duplicate address detection mode -U : Unsolicited ARP mode, update your neighbours -A : ARP answer mode, update your neighbours -V : print version and exit -c count : how many packets to send -w timeout : how long to wait for a reply -I device : which ethernet device to use -s source : source ip address destination : ask for what ip address [root@kelly kelly]# cat /etc/sysconfig/network-scripts/ifcfg-ens33 TYPE=Ethernet PROXY_METHOD=none BROWSER_ONLY=no BOOTPROTO=static DEFROUTE=yes IPV4_FAILURE_FATAL=no #IPV6INIT=yes #IPV6_AUTOCONF=yes #IPV6_DEFROUTE=yes IPV6_FAILURE_FATAL=no IPV6_ADDR_GEN_MODE=stable-privacy NAME=ens33 UUID=890f029e-5250-4cf4-a012-d27ce7777fe8 DEVICE=ens33 ONBOOT=yes IPADDR=192.168.233.100 GATEWAY=192.168.233.1 NETMASK=255.255.255.0 HWADDR=00:0c:29:17:a7:b3 DNS1=114.114.114.114 DNS2=8.8.8.8
最新发布
03-21
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值