Dual Homed Samba Server Problem
Stephen L Arnold
sarnold at coyote.rain.org
Sat Jul 3 21:40:14 GMT 1999
On 3 Jul 99, Tacio AGSantos <tacio at psmi.com.br> had questions about
Dual Homed Samba Server Problem:
I probably don't know enough, but I'll give it a try -
Are you sure you need IP forwarding here? If you specify "optimize
as router not host" in the kernel config, and then set a route
between your two networks, won't that do it?
> - there are 2 networks: 172.16.0.0/255.255.255.0 and
> 172.16.1.0/255.255.255.0 - i've setup up a Linux box with 2 cards : eth0
> 172.16.0.2 and eth1 172.16.1.2 - i have Win9x clients on both networks, ip
> forwarding is enabled on the Linux box so i can ping through it. - I have
> only one group/domain called PSMI, and i would like to use it for both
> networks. - samba version is 2.0.4b and a have the following smb.conf
> #======================= Global Settings =================================
> bind interfaces only = yes
> interfaces = 172.16.0.2/24 172.16.1.2/24 127.0.0.1/255.0.0.0
I think these two are okay, but I'm not sure about the first one.
> name resolve order = wins bcast
You may want to try an lmhosts file with both networks in it, but
WINS should work if it's properly setup.
> - Besides, i use dhcpd to configure my Win9x machines, and there a set up
> netbios-name-servers to be 172.16.0.2 and 172.16.1.2 respectvely;
If your routes are correct, then shouldn't it work with just one
WINS server address? Or are both needed?
> Some questions are:
> 1. Do i need to set up 2 groups , one for each network?
Not sure, but I suppose it might help.
> 2. Will i have 2 wins' (nmbds) running, or i can use just one ?
I would think just one, since it can listen on both interfaces.
However, multiple smbd/nmbd processes seem to spawn as needed;
sometimes my 1.9.18p10 setup here doesn't kill properly because the
currently running n/smbd process(es) don't have the proper PID.
I'm not enough of a guru-dude to understand this stuff; can someone
step in and bail me out here?
(notice it says "certifiable" not "certified")
Steve Arnold CLE (Certifiable Linux Evangelist)
More information about the samba