SUMMARY: problem with arp

From: Mary Lou Hinman (maryh@cea.berkeley.edu)
Date: Thu Oct 27 1994 - 19:14:02 CDT


Hi Managers,

Thanks to all who responded:

rauthenberg@HHI.DE (Stefan Rauthenberg)
jws@cellnet.com (Jim Seavey)
eric@xylan.com (Eric Peterson)
Mike Raffety <mike_raffety@il.us.swissbank.com>

My original question regarded a problem setting up static arp entries in the
arp table of a standalone machine with a dialup bridge. The quick answer came
from Mike Raffety:

>
> You can't arp a remote net ... you need to add the static arp entry on
> a machine on the same IP subnet as the remote (through the bridge) machine.
>

I changed the ip address of the host in question to the same subnet as the
other side of the bridges and it works fine. I will try later on doing as
Stefan sugested:

>
> I am wondering if you have tried to add the route on `tiburon' as gateway.
> There was a posting to the list a few days ago which might have addressed
> a related problem (how to setup 2 ip nets on the same wire)
>
....
>
> Quick and dirty: You will have to make each of the 2 hosts a route
> gateway to the other. On the host with the IP address 198.30.19.1 add
> the following route:
>
> route add 165.82.73.201 198.30.19.1 gateway
> After this run the netstat command again on machine to see the new routes.
> On the host with the IP address 165.82.73.201 add the following route:
> route add 198.30.19.1 165.82.73.201 gateway
>

My original question follows:
-----------------------------

>
>
> I am having a problem making static entries in a Suns arp table. I want
> the machine to recognize another machines IP address in its host table,
> then look in its arp table to resolve the ethernet address, rather than
> sending an arp broadcast to resolve it.
>
> This is a standalone workstation running 4.1.2 trying to connect to another
> machine through a dialup bridge. The bridge won't dial out unless the sender
> has the destination enet address, so my host must have a static arp entry.
> The intention is to have the static entries loaded in rc.local at boot time.
>
> My local hostname is tiburon.
> One of the remote hosts I am trying to reach is sam.
>
>
> # On tiburon...
> #
> $ grep sam /etc/hosts
> 137.79.6.94 sam
>
> # make tiburon responsible for resolving the request to sam
> $ route add net 137.79.6.0 tiburon 0
>
> # show the existing arp table entry for sam is empty
> $ arp sam
> sam (137.79.6.94) -- no entry
>
> # the static arp table I try to load
> $ cat arp.foo
> 137.79.6.94 08:00:20:1a:dd:53
>
> # attempt to load static entry in the arp table
> $ arp -f arp.foo
> 137.79.6.94: Network is unreachable
>
> Why is the "network unreachable"??
>
> On the other hand, if I allow tiburon to ping (or telnet, etc) to sam,
> then tiburon issues an arp request and learns sam's ethernet address,
> adding it to tiburon's arp table as a temporary entry.
>
> # I set the callout bridge up so its call to the other bridge is pre-made by a> # command to the console of the bridge. I then ask to talk to sam.
> $ ping sam
> sam is alive
>
> $ arp sam
> sam (137.79.6.94) at 8:0:20:1a:dd:53
>
> Once tiburon has the temp entry I can `arp -f arp.foo` and /etc/arp
> doesn't complain, but goes ahead and flags the temp entry as permanent.
> [this won't work as a matter of course as the ping required me to bring
> the link up manually].
>
> # attempt to load static entries in the arp table and it works
> $ arp -f arp.foo
>
> $ arp sam
> sam (137.79.6.94) at 8:0:20:1a:dd:53 permanent
>
> I know this is not a problem with 4.1.2 specificaly, as it also does not
> work with a 4.1.3 machine or a 4.1.3U-b machine. I know that it has
> worked with at least one 4.1.3U machine in the past on another network.
>
> What am I missing?? I'm sure I will kick myself when some guru points
> out my mistake.
 

Mary Hinman
Center for EUV Astrophysics
U. C. Berkeley



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:09:13 CDT