[Samba] Problems with WINS in multiple IP subnets enviroment

Dani Camps danicamps81 at yahoo.com
Thu Mar 3 11:14:34 GMT 2005


I have a Linux box with two interfaces for the private
LAN (eth0,eth1) and another one connected to the
Internet. I have two subnets in my LAN (192.168.0.0/24
and 192.168.1.0/24) and eth0 and eth1 are the
gateways of either subnet (192.168.0.1, 192.168.1.1).
I have a Samba server running in the Linux box, and
this Samba server is at the same time the local master
browser and a WINS server, there is only one
WINS server in the net.

I am having some problems when trying to do SMB
browsing between the two subnets, here I attach some
of the relevant parts of my smb.conf in the Linux box:

-----------------------------------------------------------------------------
hosts allow=127. 192.168.0. 192.168.1.
...
socket options = TCP_NODELAY SO_RCVBUF=8192
SO_SNDBUF=8192
...
interfaces=192.168.0.1/24 192.168.1.1/24 127.0.0.1/8
bind interfaces only=yes
...
#To be the LMB
local master = yes
os level = 255
preferred master = yes
...
#To be the WINS server
name resolve order = wins lmhosts bcast
wins support = yes
dns proxy = no
-------------------------------------------------------------------------------

Since in the Linux box Samba is binded to both
interfaces, .1.1 and .0.1, should  I specify as a WINS
server for the clients of each subnet the gateway, so
192.168.0.1 as a WINS server of 192.168.0.0/24 and
192.168.1.1 as a WINS server of 192.168.1.0/24 ? Or I
could say in both WINS server 192.168.0.1 for instance
? Or this simply doesn't matter ?

The IP routing is working perfectly between the two
subnets, so I don't know why am I having problems, do
u see any mistake in the configuration or sth that
maybe I could have missed ?

Thanks


	
		
__________________________________ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/


More information about the samba mailing list