Solved

samba smbclient timeout connecting to

Posted on 2009-03-31
7
2,129 Views
Last Modified: 2013-12-09
doing this from a Linux redhat 7.3 with  ip = 10.1.1.37

smbclient -L //Asus -W  mygroup

I get this error:

added interface ip=10.1.1.37 bcast=10.1.1.255 nmask=255.255.255.0
timeout connecting to 208.70.188.15:139                          
Error connecting to 208.70.188.15 (Operation already in progress)
Connection to Asus failed                                        

notice that the query for Asus netbios name goes outside of my network,

actually my  Asus is a Windows PC with ip= 10.1.1.101, so WHY is not seeing ?


eth0      Link encap:Ethernet  HWaddr 00:0E:A6:35:86:26
          inet addr:10.1.1.37  Bcast:10.1.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3147 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2175 errors:0 dropped:0 overruns:0 carrier:0
          collisions:11 txqueuelen:100
          RX bytes:287217 (280.4 Kb)  TX bytes:531249 (518.7 Kb)
          Interrupt:3 Base address:0x8800

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.1.1.0        *               255.255.255.0   U     0      0        0 eth0
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         router          0.0.0.0         UG    0      0        0 eth0
0
Comment
Question by:sergioszy_
  • 3
  • 2
7 Comments
 
LVL 7

Accepted Solution

by:
Morne Lategan earned 125 total points
ID: 24044973
Hi sergioszy

What's the output of:

dig asus

and

nmblookup asus
0
 

Author Comment

by:sergioszy_
ID: 24313479
sorry for the delay,

----------------------------------------------------------------------------------------------------------------------
dig asus output:


; <<>> DiG 9.2.0 <<>> asus
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5014
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;asus.                          IN      A

;; ANSWER SECTION:
asus.                   10      IN      A       208.70.188.15

;; Query time: 8 msec
;; SERVER: 200.51.211.7#53(200.51.211.7)
;; WHEN: Wed May  6 08:51:17 2009
;; MSG SIZE  rcvd: 42


----------------------------------------------------------------------------------------------------------------------
nmblookup asus output:

querying asus on 10.1.1.255
10.1.1.11 asus<00>

----------------------------------------------------------------------------------------------------------------------

0
 

Author Comment

by:sergioszy_
ID: 24314500

I notice that smbclient was searching for Asus first in /etc/hosts, then dns lookup, so

to correct this problem I do

smbclient -R bcast  -L //asus  -W  mygroup

this ( -R bcast ) do a broadcast in the local network.

so thanks to  Uberpappa
0
 

Author Closing Comment

by:sergioszy_
ID: 31564779
I notice that smbclient was searching for Asus first in /etc/hosts, then dns lookup, so

to correct this problem I do

smbclient -R bcast  -L //asus  -W  mygroup

this ( -R bcast ) do a broadcast in the local network.

so thanks
0
 
LVL 7

Expert Comment

by:Morne Lategan
ID: 24319136
Hy again.

Glad you got a solution. Just for reference: You can also change the lookup order in smb.conf:

name resolve order = wins bcast hosts

That will make samba use wins then broadcast, then dns.

If you don't have wins, change bcast to be the first entry and you should be fine without the -B option.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Install Predefined Certificate on Ubunto 4 39
AD LDAP LDS 3 66
ifconfig 4 46
fedora linux on laptop - setup sendmail - or some kind of email 5 45
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question