Difference between revisions of "Redhat: Network Diagnostics"

From Define Wiki
Jump to navigation Jump to search
(Created page with "== Arp ==")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 +
== Ping ==
 +
 
== 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>

Latest revision as of 08:31, 25 August 2013

Ping

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                     br0

Remove an ARP entry

arp -d <hostname>

Add an ARP entry

arp -s <hostname> <MAC address>