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

How to use the arp command on Linux system

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly introduces the Linux system arp command how to use, the article is very detailed, has a certain reference value, interested friends must read it!

The main function of the arp command in the Linux system is to manage the arp buffer of the system, which can display, delete and add static mac addresses, and ARP manipulates the kernel ARP cache in various ways.

Syntax arp (option) (parameter) parameter:-a: displays all entries in the arp buffer;-H: specifies the type of address used by the arp instruction;-d: removes the arp entry for the specified host from the arp buffer;-D: uses the hardware address of the specified interface;-e: displays the entries in the arp buffer in the display style of Linux;-I: specifies the network interface on which to operate the arp buffer -s: sets the static mapping of the specified host's IP address to MAC address;-n: digitally displays entries in the arp buffer;-v: displays detailed arp buffer entries, including buffer entry statistics;-f: sets the static mapping of the host's IP address to MAC address. Case demonstration: 1) View arp cache

Arp-nv2) add arp cache entry

Arp-s 10.1.1.1 00 11 22 33 44 55 15) Delete arp cache entry

Arp-d 10.1.10.1184) specify the MAC address of the reply

Arp-I eth0-Ds 10.0.0.2 eth2 pub hint: when eth0 receives a request with an IP address of 10.0.0.2, use the MAC address of eth2 to answer all the contents of the article "how to use arp commands on the Linux system". Thank you for reading! Hope to share the content to help you, more related 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: 254

*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

Development

Wechat

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

12
Report