Sponsored Content
Full Discussion: arp questions
Top Forums UNIX for Advanced & Expert Users arp questions Post 302553058 by Corona688 on Tuesday 6th of September 2011 02:20:11 PM
Old 09-06-2011
Quote:
Originally Posted by COKEDUDE
Can someone please explain this output to me. Why doesn't ifconfig show the same info?
ifconfig just shows you information on your own network card. (which does have one bit of arp-related information -- the hwaddr). Entries in your ARP table are from other network cards -- other computers on the same subnet.

This is because to communicate with these addresses, it needs their MAC addresses, and must ask for them. On a local network, i.e. things on the same subnet as you, IP doesn't need to bother routing -- it can transmit directly to the destination network card and expect to be heard. But to talk to a card and not an IP, it needs the MAC address. If you're talking to something not on the local subnet, it doesn't care about the destination's MAC address, it just sends it to the appropriate gateway, which forwards it along. (You'd need the gateway's mac address, though!)

ARP is how it finds out MAC addresses. It works without IP or routing or any addressing at all -- it broadcasts requests and replies across an entire subnet. "arp who-has 10.71.0.1" would get answered with "arp reply 00:1b:21:2b:eb:0c has 10.71.0.1", so your computer would know to send packets for 10.71.0.1 directly to 00:1b:21:2b:eb:0c. It does all this without the programmer having to intervene at all, as far as IP can tell it's just 10.71.0.1 talking to 10.71.0.2 or whatever.

Since this bypasses all routing, I've seen hardwired ARP addresses abused to allow one IP address to talk across multiple subnets on the same wire, though I'm not convinced this would work everywhere.

Last edited by Corona688; 09-06-2011 at 03:27 PM..
This User Gave Thanks to Corona688 For This Post:
 

10 More Discussions You Might Find Interesting

1. Solaris

ARP Cache

Dear all, We are testing two of our servers for mq series connectivity. The scenario is, when one machine is shutting down it's services there are some scripts that do a dns update, which removes the ip address and relates it to the ip address of the other node on our dns server, and the update... (7 Replies)
Discussion started by: earlysame55
7 Replies

2. IP Networking

ARP Req Pkt

Does ARP Request packet Contains MAC Address of dest during broadcast? I found It So... When i captured ARP Req Pkts on ethereal... Rgds -Meti (1 Reply)
Discussion started by: ashokmeti
1 Replies

3. HP-UX

HW Address and arp

I was checking nettl output for a unstable telnet to my server. this is part of output: ### ***********************************STREAMS/UX*******************************@#% Timestamp : Sun Jun 22 EETDST 2008 22:14:47.492899 Process ID : Subsystem ... (4 Replies)
Discussion started by: xramm
4 Replies

4. IP Networking

Modifying ARP frames

Hi All, Is there any way to modify or filter the ARP frames?? thanks! (2 Replies)
Discussion started by: lagigliaivan
2 Replies

5. IP Networking

arp output (flags)

I'm running an arp -an on a Solaris 10 box. We're using IPMP. One of the systems is not able to see a host on the same network. The only difference between the two systems (one is having a problem, the other isn't) at least so far is the output of arp: # arp -an | grep 224.55 e1000g5... (1 Reply)
Discussion started by: BOFH
1 Replies

6. Red Hat

Arp Problem

Dear All i have a linux proxy server which has RHEL-5 64 bit, it has two interfaces, it has the following details eth0=10.200.14.42 eth3=10.201.14.42 default gateway=10.201.14.254 one static route=192.168.0.0/24 gw 10.200.14.254 i am facing a problem when i ping 10.201.14.42 from... (2 Replies)
Discussion started by: surfer24
2 Replies

7. IP Networking

Stuck ARP entries

About a week ago a customer hooked up a wireless router backwards to our network, causing it to serve incorrect DHCP addresses to some of them. Our networks are mostly statically assigned so this didn't cause as much damage as it might have, but now, over a week later, I still have incomplete... (1 Reply)
Discussion started by: Corona688
1 Replies

8. IP Networking

necessary ARP request?

Hello, I have 2 clients with Unix installed. host1: eth0 (192.168.5.10) & eth1 (192.168.10.10) host2: eth0 (192.168.10.20) I've connected host1-eth1 to host2-eth0. host1-eth0 isn't connected. I started 'tcpdump' on wonder that host2 got ARP requests for 192.168.5.10. Any idea why host1... (2 Replies)
Discussion started by: daWonderer
2 Replies

9. War Stories

What arp -s is good for

A customer appears to have drastically misunderstood our instructions for connecting to our WAN. He set his PC IP address to the same as one of the bridges. :mad: :wall: This caused much confusion on the network, to put it mildly. He called to complain about the poor performance of the network... (13 Replies)
Discussion started by: Corona688
13 Replies

10. Red Hat

[RedHat] ARP issue

Hello, I am setting up a new RedHat server with two network interfaces. These interfaces are on different subnets, and connected to the same firewall. I'm trying to reach a remote IP. It works fine from the first interface. The second interface however, is making ARP requests instead of... (0 Replies)
Discussion started by: Wanou85
0 Replies
arp(7P) 																   arp(7P)

NAME
arp - Address Resolution Protocol DESCRIPTION
ARP is a protocol used to dynamically map between DARPA Internet and hardware station addresses. It is used by all LAN drivers. ARP caches Internet-to-hardware station address mappings. When an interface requests a mapping for an address not in the cache, ARP queues the message that requires the mapping, and broadcasts a message on the associated network requesting the address mapping if the encapsula- tion method has been enabled for the interface. If a response is provided, the new mapping is cached and any pending message is transmit- ted. ARP queues at most one packet while waiting for a mapping request to be responded to; only the most recently ``transmitted'' packet is kept. To facilitate communications with systems that do not use ARP, calls are provided to enter and delete entries in the Internet-to-hardware station address tables. Application Usage: Each call takes the same structure as an argument. sets an ARP entry, gets an ARP entry, and deletes an ARP entry. These calls can be applied to any socket descriptor s, but only by the super-user. The structure contains: The address family for the must be for the it must be The only flag bits that can be written are and Fibre Channel hosts only support the flag. causes the entry to be permanent. specifies that the ARP code should respond to ARP requests for the indicated host coming from other machines. This allows a host to act as an ARP server, which may be useful in convincing an ARP-only machine to talk to a non-ARP machine. ARP watches passively for hosts impersonating the local host (i.e., a host that responds to an ARP mapping request for the local host's address). DIAGNOSTICS
This message printed on the console screen means that ARP has discovered another host on the local network that responds to mapping requests for its own Internet address. WARNINGS
To enable the encapsulation method, use the command (see ifconfig(1M)). AUTHOR
ARP was developed by the University of California, Berkeley. SEE ALSO
ifconfig(1M), inet(3N), lan(7), arp(1M). RFC826, Dave Plummer, Network Information Center, SRI. arp(7P)
All times are GMT -4. The time now is 07:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy