Setting up small network
Marc Ernst Eddy van Woerkom
Marc.Vanwoerkom at FernUni-Hagen.de
Sat Jul 12 13:41:42 PDT 2003
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
More information about the freebsd-questions
mailing list