Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 May 1998 13:26:01 +0930
From:      Greg Lehey <grog@lemis.com>
To:        Brad Tucker <zvi@t-networking.com>
Cc:        FreeBSD Questions <questions@FreeBSD.ORG>
Subject:   Re: your mail
Message-ID:  <19980524132601.F353@freebie.lemis.com>
In-Reply-To: <Pine.BSF.3.96.980523205232.7638A-100000@zvi.t-networking.com>; from Brad Tucker on Sat, May 23, 1998 at 08:54:38PM -0700
References:  <19980524131354.E353@freebie.lemis.com> <Pine.BSF.3.96.980523205232.7638A-100000@zvi.t-networking.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 23 May 1998 at 20:54:38 -0700, Brad Tucker wrote:
> On Sun, 24 May 1998, Greg Lehey wrote:
>
>> Please don't remove the context.  I need to dig it out again to
>> remember what this is all about...
>>
>> On Sat, 23 May 1998 at 20:34:18 -0700, Brad Tucker wrote:
>>>>>> On Sat, 23 May 1998 at 18:55:00 -0700, Brad Tucker wrote:
>>>>>>> I have a freebsd box at home, and a win 95 box.  I have ethernet cards on
>>>>>>> both boxes.  In the freebsd box I have a modem.  I would like to use the
>>>>>>> freebsd box as a gateway for the win95 box.  I tried setting the
>>>>>>> geteway=yes in rc.conf.  this didnt seem to work.  When i try to ping
>>>>>>> somewhere thats not at home from the win95 box I get "Request Timed Out."
>>>>>>> Do I need to set the freebsd box to be a router??  Is there an easy way to
>>>>>>> tell the freebsd box to take any requests from the device ed0 and give
>>>>>>> them to the devices tun0?  Will someone please push me into the right
>>>>>>> direction.
>>>>>>
>>>>>> It looks like you've done the right thing on the FreeBSD box.  Have
>>>>>> you told the Microsoft box that the FreeBSD box is the gateway?  If
>>>>>> so, you should try using tcpdump to see what the Microsoft box is
>>>>>> doing, and if the packets go out over the ppp line.
>>>>>
>>>>> allright,
>>>>> microsoft knows the freebsd box is the gateway.  I did a tcpdump, and I
>>>>> got was arp whereis destination ..... and nothing went back to the win 95
>>>>> box.  I also did a tcpdump on tun0, and there was nothing there.  No
>>>>> packets go out of the tun0 device.  Any other ideas?  Should I add a route
>>>>> add line, or a arp comand???
>>>>
>>>> Are you sure your ethernet is configured at the FreeBSD end?  Can you
>>>> ping in either direction?
>>>
>>> I can ping the freebsd box to win95 box, and vise versa.
>>
>> There's something funny here.  Are you sure the IP addresses are
>> correct?  If tcpdump shows arp not answering when you try to send
>> something via the gateway, it should show it when you try to ping.
>>
>> If it still doesn't work, please save the tcpdump output to a file and
>> post it.  And copy -questions, please.  Other people have these
>> problems too, and they would be interested in seeing the results.
>
> Here is the TCPDUMP the first 4 lines are my win95 box calling out to my
> freebsd box for the answer to where zvi.t-networking.com is.  The rest are
> all a successful ping of my win95 box to my freebsd box.
>
> tcpdump: listening on ed0
> 20:46:54.622232 arp who-has zvi.t-networking.com tell zzyx.t-networking.com
> 20:46:55.995951 arp who-has zvi.t-networking.com tell zzyx.t-networking.com
> 20:46:57.011992 arp who-has zvi.t-networking.com tell zzyx.t-networking.com
> 20:46:58.027969 arp who-has zvi.t-networking.com tell zzyx.t-networking.com
>
> 20:47:14.802855 arp who-has ivz.t-networking.com tell zzyx.t-networking.com
> 20:47:14.802980 arp reply ivz.t-networking.com is-at 0:40:5:69:59:3
> 20:47:14.803405 zzyx.t-networking.com > ivz.t-networking.com: icmp: echo request
> 20:47:14.803551 ivz.t-networking.com > zzyx.t-networking.com: icmp: echo reply
> 20:47:15.807517 zzyx.t-networking.com > ivz.t-networking.com: icmp: echo request
> 20:47:15.807686 ivz.t-networking.com > zzyx.t-networking.com: icmp: echo reply
> 20:47:16.810900 zzyx.t-networking.com > ivz.t-networking.com: icmp: echo request
> 20:47:16.811071 ivz.t-networking.com > zzyx.t-networking.com: icmp: echo reply
> 20:47:17.814708 zzyx.t-networking.com > ivz.t-networking.com: icmp: echo request
> 20:47:17.814878 ivz.t-networking.com > zzyx.t-networking.com: icmp: echo reply

Yes, that's about what I expected to see.  You've declared
zvi.t-networking.com (206.117.19.2) as your gateway, but your FreeBSD
box is ivz.t-networking.com (206.117.19.10).  zvi.t-networking.com
appears to be the other end of the ppp link, so arp can't find it.
Change your gateway address, and you should get further.  If tun0
still doesn't do anything after that, make sure that ivz has its
default routing set correctly.  You'll also need to tell zvi that zzyx
is at the other end of the link.

I note you have another problem: zzyx.t-networking.com isn't known
outside your local net.  Have you finished your DNS setup yet?

Greg
--
See complete headers for address and phone numbers
finger grog@lemis.com for PGP public key

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980524132601.F353>