Proposal for extending 'netbios aliases' to 'netbios virtual hosts' for nmbd

Kashif Shaikh kshaikh at consensys.com
Thu Jan 30 17:02:59 GMT 2003


Gerald (Jerry) Carter wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Wed, 29 Jan 2003, Kashif Shaikh wrote:
> 
> 
>>In my case, I get multiple IPs on a subnet through virtual IPs.  So in 
>>Linux I have eth0, eth0:1, eth0:2.  Let's attach some numbers to them 
>>for illustration: eth0 = 192.168.2.1, eth0:1 192.168.2.101, and eth0:2 
>>192.168.2.102.  Now if such a configuration exists, nmbd when operating 
>>as a B-node, will only register names and aliases on eth0, not on the 
>>eth0:1 or eth0:2 virtual interfaces.
>
> This can be done now actually by running multiple Samba instances.
> I'm guessing your already knew this, but just in case....
> 
>>What I propose is changing netbios aliases to simple netbios virtual
>>hosts, where I can specify netbios name/IP mappings.  So a sample
>>configuration item would be:
>>
>>interfaces = 192.168.2.0/255.255.255.0
>>virtual netbios hosts = SALES/192.168.2.101 DEVELOPMENT/192.168.2.101
> 
> 
> Sounds interesting, but this is only for name registration right?
> Effectively you could just run one smbd using netbios aliases
> and then run a separate nmbd instance per name (bound to a specific NIC)
> and get the exact behavior you are asking for.

Well honestly, I had incorrectly assumed network port space was global, 
when in fact it is private for each IP address(which is why I didn't 
bother to running multiple instances).  Also, AFAIK in the Using Samba 
book(1st ed), 'interfaces' is described as network/netmask pairs. 
That's inconsistent with intrepret_interfaces() comment, but then again 
the book is over 2 years old:)

So thanks, I can now run multiple s/nmbds per IP address which gives the 
   behavior I was looking for with virtual hosts ;)

Regards,

Kashif


> 
> cheers, jerry




More information about the samba-technical mailing list