Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.mel.connect.com.au!news.mira.net.au!vic.news.telstra.net!act.news.telstra.net!psgrain!usenet.eel.ufl.edu!arclight.uoregon.edu!dispatch.news.demon.net!demon!awfulhak.demon.co.uk!awfulhak.demon.co.uk!awfulhak.demon.co.uk!not-for-mail
From: brian@awfulhak.demon.co.uk (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: annoying route problem
Date: 19 Sep 1996 10:46:41 +0100
Organization: Coverform Ltd.
Lines: 76
Message-ID: <51r4q1$fb@anorak.coverform.lan>
References: <517a1b$aoc@cayman.priconet.de> <51fdqs$159@anorak.coverform.lan> <51n9k6$8nm@cayman.priconet.de>
NNTP-Posting-Host: localhost.coverform.lan
X-NNTP-Posting-Host: awfulhak.demon.co.uk
X-Newsreader: TIN [version 1.2 PL2]
Marc Zimmermann (marc@cayman.priconet.de) wrote:
: Hiya!
: In article <51fdqs$159@anorak.coverform.lan> you wrote:
:
: > I'd skip the "-host -interface" bit. Before the route command, you should
: > have:
[.....]
: Hmm, it does, but it has an interesting effect:
[.....]
: Gotcha! The IP address is ok, but the ethernet address is wrong. ==>
: My Sun only sees the packet, if the iface is in promiscous mode
: (i.e. snooping)
Yep, you're right (although you still don't need the -host bit... :P).
The difference is that without the -interface, it assumes that the
destination is reachable rather than actually on the wire.
: With -interface I get the same probs as previously posted.
I suspect your setup is dodgy.... Bear in mind, a given machine has
an IP per interface, and these IPs should (usually) not be a part of
the same network. So, for example, if you have a FreeBSD box connected
to your leased line, and another machine with a real IP, your setup
should not be:
Leased Line
|
|
----(172.16.16.1)----
| FreeBSD |
----(172.16.16.2)----
|
|
--(194.195.236.98)---
| Sun |
---------------------
but rather:
Leased Line
|
|
----(172.16.16.1)----
| FreeBSD |
-(194.195.236.99/30)-
|
|
--(194.195.236.98)---
| Sun |
---------------------
where the /30 is your net mask. Of course, due to your registered IP, this
means that you can't contact the real 194.195.236.{96,97,99} :(
I havn't tried it, but you could try:
Leased Line
|
|
----(172.16.16.1)----
| FreeBSD |
-----(10.0.0.1)------
|
|
--(194.195.236.98)---
| Sun |
---------------------
with a "-interface 194.195.236.98 10.0.0.1" - it should work - I
think.
--
Brian <brian@awfulhak.demon.co.uk>
Don't _EVER_ lose your sense of humour....