*BSD News Article 55568


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msunews!agate!howland.reston.ans.net!swrinde!newsfeed.internetmci.com!btnet!news.cistron.nl!not-for-mail
From: miquels@cistron.nl (Miquel van Smoorenburg)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: How NOT to use different source addresses ?
Date: 28 Nov 1995 14:50:29 +0100
Organization: A poorly-maintained Debian GNU/Linux INN system
Lines: 38
Message-ID: <49f435$hpg@Q.cistron.nl>
NNTP-Posting-Host: q.cistron.nl

[Sorry if you saw this message with an empty body before]

Hello,
  I have recently installed FreeBSD 2.1-RELEASE for a customer and I must
say that I'm impressed. There's only one problem I can't solve.

They use a very peculiar setup. They have the network address 193.67.124.0,
but they share the ethernet with some other IP networks. The main router
(a BSDI machine) routes the whole mentioned class C to 193.78.164.34, an
alias for our machine in their net. So did have something like:

ifconfig ed0 193.67.124.2
ifconfig ed0 193.78.164.34 alias
route add default 193.67.164.1 (their router).

The only problem is that whenever I connect to the outside world from
this machine, my source address is 193.78.164.34, which I do _not_
want. I've tried lots of variations, for example:

ifconfig ed0 193.67.124.2
ifconfig lo0 193.78.164.34 alias netmask 255.255.255.255
route delete 193.78.164.34
route add -interface 193.78.164.0 193.67.124.2
(Works, till sofar - a hack but...)
route add default 193.78.164.2
route: problem writing to routing socket

Is there any way to make this work? I know the provider should really
configure _their_ router to have an alias within _our_ net, but that
is probably not possible at the moment ("we've always done it like this")

Thanks - Mike.
--
-- 
Miquel van Smoorenburg, miquels@het.net         Cistron Internet Services
Mail info@cistron.nl               An independent Dutch Internet Provider
for more information           <A Href = "http://www.cistron.nl/">CIS</A>
  +31-172-419445 (Voice) 430979 (Fax) 442580 (Data) - Alphen a/d Rijn