LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Samba only access by ip but not hostname/server string (http://www.linuxquestions.org/questions/linux-networking-3/samba-only-access-by-ip-but-not-hostname-server-string-859870/)

ted_chou12 01-31-2011 07:29 PM

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.

szboardstretcher 02-01-2011 03:24 PM

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.

ted_chou12 02-02-2011 12:35 AM

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

digotoso 04-06-2011 01:25 AM

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


All times are GMT -5. The time now is 09:08 AM.