LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Changed IP scheme on network, Samba browsing really slow (https://www.linuxquestions.org/questions/linux-networking-3/changed-ip-scheme-on-network-samba-browsing-really-slow-421274/)

z3r0star21 03-03-2006 10:55 AM

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.

twantrd 03-04-2006 09:21 PM

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

-twantrd

ARC1450 03-04-2006 09:36 PM

You got all the files related to networking, right? ie /etc/hosts, /etc/resolv.conf, stuff like that, right?

z3r0star21 03-04-2006 10:46 PM

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.

ARC1450 03-04-2006 10:50 PM

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.

z3r0star21 03-05-2006 01:06 PM

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

Thanks everyone.


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