Dear List, I hope someone could give me some explanation about above error/problem I got. I have 2 machines, one installed RH7.3 (IP ADDR. =10.1.45.12, host name = fk0000-msi-srv) and the other one, Mandrake8.2. (IP ADDR. = 10.1.45.13) Both machines use Samba 2.2.3a. At the RH7.3, I got following error if I connect from Mandrake8.2. $ smbclient -U% -L 10.1.45.12 added interface ip=10.1.45.13 bcast=10.1.255.255 nmask=255.255.0.0 error connecting to 10.1.45.12:139 (Connection refused) Error connecting to 10.1.45.12 (Connection refused) Connection to fk0000-msi-srv failed using nmblookup, send anything ..., found this error. $ nmblookup -B 10.1.45.12 '*' querying * on 10.1.45.12 name_query failed to find name * either using IP address or server_name give same error above. Using 'ping' both machine have no problem at all, either pinging itself or from other machine. If I turn to the documentation 'Using Samba' found at file:/usr/share/swat/using_samba/ch09_02.html#ch09_12446, it says, if nmblookup -B 127.0.0.1 '*' succeeds, but -B client_ip_address fails, there is a hardware problem and ping should have failed. In my case, ping works fine, but nmblookup failed. Could any of you have such experience ? I've tried to find out to solve the problem but, I think I need some help. Regards ++ pit ++
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! You need to enable NetBIOS over TCP/IP in your network interface settings on the remote machine !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1 Prianggada I Tanaya <prianggada.indratanaya@indonesian-aerospace.com> scribbled something about [Samba] Connection Refuse:> Dear List, > > I hope someone could give me some explanation about above > error/problem I got. > > I have 2 machines, one installed RH7.3 (IP ADDR. =10.1.45.12, host name = > fk0000-msi-srv) and the other one, Mandrake8.2. (IP ADDR. = 10.1.45.13) > Both machines use Samba 2.2.3a. > At the RH7.3, I got following error if I connect from Mandrake8.2. > > $ smbclient -U% -L 10.1.45.12 > added interface ip=10.1.45.13 bcast=10.1.255.255 nmask=255.255.0.0 > error connecting to 10.1.45.12:139 (Connection refused) > Error connecting to 10.1.45.12 (Connection refused) > Connection to fk0000-msi-srv failed > > using nmblookup, send anything ..., found this error. > > $ nmblookup -B 10.1.45.12 '*' > querying * on 10.1.45.12 > name_query failed to find name * > > either using IP address or server_name give same error above. > > Using 'ping' both machine have no problem at all, either pinging itself or > from other machine. > If I turn to the documentation 'Using Samba' found at > file:/usr/share/swat/using_samba/ch09_02.html#ch09_12446, > it says, if nmblookup -B 127.0.0.1 '*' succeeds, but -B client_ip_address > fails, there is a hardware problem and ping should have failed. > > In my case, ping works fine, but nmblookup failed. > Could any of you have such experience ? > I've tried to find out to solve the problem but, I think I need some help. > > Regards > ++ pit ++ > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: lists.samba.org/mailman/listinfo/samba >-- +----------------------------------+---------------------------------+ | Lee Leahu | voice -> 708-444-2690 | | Internet Technology Specialist | fax -> 708-444-2697 | | RICIS, Inc. | email -> lee@ricis.com | +----------------------------------+---------------------------------+ | I cannot conceive that anybody will require multiplications at the | | rate of 40,000 or even 4,000 per hour ... | | -- F. H. Wales (1936) | +--------------------------------------------------------------------+
Lee ... Thanks ... for the discussion. After I trace back, the problems lies at FireWall setting. Now ... I'm able to connect with RH7.3 machine without any problems. I'm using Win98, RH7.2 & Mandrake8.2. Once more, thanks for your guide and helpfull comment. Regards ++ pit ++ On Monday 12 August 2002 07:59 pm, you wrote:> Sure. > > If your running Windows 2000 Pro, Server, or Adv. Server, here's how to do > it. Maybe someone else can show you how to do it on other platforms, as I > use only linux and win 2k adv. server. > > Open the Properties window of your Local Area Connection. > Highlight 'Internet Protocol (TCP/IP)' and click Properties > Click the 'Advanced...' button > Click on the 'WINS' tab at the top > At the botton you see three radio buttons refering to 'NetBIOS'. > Make sure that 'Enable NetBIOS over TCP/IP' is selected. > Then ok out of all the screens. > > That should help you. > > Prianggada I Tanaya <prianggada.indratanaya@indonesian-aerospace.com>scribbled something about Re: [Samba] Connection Refuse:> > What do you mean by "enable NetBIOS over TCP/IP" ? > > How to enable this ? Please shows practical example.
On Monday 09 August 2004 08:45, Prianggada I Tanaya wrote: There are several things that might cause problems here.> ... > $ smbclient -U% -L 10.1.45.12 > added interface ip=10.1.45.13 bcast=10.1.255.255 nmask=255.255.0.0 > error connecting to 10.1.45.12:139 (Connection refused) > Error connecting to 10.1.45.12 (Connection refused) > Connection to fk0000-msi-srv failedThis means that 10.1.45.12 is not listening for SMB connections on port 139, which means that Samba server daemon smbd is either not running or has been started with some bogus arguments - more likely the former. There should be startup script somewhere that properly launches the Samba daemons. In mine (SuSE Linux) it's /etc/init.d/smb, which you'd run with "start" as argument. You can check the running processes on 10.1.45.12 to see if smbd and nmbd are running. You can also verify that they're listening properly with netstat: $ netstat -nlA inet You should see (at least) a line under local TCP addresses reading 0.0.0.0:139 or 10.1.45.12:139, and lines under UDP for ....:137 and ...:138 If you don't see those, of if the ones you do see are not on either 0.0.0.0 or the machine's public address, you won't be able to connect to it. Some bad parameters in smb.conf can cause startup failures (e.g., a value for "interfaces =" that is impossible for the the machine). testparm may not catch that. Check the Samba logs if you suspect that (or just for good measure in any case!). It's interesting that the failure message lists the NetBIOS name fk0000-msi-srv. If I read it right (someone correct me if not) there's either a WINS server on the network or an entry in hosts or lmhosts that gives the NetBIOS name-IP address mapping for that machine. If it is a WINS server, the daemons must have been running at one time for the WINS server to have learned of fk0000-msi-srv, and then were shut down later somehow. (I suppose it could be a running nmbd on the system, though it seems strange that you would have nmbd and not smbd running at a particular time - or does it?)> using nmblookup, send anything ..., found this error. > > $ nmblookup -B 10.1.45.12 '*' > querying * on 10.1.45.12 > name_query failed to find name *Here you're specifying 10.1.45.12 as the broadcast address for name service (which, BTW, is an impossible broadcast address). The proper broadcast address for your network ( /16, a.k.a., class B) is 10.1.255.255 (note the messages from smbclient you quoted at the top). You probably meant -U (unicast address) instead of -B (broadcast address). Note that the nmblookup, when properly run, will show you the running SMB servers on the network even if the Samba daemons are not running on the machine you're using to run nmblookup. However, that machine will not appear in your nmblookups until you start the servers. Until then, as far as Samba and other SMB servers on the network (Samba and Windoze boxen) are concened, it doesn't exist. Ray Note: If you really get stumped, you can bump up the debug level and get more details about your command (enormously, if you wish!), with something like $ smbclient -d 3 (rest of your command) Try -d 10 just for fun... :-)
hi, are you using a firewall or tcpwrappers? --dave Rider University At 10:45 PM 8/9/2004 +0700, Prianggada I Tanaya wrote:>Dear List, > >I hope someone could give me some explanation about above >error/problem I got. > >I have 2 machines, one installed RH7.3 (IP ADDR. =10.1.45.12, host name >fk0000-msi-srv) and the other one, Mandrake8.2. (IP ADDR. = 10.1.45.13) >Both machines use Samba 2.2.3a. >At the RH7.3, I got following error if I connect from Mandrake8.2. > >$ smbclient -U% -L 10.1.45.12 >added interface ip=10.1.45.13 bcast=10.1.255.255 nmask=255.255.0.0 >error connecting to 10.1.45.12:139 (Connection refused) >Error connecting to 10.1.45.12 (Connection refused) >Connection to fk0000-msi-srv failed > >using nmblookup, send anything ..., found this error. > >$ nmblookup -B 10.1.45.12 '*' >querying * on 10.1.45.12 >name_query failed to find name * > >either using IP address or server_name give same error above. > >Using 'ping' both machine have no problem at all, either pinging itself or >from other machine. >If I turn to the documentation 'Using Samba' found at >file:/usr/share/swat/using_samba/ch09_02.html#ch09_12446, >it says, if nmblookup -B 127.0.0.1 '*' succeeds, but -B client_ip_address >fails, there is a hardware problem and ping should have failed. > >In my case, ping works fine, but nmblookup failed. >Could any of you have such experience ? >I've tried to find out to solve the problem but, I think I need some help. > >Regards >++ pit ++ > > > >-- >To unsubscribe from this list go to the following URL and read the >instructions: lists.samba.org/mailman/listinfo/samba