LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Smbclient cannot connect to WinXP machine (https://www.linuxquestions.org/questions/slackware-14/smbclient-cannot-connect-to-winxp-machine-99146/)

Xylon 10-01-2003 04:58 PM

Smbclient cannot connect to WinXP machine
 
I'm using Slack 9.0 and what to view shared files on a WinXP computer LAN'd up with this one, through a hub.

Running smbdclient -L arien returns: Connection to arien failed

Also nmbd does not start --- it writes this to /var/log/samba/log.nmbd:

Quote:

[2003/09/25 00:01:58, 0] nmbd/nmbd.c:main(795)
Netbios nameserver version 2.2.8 started.
Copyright Andrew Tridgell and the Samba Team 1994-2002
[2003/09/25 00:01:58, 0] nmbd/nmbd_subnetdb.c:create_subnets(239)
create_subnets: No local interfaces !
[2003/09/25 00:01:58, 0] nmbd/nmbd.c:main(873)
ERROR: Failed when creating subnet lists. Exiting.
[2003/09/25 00:06:08, 0] nmbd/nmbd.c:main(795)
Further more, in KDE's local network browsing control module, the guided Lisa wizard says that "No network interface card was found on your system." This is the biggest load of crap I've ever seen, I obviously have a network card since I am connected to the Internet (using the adsl-start script) right now.

If necessary, the output of ifconfig is:

Quote:

eth0 Link encap:Ethernet HWaddr 00:07:95:FB:7A:D9
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8904 errors:0 dropped:0 overruns:0 frame:0
TX packets:6232 errors:0 dropped:0 overruns:0 carrier:0
collisions:12 txqueuelen:100
RX bytes:5046812 (4.8 Mb) TX bytes:686391 (670.3 Kb)
Interrupt:5 Base address:0xd800

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:276 errors:0 dropped:0 overruns:0 frame:0
TX packets:276 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:42777 (41.7 Kb) TX bytes:42777 (41.7 Kb)

ppp0 Link encap:Point-to-Point Protocol
inet addr:142.163.144.252 P-t-P:142.166.182.40 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:4946 errors:0 dropped:0 overruns:0 frame:0
TX packets:4445 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:4593326 (4.3 Mb) TX bytes:534935 (522.3 Kb)
We are networked together through a hub, and the adsl-modem is also connected to the hub. My point is I am trying to view files shared by a Windows XP machine with my Slackware 9.0 machine and it just WON'T WORK. And from the nmbd log and the Lisa guided setup it looks like somehow something does not realize I have a network card in my system, despite the obvious fact I do.

In Windows, without any additional network cards and with the same setup I can view shares on the other WinXP computer. How do I do the same through Linux? And if the problem is that my network card is not being reconized by samba, how do I fix that?

If anyone needs any more log files/command outputs I will post those just tell me what to get.

Thank you

KevinJ 10-01-2003 05:55 PM

What do you get when you issue the command "ifconfig"?

What does your "/etc/hosts" file look like?

-K

KevinJ 10-01-2003 06:37 PM

Sorry... I guess I missed the ifconfig output in your first message. Make sure you have an entry in /etc/hosts that looks like this

"127.0.0.1 localhost.localdomain localhost"

-K

Xylon 10-01-2003 07:40 PM

I commented out the old contents of /etc/hosts and entered what you typed (however without the quotes since the old, automatically generated entries did not have quotes). Anyway then I rebooted and tried again and it didn't help.

HOWEVER, ifconfig gives me DIFFERENT output right after rebooting as opposed to what I posted above. The output is:

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

The other (eth0, ppp0) entries ONLY appear after running /usr/sbin/adsl-start

Is that unusual?

Has anyone got this working, with a hub, one network card, a WinXP box, and a PPPOE adsl-connection (the adsl seems irrelevant to me).

My instinct tells me only adsl-start is reconizing my network card and NOTHING ELSE IS. However I could be totally wrong I have no idea.

I've spent several hours at this already but don't want it to become one of those things that takes months before you stumple upon the solution.

HELP

THANK-YOU

Jason

KevinJ 10-01-2003 07:49 PM

It sounds like the "adsl-start" script is perhaps starting your network. I really don't know much about that, but from the original "ifconfig" output, I don't see a network address assigned to the eth0 card. That means the driver might be loading but the card isn't configured.

What is the ip adress and subnet mask of the Windows box you are trying to get to? Maybe we can assign an IP address on the same subnet to your eth0 and correct this.

Also, what does lsmod show both before and after running the "adsl-start" script?

What does your /etc/modules.conf file look like?

-K

Xylon 10-01-2003 08:53 PM

As you requested, here are the outputs from lsmod:


BEFORE ADSL-START

Module Size Used by Not tainted
keybdev 1952 0 (unused)
mousedev 4212 1
hid 18596 0 (unused)
usbmouse 2008 0 (unused)
input 3200 0 [keybdev mousedev hid usbmouse]
usb-ohci 18856 0 (unused)
usbcore 58144 1 [hid usbmouse usb-ohci]
emu10k1 61288 0 (unused)
ac97_codec 9512 0 [emu10k1]
soundcore 3332 4 [emu10k1]
emu10k1-gp 1352 0 (unused)
gameport 1452 0 [emu10k1-gp]
ohci1394 16264 0 (unused)
ieee1394 30828 0 [ohci1394]
pcmcia_core 38112 0
ide-scsi 8048 0
sis900 13484 0 (unused)
ntfs 51040 1 (autoclean)


And


AFTER ADSL-START

Module Size Used by Not tainted
ppp_synctty 6016 0 (unused)
ppp_async 7520 1
ppp_generic 15452 3 [ppp_synctty ppp_async]
slhc 5040 0 [ppp_generic]
keybdev 1952 0 (unused)
mousedev 4212 1
hid 18596 0 (unused)
usbmouse 2008 0 (unused)
input 3200 0 [keybdev mousedev hid usbmouse]
usb-ohci 18856 0 (unused)
usbcore 58144 1 [hid usbmouse usb-ohci]
emu10k1 61288 0 (unused)
ac97_codec 9512 0 [emu10k1]
soundcore 3332 4 [emu10k1]
emu10k1-gp 1352 0 (unused)
gameport 1452 0 [emu10k1-gp]
ohci1394 16264 0 (unused)
ieee1394 30828 0 [ohci1394]
pcmcia_core 38112 0
ide-scsi 8048 0
sis900 13484 1
ntfs 51040 1 (autoclean)


Also, to see what changed I saved the outputs in 1.txt and 2.txt here is the result of diff 1.txt 2.txt:


1a2,5
> ppp_synctty 6016 0 (unused)
> ppp_async 7520 1
> ppp_generic 15452 3 [ppp_synctty ppp_async]
> slhc 5040 0 [ppp_generic]
18c22
< sis900 13484 0 (unused)
---
> sis900 13484 1


My interpretation of this is that the ppp stuff is from pppoe, I have no idea what slhc is, and sis900 I know for sure is my network card driver. Notice it is initially marked unused.

And here is /etc/modules.conf:

alias char-major-195 nvidia
alias eth0 sis900


I'm in a university and my roommate is busy on his (the WinXP) computer so I can't get the ip address and subnet mask right now. Also, when connected to the Internet he has an IP address. Is that the important one or does he have a seperate, second IP address internally on our tiny network?

Anyway was there any useful information in the outputs of the commands above?

Also, I just upgraded to samba 3.0.0 (was first using 2.2.8a) and using 3.0.0 did not fix anything. :)

