Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Jul 2003 22:41:32 +0200 (MEST)
From:      Marc Ernst Eddy van Woerkom <Marc.Vanwoerkom@FernUni-Hagen.de>
To:        freebsd-questions@freebsd.org
Subject:   Setting up small network 
Message-ID:  <200307122041.h6CKfWB26915@bonsai.fernuni-hagen.de>

next in thread | raw e-mail | index | archive | help
Hello,

I have a small network of two boxes and experience some
oddities so that I would be glad for some advice.

  Box A: FreeBSD, 
         interface isp0 (ISDN card to Internet provider) and 
         interface xlo (Ethernet to Box B)

  Box B: Windows or FreeBSD or Linux 
         Ethernet interface to Box 

Box A on isp0 gets some dynamic IP everytime it connects
Box A on xl0 should be 192.168.0.1
Box B should be 192.1668.0.2

To allow internet browsing on Box B, I set up natd on Box A,
to have packages coming in on Box A via interface isp0 and to sent
out on interface xl0 to Box B.

To allow file sharing under Windows on Box B, I set up
samba on Box A.

Where I seem to have problems is DNS.
I get nameserver lookups (the name server is at my provider),
which result in a phone connection, even if a local name
(I mean something I put in /etc/hosts already)
is resolved.

Perhaps my /etc/hosts is already not correct:

  127.0.0.1               localhost localhost.my.domain a-gw a-gw.my.domain

  192.168.0.1             a.my.domain     a  
  192.168.0.2             b.my.domain     b

Any advice or tutorial?

Regards,
Marc



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