Samba and NetBIOS

I have just installed openSUSE 11.1 and got SAMBA up and running. However, I have not been able to have my windowz machines see the netBIOS name of my server. I can get to the shares if I use the IP address just fine.

The windowz machines are on a separate network (the server is on 192.168.1.1 and the PCs are on 192.168.0.1).

I can ping the server from the PCs, but I cannot ping the PCs from the server. I have made sure that the Firewall is setup to allow Netbios server and Samba server on the external zones. In addition, I allowed broadcasts for samba browsing to my external interfaces.

I am not sure what else to do. I came from an UBUNTU environment and never had these issues.

As a note of interest: When I turn-off the firewall, I experience the same issues.

You have to install a wins server to resolve name across different subnets.

that involves putting this line in the [global] stanza of the Linux wins server:

wins support = yes

and this line in the [global] stanzas of your Linux clients:
wins server = IP.address.of.winsserver
and pointing each windows box at the Linux wins server.

A bit more here:
HowTo Configure Samba openSUSE Windows Network Browsing on a SOHO LAN
particularly the section titled: Name Resolution via a WINS Server

And enable wins support in nsswitch.conf

Yup, that was it. What is strange is that I never needed to setup SAMBA as a WINS server in UBUNTU - it just worked out-of-the-box.

Thanks for your input.

You’re welcome

On Fri, 2009-06-26 at 13:36 +0000, kvgeorge1 wrote:
> Yup, that was it. What is strange is that I never needed to setup SAMBA
> as a WINS server in UBUNTU - it just worked out-of-the-box.

Actually, that’s not possible (don’t mean to burst any magic
Ubuntu bubbles). Either Ubuntu defaulted to being WINS (which is BAD,
but typical Ubuntu from my own experience) or somebody had a WINS in
place or somebody was smashing the netbios broadcasts across the
segments network wise.

So… in fact, it shouldn’t just “work out-of-the-box”, and if it did,
with all other factors being constant, Ubuntu was actually behaving VERY
badly… but who cares about correctness… it’s Ubuntu!!

I’ve examined the default smb.conf in Ubuntu 9.04. It does not activate either of “wins support” or “wins server” by default. You have to edit the file and make it so for it to happen, either with gksu gedit or with with swat. I also believe their Samba is pure Debian.

On Fri, 2009-06-26 at 20:16 +0000, swerdna wrote:
> cjcox;2004598 Wrote:
> > On Fri, 2009-06-26 at 13:36 +0000, kvgeorge1 wrote:
> > > Yup, that was it. What is strange is that I never needed to setup
> > SAMBA
> > > as a WINS server in UBUNTU - it just worked out-of-the-box.
> >
> > Actually, that’s not possible (don’t mean to burst any magic
> > Ubuntu bubbles). Either Ubuntu defaulted to being WINS (which is BAD,
> > but typical Ubuntu from my own experience) or somebody had a WINS in
> > place or somebody was smashing the netbios broadcasts across the
> > segments network wise.
> >
> > So… in fact, it shouldn’t just “work out-of-the-box”, and if it did,
> > with all other factors being constant, Ubuntu was actually behaving
> > VERY
> > badly… but who cares about correctness… it’s Ubuntu!!
> I’ve examined the default smb.conf in Ubuntu 9.04. It does not activate
> either of “wins support” or “wins server” by default. You have to edit
> the file and make it so for it to happen, either with gksu gedit or with
> with swat. I also believe their Samba is pure Debian.

Regardless, you can’t simply “get there from here” so to speak.

Protocols that do not cross subnets, do not cross subnets… it’s just
the way it is. You either use wins or your have to proxy things
across… there really isn’t some magic way.

I agree completely. I meant for that to be implicit in what I said.

On Fri, 26 Jun 2009 22:01:34 GMT, cjcox
<cjcox@no-mx.forums.opensuse.org> wrote:

>On Fri, 2009-06-26 at 20:16 +0000, swerdna wrote:
>> cjcox;2004598 Wrote:
>> > On Fri, 2009-06-26 at 13:36 +0000, kvgeorge1 wrote:
>> > > Yup, that was it. What is strange is that I never needed to setup
>> > SAMBA
>> > > as a WINS server in UBUNTU - it just worked out-of-the-box.
>> >
>> > Actually, that’s not possible (don’t mean to burst any magic
>> > Ubuntu bubbles). Either Ubuntu defaulted to being WINS (which is BAD,
>> > but typical Ubuntu from my own experience) or somebody had a WINS in
>> > place or somebody was smashing the netbios broadcasts across the
>> > segments network wise.
>> >
>> > So… in fact, it shouldn’t just “work out-of-the-box”, and if it did,
>> > with all other factors being constant, Ubuntu was actually behaving
>> > VERY
>> > badly… but who cares about correctness… it’s Ubuntu!!
>> I’ve examined the default smb.conf in Ubuntu 9.04. It does not activate
>> either of “wins support” or “wins server” by default. You have to edit
>> the file and make it so for it to happen, either with gksu gedit or with
>> with swat. I also believe their Samba is pure Debian.
>
>Regardless, you can’t simply “get there from here” so to speak.
>
>Protocols that do not cross subnets, do not cross subnets… it’s just
>the way it is. You either use wins or your have to proxy things
>across… there really isn’t some magic way.
>
>
Except the administrators of the equipment determine just what the
subnet is. To the extent that they have the knowledge.