KevinJ 10-01-2003 09:09 PM

Hrmm... have you run "netconfig"?

-K

Xylon 10-01-2003 09:44 PM

Yes I have run netconfig over a dozen times trying different things. However, when it asks me for different IP addresses and such I'm not sure what to type and generally accept the defaults.

My motherboard is an Elite K7S5A and w/ the onboard Ethernet... it's not actually a removable 'card'. :) It works in Windows and I'm on the Internet in Linux now so like we already said the adsl-start script reconizes it.

There was nothing interesting in all those outputs I posted? Has anyone else had this problem?

I don't really understand what the hell I'm doing when it comes to this so I don't know what to do next. I only ask others for help when I'm at my wit's end and can't do anything on my own or by reading. Also I'm considering compiling the 2.6.0-test6 beta Kernel. But I don't find compiling Kernels fun and especially a beta one. But maybe that would be a magical fix for some reason. It will be a last resort though. :)

To restate the problem, I'm trying to connect to a WinXP machine with samba and the logs and also the lisa wizard in KDE are telling me I have "no network interfaces" enough though I am connected to the internet.

Anyway this was a rambling long post but the point is: Yes I ran netconfig, what do I try next?

Thanks KevinJ so much for all the responses so far.

KevinJ 10-01-2003 09:54 PM

Well, what is confusing me is that when you run "ifconfig" there is no IP address listed there for eth0. That is not what you are supposed to see. You should see an IP addy and subnet mask.

I really don't know anything about this adsl script you are running or adsl in general for that matter. Its perhaps that this card is being used for some protocol other than IP I suppose? You say when you run "netconfig" you are accepting the defaults. Is that DHCP?

What are the network settings for your roomate's machine?

-K

Xylon 10-02-2003 10:59 AM

UPDATE

The WinXP Local Area connection listed a subnet address 255.255.0.0 and in netconfig I was accepting the default: 255.255.255.0. When I changed it to 255.255.0.0 it worked.

Or if that isn't what fixed it then instead of accepting 127.0.0.1 for my IP address in netconfig I set it to be the same as my roommates machine except the end of it was one lower (blah.blah.blah.188 instead of x.x.x.189). And now the machines see each other, and I can view his shared files, and all the stuff I wanted to do.

eth0 now appears after rebooting and running ifconfig -- and has a IP address and mask.

One thing I don't understand is the two machines each have TWO ip addresses. ONE for the Internet, and one for the local area network. How does that work? How does Linux (and Windows) know that one is for the internet and one is local. And when you ping the local IP how does it know not to ping the Internet IP address witht he same numbers? If you could point me to any documentation about this I am kind of curious.

But the bottom line is: Thank you, the problem is solved, even though I don't really understand what happened. lol :)

Sifvion 10-02-2003 11:40 AM

I believe the 2 IPs you saw one is your gateway which is the IP for the ADSL modem. The other IP is for your system, did you configure any static IP for any of the machine if yes then I think both machines are in different network, 255.255.255.0 and 255.255.0.0 thus when you change either one to be the same then you are able to see each other. I believe you ADSL modem has routing features too.


All times are GMT -5. The time now is 03:58 PM.