LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-21-2012, 07:12 AM   #1
vishyc88
LQ Newbie
 
Registered: Mar 2010
Posts: 8

Rep: Reputation: 0
Samba shares stops working once internet connection is removed!?


Hello friends,
I have been facing a weird problem of late. Our centos 5.5 server is acting as a router and we use it for sharing internet and sharing files using CIFS or SAMBA. There are 2 nic's one for LAN and one for internet connectivity. Now the problem is as soon as the internet connection stops working or the internet cable is unplugged the samba shares become unavailable from within the LAN. I can ssh and can access the FTP server as well. So it is samba specific glitch. Any idea why its not working? Please help


Thanks

Last edited by vishyc88; 03-21-2012 at 07:14 AM.
 
Old 03-21-2012, 11:10 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,339

Rep: Reputation: Disabled
Does your smb.conf contain the "bind interfaces only" and "interfaces" options?

What happens to the smbd and nmbd processes when the link goes down? If they're still running, can you browse the shares from the server itself with smbclient?

Are the clients connecting to the Samba server by name? Is name resolution performed by DNS or WINS?

Anything in the logs?
 
Old 03-22-2012, 09:08 AM   #3
vishyc88
LQ Newbie
 
Registered: Mar 2010
Posts: 8

Original Poster
Rep: Reputation: 0
Hi folks, problem solved!
Apparently the samba server was using an internet based DNS server as its preferred DNS server in the /etc/resolv.conf which i modified to a local DNS server. So the problem was name resolution stopped working since i had an unreachable DNS server once internet wasnt available. Everything's fine once again!

Thanks Olmy....
 
  


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 stops updating user shares Shwick Linux - Server 8 01-20-2009 09:47 PM
Internet connection just stops wchawaguta Linux - Hardware 2 11-16-2007 06:17 AM
Internet connection to be removed cbekannan06 Linux - Software 1 02-06-2007 08:59 PM
My internet connection stops!! xowl Linux - Networking 1 06-30-2005 03:08 PM
Internet Connection Stops spaaarky21 Debian 5 01-31-2005 12:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:46 PM.

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