[Samba] Multiple IP subnets and Samba with WINS

Dani Camps danicamps81 at yahoo.com
Sun Mar 6 22:46:16 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 (
and and eth0 and eth1 are the
gateways of either subnet (,
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
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 as a WINS server of and as a WINS server of ? Or I
could say in both WINS server 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 ?


Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 

More information about the samba mailing list