Difference between revisions of "Redhat: Network Diagnostics"
Jump to navigation
Jump to search
(Created page with "== Arp ==") |
|||
| Line 1: | Line 1: | ||
== Arp == | == Arp == | ||
| + | |||
| + | Address Resolution Protocol associates IP addresses with MAC addresses. Running ARM will display the a list of recent connections, showing the IP address, hostname and MAC address. | ||
| + | |||
| + | <syntaxhighlight> | ||
| + | [root@head ~]# arp | ||
| + | Address HWtype HWaddress Flags Mask Iface | ||
| + | compute000-ipmi.compute ether 00:25:90:58:5c:bf C eth0 | ||
| + | compute002.compute.bost ether 00:25:90:58:5c:56 C eth0 | ||
| + | pxe ether 52:54:00:e7:3e:7d C br0 | ||
| + | 172.28.12.3 ether fc:2f:40:c8:7c:08 C br0 | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | == Remove an ARP entry == | ||
| + | |||
| + | <syntaxhighlight> | ||
| + | arp -d <hostname> | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | == Add an ARP entry == | ||
| + | |||
| + | <syntaxhighlight> | ||
| + | arp -s <hostname> <MAC address> | ||
| + | </syntaxhighlight> | ||
Revision as of 12:09, 18 August 2013
Arp
Address Resolution Protocol associates IP addresses with MAC addresses. Running ARM will display the a list of recent connections, showing the IP address, hostname and MAC address.
[root@head ~]# arp
Address HWtype HWaddress Flags Mask Iface
compute000-ipmi.compute ether 00:25:90:58:5c:bf C eth0
compute002.compute.bost ether 00:25:90:58:5c:56 C eth0
pxe ether 52:54:00:e7:3e:7d C br0
172.28.12.3 ether fc:2f:40:c8:7c:08 C br0Remove an ARP entry
arp -d <hostname>Add an ARP entry
arp -s <hostname> <MAC address>