LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-14-2014, 01:51 PM   #1
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 737

Rep: Reputation: Disabled
Samba server is missing after changing router


I have a Windows PC (IAMMICHAEL-PC: 192.168.0.4) and Linux server (DEVSERVER: 192.168.0.200) on my LAN. I recently changed my D-Link router to a new Netgear router (Old router and new router both on 192.168.0.1). The Linux server uses WiFi for network, and the network is working and I can access the server.

Since switching routers, I can not view the Samba server from the Windows PC. For testing, I've turned off iptables, but still nothing.

Please provide recommendations.

Thank you


Code:
[root@devserver ~]# cat /etc/samba/smb.conf
[global]
workgroup=WORKGROUP
server string = Samba Server Version %v

# interfaces = lo wlan0 192.168.0.1/24
hosts allow = 127. 192.168.0.

log file = /var/log/samba/log.%m
max log size = 50

security = user
passdb backend = tdbsam
# security = auto
# server role = standalone

[www]
        comment = Apache WWW Directory
        path = /var/www
        # guest ok = yes
        # guest only = yes
        #valid users = Michael
        read only = no
        force create mode = 0775
        create mask = 0775
        force directory mode = 0775
        #create directory = 0775
Code:
[root@devserver ~]# smbclient -U% -L localhost
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.9-168.el6_5]

        Sharename       Type      Comment
        ---------       ----      -------
        www             Disk      Apache WWW Directory
        IPC$            IPC       IPC Service (Samba Server Version 3.6.9-168.el6_5)
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.9-168.el6_5]

        Server               Comment
        ---------            -------
        DEVSERVER            Samba Server Version 3.6.9-168.el6_5

        Workgroup            Master
        ---------            -------
        WORKGROUP
[root@devserver ~]#
Code:
[root@devserver ~]# smbclient -L devserver -URegie
Enter Regie's password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.9-168.el6_5]

        Sharename       Type      Comment
        ---------       ----      -------
        www             Disk      Apache WWW Directory
        IPC$            IPC       IPC Service (Samba Server Version 3.6.9-168.el6_5)
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.9-168.el6_5]

        Server               Comment
        ---------            -------
        DEVSERVER            Samba Server Version 3.6.9-168.el6_5
        IAMMICHAEL-PC

        Workgroup            Master
        ---------            -------
        WORKGROUP            IAMMICHAEL-PC
[root@devserver ~]#
Code:
[root@devserver ~]# ifconfig
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:6960 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6960 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:926980 (905.2 KiB)  TX bytes:926980 (905.2 KiB)

wlan0     Link encap:Ethernet  HWaddr B8:76:3F:69:31:95
          inet addr:192.168.0.200  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::ba76:3fff:fe69:3195/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:10159 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1825 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2153950 (2.0 MiB)  TX bytes:357081 (348.7 KiB)
Code:
[root@devserver ~]# iwconfig
lo        no wireless extensions.

wlan0     IEEE 802.11bgn  ESSID:"wired"
          Mode:Managed  Frequency:2.452 GHz  Access Point: E4:F4:C6:0E:6D:D3
          Bit Rate=39 Mb/s   Tx-Power=27 dBm
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=63/70  Signal level=-47 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:4  Invalid misc:12   Missed beacon:0

eth0      no wireless extensions.

[root@devserver ~]#
Code:
[root@devserver ~]# service smb status
smbd (pid  2701) is running...
[root@devserver ~]# service nmb status
nmbd (pid  2693) is running...
[root@devserver ~]# service iptables status
iptables: Firewall is not running.
[root@devserver ~]#

Last edited by NotionCommotion; 09-14-2014 at 02:24 PM.
 
Old 09-14-2014, 08:06 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,427

Rep: Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938
What version of windows? I assume that windows can access the internet etc?
Have you tried using a command box i.e cmd from windows?
net view \\192.168.0.200

So nothing else changed but the router... Depending on what/how you are viewing netowrk resources on windows it might take a bit of time to update if you power the server after the windows box.
 
Old 09-15-2014, 12:18 AM   #3
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 737

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
What version of windows? I assume that windows can access the internet etc?
Have you tried using a command box i.e cmd from windows?
net view \\192.168.0.200

So nothing else changed but the router... Depending on what/how you are viewing netowrk resources on windows it might take a bit of time to update if you power the server after the windows box.
Thank you for your help. Yes, Windows 7 has Internet, etc. Did so as shown, but still cannot detect the Samba server from a Windows client. Thanks, Michael

Code:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\Michael>net view \\192.168.0.200
Shared resources at \\192.168.0.200

Samba Server Version 3.6.9-168.el6_5

Share name  Type  Used as  Comment

-------------------------------------------------------------------------------
www         Disk           Apache WWW Directory
The command completed successfully.


C:\Users\Michael>
 
Old 09-15-2014, 01:14 AM   #4
ickda
Member
 
Registered: Jun 2013
Distribution: linux mint 17
Posts: 59

Rep: Reputation: Disabled
Here, might be useful..Click image for larger version

Name:	IMG_20140915_005850.jpg
Views:	17
Size:	32.7 KB
ID:	16442
 
Old 09-15-2014, 06:53 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,427

Rep: Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938
Nothing appears to be obviously wrong.
Have you tried manually mapping the share?
 
Old 09-15-2014, 07:32 AM   #6
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 737

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
Nothing appears to be obviously wrong.
Have you tried manually mapping the share?
I think I found my problem. I had tried placing "\\devserver" in the windows explorer, but probably should have been doing "\\192.168.0.200"
 
  


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
Changing samba server from guest only to AD authentication rjo98 Linux - Server 8 06-20-2014 05:31 AM
Samba domain name and server string keeps changing PatriceJ Linux - Networking 5 07-30-2010 07:06 AM
fresh netinst of squeeze:X server fails to start, missing /dev/fb0, missing xorg.conf frumpus Debian 7 03-17-2010 01:36 PM
Can I run LFS on a Linux box which currently serves as router & samba server? iwonder Linux From Scratch 2 08-28-2009 02:43 AM
Linux Router/Firewall/Samba File Server jevansnc Linux - Networking 2 05-01-2006 12:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration