Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Samba over 2 IP ranges

Status
Not open for further replies.

Ares

Technical User
Jun 25, 2001
4
GB
Hello every1 :)

Was wondering if you could help me I have two class C address ranges, 62.x.x.1 to 128 and 194.x.x.1 to 128. I have my linux server running samba on the 62.x.x.* range and some NT machines. The NT machines can connect to the samba share I have setup and it works fine, I can write/delete files perfectly.

Our PDC is a NT 4 machine on the 194.x.x.* range and we have a host of NT/98/2000 machines on this range. In network neighbourhood we can the Linix box but cannot see any shares.

So just to recap

1.) Linux box on 62.x.x.* works with other machines on this IP range fine
2.) PDC is on the 194.x.x.* range
3.) 194.x.x.* range can see the Linux Box in network neighbourhood but cannot see any of the shares.

Here is a copy of my smb.conf file:


# Samba config file created using SWAT
# from 194.x.x.14 (194.x.x.14)
# Date: 2001/06/27 12:16:17

# Global parameters
[global]
workgroup = DOMAIN
netbios name = LINUX79
server string = samba
interfaces = 62.x.x.79/255.255.255.128
bind interfaces only = Yes
security = DOMAIN
encrypt passwords = Yes
map to guest = Bad Password
password server = SERVER400
debug level = 0
name resolve order = wins hosts bcast
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
load printers = No
os level = 1
wins server = 62.x.x.15
comment = Samba Server
guest account = ftp
hosts allow = 194.x.x.,62.x.x.

[transfer]
comment = for testing only, please
path = /export/samba/transfer
writeable = Yes
create mask = 0644
guest only = Yes
guest ok = Yes
sync always = Yes

[test]
path = /tmp


I’d appreciate any insight you may be able to give me.

Thanks in advance

Ares
 
I don't know for sure if this will work, but try assigning the network card in your linux server a second IP address in the 194.x.x.x subnet. Then add that address to the 'interfaces=' line of smb.conf.
 
Thanks WoodLark

I'm a bit reluctant to try that as our router routes packets between the 2 ranges anyway. (also i'm not quite sure how to go about it :) )

Ares
 
Samba or an NT box needs to be your domain master browser for access across subnets.
You have already said that your NT box is the PDC..
Well either configure samba to use the NT box as its wins server(if it is) or use the samba server on it's subnet
as the local master and domain master.

domain master = yes
preferred master = yes
local master = yes
os level = 99

Using this you will also need the
remote announce = address/workgroup
option to synchronize your list with remote
masters and your pdc.
 
I figured out what the problem was, i hadn't put the WINS servers in on the win9X/NT/2000 machines. Seems i overlooked such a simple solution

many thanks for all your help

Ares
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top