●追加
[root@apc01 ~]# arp -s 192.168.56.5 00:00:00:00:11:11
[root@rhel75 network-scripts]# ip neigh replace 192.168.100.114 lladdr 08:00:27:d6:a
7:1a dev vlan21
●追加(ファイル指定)
[root@apc01 ~]# arp -f /tmp/xxxx.txt
●削除
[root@apc01 ~]# arp -d 192.168.56.5
[root@ora12ee01 ~]# arp -vd 192.168.100.115
●表示
[root@apc01 ~]# arp
Address HWtype HWaddress Flags Mask Iface
10.0.2.2 ether 52:54:00:12:35:02 C enp0s3
192.168.56.1 ether 0a:00:27:00:00:0f C enp0s8
192.168.0.1 ether 8c:4c:dc:a4:b4:cf C enp0s10
●表示(インターフェース指定)
[root@apc01 ~]# arp -i enp0s8
Address HWtype HWaddress Flags Mask Iface
192.168.56.1 ether 0a:00:27:00:00:0f C enp0s8
●表示(ホスト名指定)
[root@apc01 ~]# arp -a 192.168.56.1
? (192.168.56.1) at 0a:00:27:00:00:0f [ether] on enp0s8
[root@rhel75 network-scripts]# ip neigh
10.0.2.2 dev enp0s3 lladdr 52:54:00:12:35:02 STALE
192.168.100.114 dev vlan21 lladdr 08:00:27:d6:a7:1a PERMANENT
192.168.56.1 dev enp0s8 lladdr 0a:00:27:00:00:07 REACHABLE
[root@ora12ee01 ~]# arp -an
? (192.168.56.113) at 08:00:27:1a:38:bb [ether] on enp0s3
? (192.168.56.1) at 0a:00:27:00:00:07 [ether] on enp0s3
? (10.0.3.2) at 52:54:00:12:35:02 [ether] on enp0s8
? (192.168.100.115) at <incomplete> on bond0
? (192.168.100.114) at 08:00:27:d6:a7:1a [ether] PERM on bond0
? (192.168.100.113) at 08:00:27:ea:b4:c4 [ether] on bond0