LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 01-31-2011, 07:29 PM   #1
ted_chou12
Member
 
Registered: Aug 2010
Location: Zhongli, Taoyuan
Distribution: slackware, windows, debian (armv4l GNU/Linux)
Posts: 421
Blog Entries: 28

Rep: Reputation: 2
Samba only access by ip but not hostname/server string


Hi, I am using samba version 3 (probably), and the problem is that the linux based nas can only be accessed via its ip 192.168.x.x but not its hostname /server string appointed by the smb.conf file:
Code:
[global]
netbios name = NAS
server string = NAS
smb passwd file = /etc/smbpasswd
security = SHARE
workgroup = WORKGROUP
encrypt passwords = true
short preserve case = yes
preserve case = yes
guest account = ftp
guest ok = yes
force user = root
force group = root
socket options = SO_KEEPALIVE TCP_NODELAY SO_RCVBUF=16384 SO_SNDBUF=16384
interfaces = eth0 lo
For example:
\\nas\file... doesnt work
\\192.168.2.101 works however.
I tried to search this problem online, but there is very little information and answered questions regarding. Thanks!
Ted C.
 
Old 02-01-2011, 03:24 PM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 3,410
Blog Entries: 1

Rep: Reputation: 1115Reputation: 1115Reputation: 1115Reputation: 1115Reputation: 1115Reputation: 1115Reputation: 1115Reputation: 1115Reputation: 1115
I use the direct IP address as is mentioned above.

I have not been able to get FreeNAS to be reachable by its netbios name either.
 
Old 02-02-2011, 12:35 AM   #3
ted_chou12
Member
 
Registered: Aug 2010
Location: Zhongli, Taoyuan
Distribution: slackware, windows, debian (armv4l GNU/Linux)
Posts: 421
Blog Entries: 28

Original Poster
Rep: Reputation: 2
Hi, I have found the solution to this problem, you can go ahead and try:
edit this line in smb.conf:
Code:
interfaces = eth0 192.168.2.101/24
Ted
 
Old 04-06-2011, 01:25 AM   #4
digotoso
LQ Newbie
 
Registered: Apr 2011
Posts: 1

Rep: Reputation: 0
Save my night

OMG! I can't believe that's only this... Thanks a lot!
 
  


Reply

Tags
netbios, samba


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
Samba domain name and server string keeps changing PatriceJ Linux - Networking 5 07-30-2010 07:06 AM
hostname - for mail server (or any other remote access server) yogaboy Linux - Newbie 4 02-06-2007 09:53 PM
[Samba] server string Wim Sturkenboom Linux - Software 7 09-28-2006 05:34 AM
Can't access server using hostname from other PCs on the local network binister Linux - Software 5 09-01-2006 04:13 AM
Samba Server String delamatrix Linux - Networking 2 04-25-2005 07:50 PM


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