LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 03-03-2006, 10:55 AM   #1
z3r0star21
LQ Newbie
 
Registered: Oct 2003
Location: Nashville
Distribution: Gentoo
Posts: 14

Rep: Reputation: 0
Question Changed IP scheme on network, Samba browsing really slow


Last night i changed my ip scheme that my network is on, from 192.168.1.* to 192.168.15.*. I have a gentoo system running a 2.6 kernel being used as just a samba server. I edited my /etc/conf.d/net to reflect the new chanes in ip. Then i changed my smb.conf on the hostsallow list. I use swat, so i updated the swat config file to allow access by system on the 192.168.15.* network. Now, browsing samba shares there is a delay of about 15-20 seconds, where before it responded imediately.

Here is my smb.conf file.
# Samba config file created using SWAT
# from 192.168.15.98 (192.168.15.98)
# Date: 2006/03/03 10:50:31

# Global parameters
[global]
netbios name = SERVER
server string = Samba Server %v
interfaces = lo, eth0
smb passwd file = /etc/samba/private/smbpasswd
log file = /var/log/samba/log.%m
max log size = 50
time server = Yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
load printers = No
os level = 99
preferred master = Yes
domain master = No
wins support = Yes
ldap ssl = no
guest ok = Yes
hosts allow = 192.168.15.0/24, 127.

[homes]
valid users = %S
read only = No
browseable = No

[public]
path = /home/samba/public
valid users = @sci
force user = public
force group = public
read only = No

[apps]
path = /home/samba/apps
valid users = @sci
force user = public
force group = public
read only = No

[drivers]
path = /home/samba/drivers
valid users = @sci
force user = public
force group = public
read only = No

[accounting]
path = /home/samba/accounting
valid users = @sci
force user = public
force group = public
read only = No
guest ok = No

[linux]
path = /home/samba/linux
valid users = @sci
force user = public
force group = public
read only = No

[client]
comment = Client Information
path = /home/samba/client
valid users = @sci
force user = public
force group = public

network config file /etc/conf.d/net file



# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d. To create a more complete configuration,
# please review /etc/conf.d/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).

config_eth0=( "192.168.15.200/24" )
routes_eth0=( "default gw 192.168.15.254" )



swat config file /etc/xinet.d/swat

default: off
# description: SWAT is the Samba Web Admin Tool. Use swat \
# to configure your Samba server. To use SWAT, \
# connect to port 901 with your favorite web browser.
# $Header: /var/cvsroot/gentoo/src/patchsets/samba/configs/swat.xinetd,v 1.1 2005/08/09 12:56:26 seemant$

service swat
{
port = 901
socket_type = stream
wait = no
only_from = 192.168.15.0/24
user = root
server = /usr/sbin/swat
log_on_failure += USERID
disable = no
}

I do have a reoccuring error in my /var/log/samba/nmbd.log file

[2006/03/02 06:30:41, 0] nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(353)
find_domain_master_name_query_fail:
Unable to find the Domain Master Browser name WORKGROUP<1b> for the workgroup WORKGROUP.
Unable to sync browse lists in this workgroup.

Any help would be greatly apreciated.
 
Old 03-04-2006, 09:21 PM   #2
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,438

Rep: Reputation: 52
First thing I would do is to check the link speed. Is at 100Mbit Full or 100Mbit Half?

-twantrd
 
Old 03-04-2006, 09:36 PM   #3
ARC1450
Member
 
Registered: Jun 2005
Location: Odenton, MD
Distribution: Gentoo
Posts: 290

Rep: Reputation: 30
You got all the files related to networking, right? ie /etc/hosts, /etc/resolv.conf, stuff like that, right?
 
Old 03-04-2006, 10:46 PM   #4
z3r0star21
LQ Newbie
 
Registered: Oct 2003
Location: Nashville
Distribution: Gentoo
Posts: 14

Original Poster
Rep: Reputation: 0
I didn't change the resolv.conf or the hosts file. That may be the problem. I didn't think that resolv.conf file would effect samba, but I will give it a try. Thanks for the suggestion.

After thinking about it for a few minutes, it does seem possible that not having a good nameserver in the resolv.conf file could interfere with responsiveness of the network which could very well effect samba.
 
Old 03-04-2006, 10:50 PM   #5
ARC1450
Member
 
Registered: Jun 2005
Location: Odenton, MD
Distribution: Gentoo
Posts: 290

Rep: Reputation: 30
Another thing to realize is that it's not just the /etc/hosts file on the server, but the clients also.

I just migrated one of my servers to an older machine, and one little screw up (poorly created hosts file) made network stuff a major PITA. Fixed that and things went much smoother.

Another thing can be that for some reason, NetBIOS may not be working and playing well. Try browsing your network via \\192.168.0.x rather than \\(servername) and see what happens.
 
Old 03-05-2006, 01:06 PM   #6
z3r0star21
LQ Newbie
 
Registered: Oct 2003
Location: Nashville
Distribution: Gentoo
Posts: 14

Original Poster
Rep: Reputation: 0
Talking

I updated the resolv.conf and the hosts file, and all is well. Works great.

Thanks everyone.

Last edited by z3r0star21; 03-06-2006 at 10:25 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Browsing Samba shares - slow :( MikeScott Linux - Software 5 06-08-2005 07:41 AM
Browsing Win file system slow to recognize network deanbrown3d Linux - Newbie 2 08-17-2004 03:19 PM
Browsing shares in samba slow? kleptophobiac Linux - Software 7 08-07-2004 09:57 AM
Samba share - network name no longer available when browsing samba from win2k dorango Linux - Software 0 03-02-2004 01:02 PM
Samba Network Browsing RedHatMN Linux - Networking 1 10-27-2002 07:44 PM


All times are GMT -5. The time now is 05:04 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration