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

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


-----BEGIN PGP SIGNED MESSAGE-----
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 192.168.1.1 and DEVELOPMENT to be mapped to 192.168.1.2".
> 
> 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.



cheers, jerry
 ----------------------------------------------------------------------
 Hewlett-Packard            ------------------------- http://www.hp.com
 SAMBA Team                 ---------------------- http://www.samba.org
 GnuPG Key                  ---- http://www.plainjoe.org/gpg_public.asc
 "You can never go home again, Oatman, but I guess you can shop there."  
                            --John Cusack - "Grosse Point Blank" (1997)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)
Comment: For info see http://quantumlab.net/pine_privacy_guard/

iD8DBQE+OEp6IR7qMdg1EfYRArkOAKCdv5zo7TW3m5FOmtPgI7NLbg/u3wCfeh4L
ol7002GhDwoT6c/I0OMqFkQ=
=I/H+
-----END PGP SIGNATURE-----



More information about the samba-technical mailing list