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

Gerald (Jerry) Carter jerry at
Wed Jan 29 21:41:14 GMT 2003

Hash: SHA1

On Wed, 29 Jan 2003, Kashif Shaikh wrote:

> Now on our multihomed box, if we have only one IP per subnet, then a 
> netbios name/alias is registered with that only that IP which is all 
> fine and dandy.  But in the case where you have multiple IPs per subnet, 
> there is no clear cut way of telling samba, "I want SALES to be mapped 
> to and DEVELOPMENT to be mapped to".
> 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 =, eth0:1, and eth0:2 
>  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 =
> virtual netbios hosts = SALES/ DEVELOPMENT/

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.

cheers, jerry
 Hewlett-Packard            -------------------------
 SAMBA Team                 ----------------------
 GnuPG Key                  ----
 "You can never go home again, Oatman, but I guess you can shop there."  
                            --John Cusack - "Grosse Point Blank" (1997)

Version: GnuPG v1.2.0 (GNU/Linux)
Comment: For info see


More information about the samba-technical mailing list