Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The usage of the Linux basic command arping

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "the usage of the Linux basic command arping". Many people will encounter such a dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Arping

The arping instruction is used to send an arp request to an adjacent host, to send an arp request on the specified network card to specify the address, and the source address is specified using-s. The instruction can diameter ping MAC addresses to find out which addresses are used by which computers.

The scope of this command: RedHat, RHEL, Ubuntu, CentOS, SUSE, openSUSE, Fedora.

1. Grammar

Arping [- AbDfhqUV] [- c count] [- w deadling] [- s source]-I interface destnation

2. List of options

Option

Description

A

Same as-U, but sending an ARP RELAY message

-b

Send only broadcast messages at the physical layer

-c count

Specify the number of times to send test packets

-D

Duplicate address detection mode

-f

If the destination host responds, stop sending test packets immediately

-h

Display help information

-Iinterface

Specify network device interface

-Q

Silent mode

-s source

Specify the source address where the test package is sent

-U

Update neighbor host arp cache

-V

Display version information

-w

Specify timeout

3. Examples

Send a request to a neighbor host

[root@localhost ~] # arping-I eth0 192.168.1.8 / / specify the network card and send the request to the destination ip

ARPING 192.168.1.8 from 192.168.1.9 eth0

Unicast reply from 192.168.1.8 [98:01:A7:9F:5E:9D] 0.817ms / / you can see the mac address of the destination ip

Unicast reply from 192.168.1.8 [98:01:A7:9F:5E:9D] 0.749ms

Unicast reply from 192.168.1.8 [98:01:A7:9F:5E:9D] 0.741ms

Unicast reply from 192.168.1.8 [98:01:A7:9F:5E:9D] 0.787ms

This is the end of the introduction to "the usage of the Linux basic command arping". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report