In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "Linux common command arp how to use", the content is easy to understand, clear, hope to help you solve doubts, the following let the editor lead you to study and learn "Linux common command arp how to use" this article.
Linux common command arp command is used to manage the arp buffer of the system, which can display, delete, and add static mac addresses. ARP manipulates the kernel's ARP cache in various ways. The main option is to clear the address mapping entry and set it manually. For debugging purposes, the ARP program also allows a complete dump of the ARP cache
Describes the arp cache used to manage the system, and common commands include:
Arp: displays all table items.
Arp-d address: delete an arp entry.
Arp-s address hw_addr: sets an arp entry.
Common parameter:-an is output in bsd form. (no fixed column)-n displays the ip address in numeric form instead of the default hostname form. -D specifies not the hardware address but the name of a network interface, and the table entry uses the MAC address of the corresponding interface. It is generally used to set up the ARP proxy. -H type,-hw-type type: specifies to check for specific types of table items. The default type is ether, and there are other types. -I If,-device If: specify the arp entry on which network interface to set. -f filename: works like'- s address, but it specifies the binding of the IP address and the MAC address through a file. Each line in the file is the host and MAC, separated by a space. If no file name is specified, the / etc/ethers file is used.
Example 1 case a, view the arp table
[root@Blackghost ~] arp example b, look at the arp table and display it with ip instead of the host name
[root@Blackghost ~] arp-n example c, view the arp table, display the hostname and IP
[root@Blackghost ~] arp-an example of binding between IP and MAC addresses
[root@Blackghost ~] arp-s 192.168.1.120 08:00:27:7e:b8:08 example e, delete arp table
[root@Blackghost ~] arp-d 192.168.1.120 e, delete the arp table on the specified network card
[root@Blackghost] arp-I eth0-d 192.168.1.120 and above are all the contents of this article entitled "how to use arp in Linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.