LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 06:29 PM   #1
ted_chou12
Member
 
Registered: Aug 2010
Location: Zhongli, Taoyuan
Distribution: slackware, windows, debian (armv4l GNU/Linux)
Posts: 431
Blog Entries: 32

Rep: Reputation: 3
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, 02:24 PM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
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-01-2011, 11:35 PM   #3
ted_chou12
Member
 
Registered: Aug 2010
Location: Zhongli, Taoyuan
Distribution: slackware, windows, debian (armv4l GNU/Linux)
Posts: 431

Original Poster
Blog Entries: 32

Rep: Reputation: 3
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, 12: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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:03 AM.

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