LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-16-2005, 06:27 AM   #1
euler
LQ Newbie
 
Registered: Jul 2005
Posts: 5

Rep: Reputation: 0
want to see different subnets in samba


Hi, i've 5 locations, and every location has a "debian installed dhcp / samba server" and "ms windows xp installed clients". Locations are on different subnets.

Location1: 192.168.ab0.15 : dhcp / samba server
Location2: 192.168.ab1.15 : dhcp / samba server
Location3: 192.168.ab2.15 : dhcp / samba server
Location4: 192.168.ab3.15 : dhcp / samba server
Location5: 192.168.ab4.15 : dhcp / samba server

At this configuration of samba i already use, clients can only see the computers which are in same subnet. But i want to do something different.

i want 192.168.ab0.15 to be the master browser and the others local browsers.
And every client must see all others clients which are in different subnets.

For example a user which has an ip like 192.168.ab1.65 can able to see 192.168.ab3.69 in his/her network neighborhood.

i think it's clear.

how can i configure this? at smb.conf? can i do this with swat? any example configuretion file anyone can send me?

best regards ..
 
Old 07-16-2005, 08:07 AM   #2
euler
LQ Newbie
 
Registered: Jul 2005
Posts: 5

Original Poster
Rep: Reputation: 0
is there any one can help me?
 
Old 07-16-2005, 09:59 AM   #3
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
I would start by reading the on-line samba docs. In particular, the following chapter discusses cross-subnet browsing. See: Chapter 9: Network Browsing The section labled "What Is Browsing" outlines the smb.conf options you will most likey need to modify.

BTW: Don't forget to modify your DHCP scopes to include:
option netbios-name-servers
option netbios-node-type

The last thing you want is to have your XP boxes netbios-node-type set to broadcast instead of registering with the WINS server. i.e. netbios-node-type=8 (hybrid)
 
Old 07-17-2005, 10:55 AM   #4
euler
LQ Newbie
 
Registered: Jul 2005
Posts: 5

Original Poster
Rep: Reputation: 0
i couldn't solve the problem.
can anyone write his/her smb.conf file's content about this subject.
or a small simulate for 2 locations may be.
 
Old 07-20-2005, 02:34 AM   #5
euler
LQ Newbie
 
Registered: Jul 2005
Posts: 5

Original Poster
Rep: Reputation: 0
..

Last edited by euler; 08-11-2005 at 03:53 PM.
 
Old 07-20-2005, 07:30 AM   #6
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
There are a few steps involved in properly implementing cross-subnet browsing. Based on the contents of your smb.conf files, I think you are trying to achieve the end result without first configuring the basics (prerequisites). With this in mind...

For each subnet:

1) Enable a WINS server (wins support = yes). DO NOT SET: wins server = x.x.x.x in smb.conf.

2) Insure that the WINS server for the subnet wins the master browser election (local master browser = yes in smb.conf). You can deal with the domain master browser and replication between the WINS servers later. Also, see: man nmblookup

3) Modify DHCP scopes so that 1) each XP client registers with the local WINS server, and 2) its netbios node type is set to hybrid (see my previous post). This is the single most important step in cross-subnet browsing. If you do not change the netbios node type of your XP boxes, then your XP boxes will broadcast for the local master browser instead of using (registering with) the WINS server.

4) Test. At this time each XP box should ONLY see the hosts that registered with the WINS server on that subnet. If you properly modifed your DHCP scopes, then "ipconfig /all" should state that the netbios node type of the XP box equal hybrid along with an entry for the WINS server. If it does not, then "do not pass go, do not collect $200" go back to step 3 and fix this problem. Proceeding any further would be a waste of time.

Now repeat each of the above steps for the remaining subnets. Once this is done, then go back to each WINS server and configure it to replicate its registrations with the other WINS servers (remote browse sync)

BTW: The above is based on configuring a WINS server per subnet. You can also simply configure a single WINS server for all subnets. Just modify the DHCP scopes so that all XP boxes register with this single WINS server. The drawback to implementing this method is the browse list is sent to each XP client (network neighborhood) across the router instead of from the local WINS server. If these subnets are separated by a WAN circuit, then based on the number of registrations, the browse list could tie up your WAN circuits with un-necessary traffic.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
samba across subnets problem nmayotte Linux - Networking 6 01-10-2004 09:49 AM
samba and subnets mirko72 Linux - Networking 8 11-26-2003 12:56 PM
Samba and browsing subnets J_Szucs Linux - Networking 19 01-27-2003 09:59 AM
Help with samba nad multiple subnets handsake Linux - Networking 4 12-22-2002 04:30 PM
subnets connection with samba(?) Cubiq Linux - Networking 2 08-20-2002 10:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration