browsing across subnets

Sean Cole scole at aracnet.com
Thu Sep 9 18:54:38 GMT 1999



I been assigned to re-configure an existing SMB network to allow
browsing across subnets in the same workgroup. Here is a picture:
	
	    ----                                             ----
           |PC's|                                           |PC's|
	    ----					     ---- 
  NT1         |           		                      |      
  -----     ----    		                              |
 |     |---| hub|			    CE-S01            |
 |WINS |   |    |   		            ---------        ---
  -----     ----              		   |linux box|------|hub|-|
              |                            |samba    |       ---  |     
192.168.1.255 |                             ---------             |
         ----------     ISDN                        ----------    |
        | ascend 75|-------------------------------| ascend 75|---
         ----------                                 ----------  192.168.2.255



Computers on 192.168.2.255 (the linux-samba side) can browse both
subnets, but computers on 192.168.1.255 can browse their own subnet
only.  I have tried using
	
	remote browse sync = 192.168.1.55
	remote annouce = 192.168.1.55 
			# NT1's address.

in the smb.conf for the linux box, but it doesn't seem to work.  NT1 is
the wins server.

For the linux machine (CE-S01):

$ nmblookup -A 192.168.2.1 
Sending queries to 192.168.2.255
Looking up status of 192.168.2.1
received 2 names
        ..__MSBROWSE__. <01> - <GROUP> M <ACTIVE> 
        COMPANY         <1d> -         M <ACTIVE> 
num_good_sends=0 num_good_receives=0


CE-S01 (linux/samba box) smb.conf:

	hosts allow = 192.168.1. 192.168.2. 127.
	local master = yes
	os level = 33
	domain master = no
	preferred master = yes
	workgroup = COMPANY
	wins proxy = Yes
	wins server = 192.168.1.55
	remote announce = 192.168.1.55
	dns proxy = No

$ smbclient -L CE-S01 -U '' -N
Added interface ip=192.168.2.1 bcast=192.168.2.255 nmask=255.255.255.0
startlmhosts: Can't open lmhosts file /etc/lmhosts. Error was No such file or directory
Server time is Fri Sep  8 07:34:53 2000
Timezone is UTC-7.0
Domain=[COMPANY] OS=[Unix] Server=[Samba 1.9.18p10]
connected as guest security=user

Server=[CE-S01] User=[nobody] Workgroup=[COMPANY] Domain=[COMPANY]

        Sharename      Type      Comment
        ---------      ----      -------
        IPC$           IPC       IPC Service (Samba Server)


This machine has a browse list:

        Server               Comment
        ---------            -------
	... shows all hosts on both subnets including
	CE-S01
	NT1

This machine has a workgroup list:

        Workgroup            Master
        ---------            -------
        COMPANY               CE-S01



For the NT1 machine:
$ nmblookup -A 192.168.1.55
Sending queries to 192.168.2.255
Looking up status of 192.168.1.55
received 13 names
        NT1             <00> -         B <ACTIVE> 
        NT1             <20> -         B <ACTIVE> 
        COMPANY         <00> - <GROUP> B <ACTIVE> 
        COMPANY         <1c> - <GROUP> B <ACTIVE> 
        COMPANY         <1b> -         B <ACTIVE> 
        NT1             <03> -         B <ACTIVE> 
        COMPANY         <1e> - <GROUP> B <ACTIVE> 
        COMPANY         <1d> -         B <ACTIVE> 
        ..__MSBROWSE__. <01> - <GROUP> B <ACTIVE> 
        NT1             <6a> -         B <ACTIVE> 
        NT1             <87> -         B <ACTIVE> 
        ADMINISTRATOR   <03> -         B <ACTIVE> 
        NT1             <be> -         B <ACTIVE> 
num_good_sends=0 num_good_receives=0


$ smbclient -L NT1 -U '' -N
Added interface ip=192.168.2.1 bcast=192.168.2.255 nmask=255.255.255.0
startlmhosts: Can't open lmhosts file /etc/lmhosts. Error was No such file or directory
Got a positive name query response from 192.168.1.55 ( 192.168.1.55 )
Server time is Wed Sep  8 15:07:48 1999
Timezone is UTC-7.0
Domain=[COMPANY] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0]
security=user


This machine has a browse list:

        Server               Comment
        ---------            -------
	.. shows hosts only on own subnet...
        NT1                  

This machine has a workgroup list:

        Workgroup            Master
        ---------            -------
        COMPANY               NT1


Any ideas why the NT subnet cannot browse the samba subnet
and what do the B and M fields in the nmblookup output mean?

Thanks





More information about the samba mailing list