LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 10-01-2003, 05:58 PM   #1
Xylon
Member
 
Registered: Sep 2003
Location: Newfoundland, Canada
Distribution: Slackware 9.0
Posts: 44

Rep: Reputation: 15
Angry 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:7A9
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
 
Old 10-01-2003, 06:55 PM   #2
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
What do you get when you issue the command "ifconfig"?

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

-K
 
Old 10-01-2003, 07:37 PM   #3
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
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
 
Old 10-01-2003, 08:40 PM   #4
Xylon
Member
 
Registered: Sep 2003
Location: Newfoundland, Canada
Distribution: Slackware 9.0
Posts: 44

Original Poster
Rep: Reputation: 15
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
 
Old 10-01-2003, 08:49 PM   #5
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
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

Last edited by KevinJ; 10-01-2003 at 08:51 PM.
 
Old 10-01-2003, 09:53 PM   #6
Xylon
Member
 
Registered: Sep 2003
Location: Newfoundland, Canada
Distribution: Slackware 9.0
Posts: 44

Original Poster
Rep: Reputation: 15
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.
 
Old 10-01-2003, 10:09 PM   #7
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
Hrmm... have you run "netconfig"?

-K
 
Old 10-01-2003, 10:44 PM   #8
Xylon
Member
 
Registered: Sep 2003
Location: Newfoundland, Canada
Distribution: Slackware 9.0
Posts: 44

Original Poster
Rep: Reputation: 15
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.
 
Old 10-01-2003, 10:54 PM   #9
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
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

Last edited by KevinJ; 10-01-2003 at 10:56 PM.
 
Old 10-02-2003, 11:59 AM   #10
Xylon
Member
 
Registered: Sep 2003
Location: Newfoundland, Canada
Distribution: Slackware 9.0
Posts: 44

Original Poster
Rep: Reputation: 15
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
 
Old 10-02-2003, 12:40 PM   #11
Sifvion
Member
 
Registered: Jan 2002
Location: Singapore
Distribution: Slackware
Posts: 250

Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
smbclient cannot connect ivanatora Linux - Networking 8 08-03-2006 09:52 AM
smbclient - trying to connect to the network rtil Linux - Networking 12 12-14-2004 08:13 AM
Connect to shared network printer on WinXP machine for all users (Slackware) a1flecke Linux - Newbie 12 05-03-2004 08:27 PM
Connect to the internet through a winXP machine TheRepublican Slackware 8 04-08-2004 04:19 PM
smbclient fails with winxp ramu_ak Linux - Networking 1 09-17-2003 11:56 PM


All times are GMT -5. The time now is 08:15 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration