File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 1
1
arp
2
2
===
3
3
4
- arp 命令用于显示和修改 IP 到 MAC 转换表。ARP 是 Address Resolution Protocol,地址解析协议,是通过解析网络层地址来找寻数据链路层地址的一个网络协议包中极其重要的网络传输协议。而该命令可以显示和修改 arp 协议解析表中的缓冲数据。
4
+ arp 命令用于显示和修改 IP 到 MAC 转换表。
5
5
6
6
## 补充说明
7
7
8
- ** arp 命令** 用于操作主机的 arp 缓冲区,它可以显示 arp 缓冲区中的所有条目、删除指定的条目或者添加静态的 ip 地址与 MAC 地址对应关系 。
8
+ ** arp 命令** 是 Address Resolution Protocol,地址解析协议,是通过解析网络层地址来找寻数据链路层地址的一个网络协议包中极其重要的网络传输协议。而该命令可以显示和修改 arp 协议解析表中的缓冲数据 。
9
9
10
10
### 语法
11
11
12
- ```
12
+ ``` shell
13
13
arp(选项)(参数)
14
14
```
15
15
@@ -34,7 +34,7 @@ arp(选项)(参数)
34
34
35
35
显示arp 缓冲区内容
36
36
37
- ```
37
+ ``` shell
38
38
[root@localhost ~ ]# arp -v
39
39
Address HWtype HWaddress Flags Mask Iface
40
40
192.168.0.134 ether 00:21:5E:C7:4D:88 C eth1
@@ -44,11 +44,15 @@ Entries: 2 Skipped: 0 Found: 2
44
44
45
45
添加静态 arp 映射
46
46
47
- arp -s IP MAC-ADDRESS
48
- arp -s 192.168.1.1 00:b1:b2:b3:b4:b5
47
+ ``` shell
48
+ arp -s IP MAC-ADDRESS
49
+ arp -s 192.168.1.1 00:b1:b2:b3:b4:b5
50
+ ```
49
51
50
52
删除 arp 缓存条目
51
53
52
- arp -d 192.168.1.1
54
+ ``` shell
55
+ arp -d 192.168.1.1
56
+ ```
53
57
54
58
<!-- Linux 命令行搜索引擎:https://jaywcjlove.github.io/linux-command/ -->
You can’t perform that action at this time.
0 commit comments