NetBIOS name reg/resolution problem -- multiple net interfaces, Samba 2.0.7, Solaris 7, ClearCase

Eric Boehm boehm at nortelnetworks.com
Tue Jan 16 18:42:15 GMT 2001


I am having problems with Samba 2.0.7 running under Solaris 8. We are using
Samba to use ClearCase on NT clients with UNIX servers. The machines it
is running on have multiple network interfaces. 

I've tried several approaches, none of them seem to work.

System Hostname and IP addresses. Hostname is zrtps078.
Hostname        IP address      Netmask
zrtps078        47.111.70.82    255.255.240.0
zrtps079        47.140.7.213    255.255.240.0
zrtps07a        47.202.32.217   255.255.240.0

1. Run Samba as a single daemon, bind to all interfaces
   Files: smb.conf, smb.conf.global.zrtps078, smb.conf.share.zrtps078 (see end
   of message for file contents)

   Samba only registers the machines primary hostname, zrtps078.  Clients are
   often unable to bind to the share using one of the alternate interfaces.

   For example:
   net use * \\zrtps078\export
   net use * \\zrtps079\export
   net use * \\zrtps07a\export

2. Run separate smbd/nmbd for each interface.
   Files: smb.conf.zrtps078, smb.conf.global.zrtps078
          smb.conf.zrtps079, smb.conf.global.zrtps079
          smb.conf.zrtps07a, smb.conf.global.zrtps07a
          smb.conf.shares.zrtps078

   This ends up generating lots of errors in log.nmb about being unable to
   register/refresh names. Apparently, nmbd attempts to register the primary
   hostname with each instance even though "interfaces" and "bind interfaces
   only" are specified.

   Again, the net use commands above don't always work.

3. Run single smbd/nmbd but specify the alternate interfaces with "netbios
   aliases".

   Files: smb.conf, smb.conf.global.zrtps078.new,
          smb.conf.shares.zrtps078

    I'm still getting messages about being unable to register/refresh names
   and the net use command still don't work.

We've also made sure that "Enable DNS for Windows Resolution" is turned on.

This is having a significant effect on our environment. Any suggestions would
be welcome.

-- 
Eric M. Boehm                               boehm at nortelnetworks.com

SMB.CONF
 # Global parameters 
         client code page = 437 
         # Samba requests 10000 but Solaris has only 1014 to spare 
         max open files = 1014 
         comment = "Samba %v server" 
         share modes = yes
         getwd cache = yes
         browseable = yes
         load printers = no
         local master = no
         username map = /usr/local/samba/lib/username.map
         dead time = 30
         debug pid = yes
         #debug level = 10
         log file = /usr/local/samba/var/log.%m
         socket options = TCP_NODELAY SO_KEEPALIVE SO_SNDBUF=32768 SO_RCVBUF=32768
         include = /usr/local/samba/lib/smb.conf.global.%h
         include = /usr/local/samba/lib/smb.conf.shares.%h

SMB.CONF.ZRTPS078
# Global parameters 
	client code page = 437 
	# Samba requests 10000 but Solaris has only 1014 to spare 
	max open files = 1014 
	comment = "Samba %v server" 
	share modes = yes
	getwd cache = yes
	browseable = yes
	load printers = no
	local master = no
	username map = /usr/local/samba/lib/username.map
	dead time = 30
	debug pid = yes
	#debug level = 10
	log file = /usr/local/samba/var/log.%m
	socket options = TCP_NODELAY SO_KEEPALIVE SO_SNDBUF=32768 SO_RCVBUF=32768
	include = /usr/local/samba/lib/smb.conf.global.zrtps078
	include = /usr/local/samba/lib/smb.conf.shares.%h

SMB.CONF.ZRTPS079
# Global parameters 
	client code page = 437 
	# Samba requests 10000 but Solaris has only 1014 to spare 
	max open files = 1014 
	comment = "Samba %v server" 
	share modes = yes
	getwd cache = yes
	browseable = yes
	load printers = no
	local master = no
	username map = /usr/local/samba/lib/username.map
	dead time = 30
	debug pid = yes
	#debug level = 10
	log file = /usr/local/samba/var/log.%m
	socket options = TCP_NODELAY SO_KEEPALIVE SO_SNDBUF=32768 SO_RCVBUF=32768
	include = /usr/local/samba/lib/smb.conf.global.zrtps079
	include = /usr/local/samba/lib/smb.conf.shares.%h

SMB.CONF.ZRTPS07A
# Global parameters 
	client code page = 437 
	# Samba requests 10000 but Solaris has only 1014 to spare 
	max open files = 1014 
	comment = "Samba %v server" 
	share modes = yes
	getwd cache = yes
	browseable = yes
	load printers = no
	local master = no
	username map = /usr/local/samba/lib/username.map
	dead time = 30
	debug pid = yes
	#debug level = 10
	log file = /usr/local/samba/var/log.%m
	socket options = TCP_NODELAY SO_KEEPALIVE SO_SNDBUF=32768 SO_RCVBUF=32768
	include = /usr/local/samba/lib/smb.conf.global.zrtps07a
	include = /usr/local/samba/lib/smb.conf.shares.%h

