On Tue June 28 2011 11:06 pm, please try again wrote:
>
> venzkep;2359355 Wrote:
>>
>> please try again;
>>
>> Why are you still using the rather antediluvian lmhosts file?
>>
>
> Because I’m old.
I know the feeling well, but it is better than the alternative.
>
> venzkep;2359355 Wrote:
>> As long as
>> each machine is on the same subnet, broadcasts work just fine.
>
> Yes. However, since the machines here have several nics and belong to
> several lans, I kept seeing this error (coming from the wrong lan) on
> all machines:
>
<snip>
>
>
> That’s how I realized that my install script didn’t actually write the
> lmhosts file. It is solved now.
>
> venzkep;2359355 Wrote:
>>
>> If they are on different subnets, simply set up one of your linux
>> machines as a wins server.
>> Your dhcp server can dish out the wins address and/or machines can
>> be configured individually to point to the wins server.
>>
>
> Yes I know. I would rather use the dhcp/dns itself, as the other Linux
> machines reboot too often. What would this server need to also serve as
> a wins server? (Maybe nothing?)
>
Please try again;
To establish a wins server, you just need to add the following parameter to
the [global] section of /etc/samba/smb.conf that will serve as the wins
server.
wins support = yes
On other Samba machines point them to the wins server with the following
parameter in the [global] section of /etc/samba/smb.conf.
wins server = <IP of your wins server>
Warning: Under no circumstances should any smb.conf contain both of these
parameters. In particular, do not try to point a linux machine to itself.
On the windows machines access the properties page of the TCP/IPv4 module and
under the advanced section you can set the IP of the wins server. The actual
name of this module depends a bit on the version of Windows.
You can also serve this up via dhcp. For an Opensuse machine acting as the
dhcp server, set the following parameter in the subnet declaration
of /etc/dhcpd.conf
option netbios-name-servers <IP of wins server>;
Note: There can only be one(1) wins server on a Samba3 controlled network.
The wins server can not be replicated.
The only service your wins server machine needs to run is nmbd and possibly
smbd. ( I’ve never tried with just nmbd.) Of course this machine needs to
be running in order to serve other clients.
If only Linux machines are involved, or the other machines have a single NIC
then I would think (I’ve not tested) something like this should work. It
saves you messing around with wins. Add the following two parameters to the
[global] section of /etc/samba/smb.conf
interfaces = <your chosen interface>
bind interfaces only = yes
P. V.
“We’re all in this together, I’m pulling for you.” Red Green