SMB.CONF.GLOBAL.ZRTPS078
[global]
	workgroup = PCNTRTP
	security = domain 
	password server = *
	#workgroup = AMERICASE
	#security = server
	#password server = ZRTPD01T, NRTPDE11, NRTPDE10, NRTPI915, PCNTRTP01, PCNTRTP02
	encrypt passwords = yes 
	wins server = 47.156.160.179
	server string = "UAS/PTM/SNM ClearCase VOB Server %h (%L), Samba"
	interfaces = "47.202.34.217/20 47.140.7.213/20 47.111.70.82/20"
	#interfaces = "47.111.70.82/20 127.0.0.1/8"
	#bind interfaces only = yes
	#lock directory = /usr/local/samba/var/zrtps078
	netbios aliases = UAS_PTM_SNM02

SMB.CONF.GLOBAL.ZRTPS079
[global]
	workgroup = PCNTRTP
	security = domain 
	password server = *
	#workgroup = AMERICASE
	#security = server
	#password server = ZRTPD01T, NRTPDE11, NRTPDE10, NRTPI915, PCNTRTP01, PCNTRTP02
	encrypt passwords = yes 
	wins server = 47.156.160.179
	server string = "UAS/PTM/SNM ClearCase VOB Server %h (%L), Samba"
	interfaces = "47.140.7.213/20"
	bind interfaces only = yes
	lock directory = /usr/local/samba/var/zrtps079
	netbios aliases = ZRTPS079

SMB.CONF.GLOBAL.ZRTPS07A
[global]
	workgroup = PCNTRTP
	security = domain 
	password server = *
	#workgroup = AMERICASE
	#security = server
	#password server = ZRTPD01T, NRTPDE11, NRTPDE10, NRTPI915, PCNTRTP01, PCNTRTP02
	encrypt passwords = yes 
	wins server = 47.156.160.179
	server string = "UAS/PTM/SNM ClearCase VOB Server %h (%L), Samba"
	interfaces = "47.140.7.213/20"
	bind interfaces only = yes
	lock directory = /usr/local/samba/var/zrtps079
	netbios aliases = ZRTPS079

SMB.CONF.GLOBAL.ZRTPS07A
[global]
	workgroup = PCNTRTP
	security = domain 
	password server = *
	#workgroup = AMERICASE
	#security = server
	#password server = ZRTPD01T, NRTPDE11, NRTPDE10, NRTPI915, PCNTRTP01, PCNTRTP02
	encrypt passwords = yes 
	wins server = 47.156.160.179
	server string = "UAS/PTM/SNM ClearCase VOB Server %h (%L), Samba"
	interfaces = "47.202.34.217/20"
	bind interfaces only = yes
	lock directory = /usr/local/samba/var/zrtps07a
	netbios aliases = ZRTPS07A

SMB.CONF.SHARES.ZRTPS07*
[export] 
       comment = UAS/PTM/SNM VOB storage
       path = /export
       # admin users =
       #hosts allow = 47.111., 47.140., 47.141., 47.142., 47.143., 47.174., 47.192., 47.202., 47.232., 47.39., @SPM_ADM_HOSTS, @IP_SERVICES_HOSTS, @UAS_PTM_SNM_HOSTS
       hosts allow = @SPM_ADM_HOSTS, @IP_SERVICES_HOSTS, @UAS_PTM_SNM_HOSTS
       valid users = @SPM_ADM_USERS, @IP_SERVICES_USERS, @UAS_PTM_SNM_USERS
       oplocks = No 
       guest ok = no
       directory mask = 0775 
       map archive = No 
       writeable = yes

SMB.CONF
 # Global parameters 
         client code page = 437 
         # Samba requests 10000 but Solaris has only 1014 to spare 
         max open files = 1014 
         comment = "Samba %v server" 
         share modes = yes
         getwd cache = yes
         browseable = yes
         load printers = no
         local master = no
         username map = /usr/local/samba/lib/username.map
         dead time = 30
         debug pid = yes
         #debug level = 10
         log file = /usr/local/samba/var/log.%m
         socket options = TCP_NODELAY SO_KEEPALIVE SO_SNDBUF=32768 SO_RCVBUF=32768
         include = /usr/local/samba/lib/smb.conf.global.%h
         include = /usr/local/samba/lib/smb.conf.shares.%h

SMB.CONF.GLOBAL.ZRTPS078
[global]
	workgroup = PCNTRTP
	security = domain 
	password server = *
	#workgroup = AMERICASE
	#security = server
	#password server = ZRTPD01T, NRTPDE11, NRTPDE10, NRTPI915, PCNTRTP01, PCNTRTP02
	encrypt passwords = yes 
	wins server = 47.156.160.179
	server string = "UAS/PTM/SNM ClearCase VOB Server %h (%L), Samba"
	interfaces = "47.202.34.217/20 47.140.7.213/20 47.111.70.82/20"
	#interfaces = "47.111.70.82/20 127.0.0.1/8"
	#bind interfaces only = yes
	#lock directory = /usr/local/samba/var/zrtps078
	netbios aliases = UAS_PTM_SNM02 ZRTPS079 ZRTPS07A





More information about the samba mailing list