LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 03-07-2005, 11:30 PM   #1
Loco-Guzm
LQ Newbie
 
Registered: Feb 2004
Location: San Jose, CA.
Posts: 13

Rep: Reputation: 0
I can't network a linux machine with a windows 2000 Server.


Hi. I'm a newbie with linux and I'm having headeaches trying to network two machines at home.
This is my scenario. I have machine1 running Winsdows 2000 server and I have machine 2 running Mandrake 9.1.
Both machines are connected to an ethernet switch 10/100Mbps and both machines have their NIC installed.
I have set static IP adresses to both machines and I have set both machines as WORKGROUP.
The problem is that I can's see any sharing directories in either machines.
My mandrake machice is running Samba and I have basically added the basic parameters so It would communicate with the Windows machine.
I have run ifconfig and netstat and It looks that the nic cards is working fine.
I have also ping the IP adress for the NIC and I got succesful data transfer.
The problem is that I can't ping my second computer.
It looks like something tells my NIC card not to send datagrams to its neighbors.
Please advise.
Thank you.
 
Old 03-08-2005, 05:53 PM   #2
toes
Member
 
Registered: Mar 2005
Location: Arkansas
Distribution: Mandy 2006, FC5
Posts: 154

Rep: Reputation: 30
I had lots of problems connecting my Mandrake to my wife's 2k, too. Part of my solution was adding each machine's IP to the other's hosts file. Additionally, I set up a user account on 2k for me and on Mandrake for her, and set up her login and pw information with Samba (with smbpasswd, I think it was).

Hope that helps.
 
Old 03-08-2005, 06:41 PM   #3
or1onas
Member
 
Registered: Mar 2004
Location: Athens,Greece
Distribution: Debian,Ubuntu
Posts: 181

Rep: Reputation: 31
what is the output of 'testparm' on the linux box?
also make sure that smbd and nmbd are running...
 
Old 03-13-2005, 01:51 PM   #4
Loco-Guzm
LQ Newbie
 
Registered: Feb 2004
Location: San Jose, CA.
Posts: 13

Original Poster
Rep: Reputation: 0
Thank you for your reply.
I will sumarise the testparm output since I can't copy and paste the output and the computer connected to the Internet is machine2 (windows) that I can't get rid of and be free.
Well after I run 'testparm' It said that I have some long sharing file names and that older computers won't be able to read.
But my question is where do I check if smbd and nmbd are running?
I had replace hubs, cables, and nics previoulsly to make sure that hardware was ok. But I can tell by looking at the NIC lights on the Linux box that the activity ligh doesn't come on.
What line I need to change in Linux so the NIC can send packets?
Thank you for your help.
 
Old 03-14-2005, 04:43 AM   #5
or1onas
Member
 
Registered: Mar 2004
Location: Athens,Greece
Distribution: Debian,Ubuntu
Posts: 181

Rep: Reputation: 31
i haven't used mandrake so i can't tell u what tools it uses,
but you could try as root "service smbd status' or 'smbstatus'...
 
Old 03-16-2005, 08:52 PM   #6
Loco-Guzm
LQ Newbie
 
Registered: Feb 2004
Location: San Jose, CA.
Posts: 13

Original Poster
Rep: Reputation: 0
I ran "service smbd status" and I get the following message.
Cannot find 'smbd' service.
Version 1.14
Where do I fix the 'smbd' service?
Also after a while when I'm no using the computer I get the following message from the KDE.
DCOP communication error.
"Check that the dcopserver program is running?
Do you have any hints what this mean and what do I need to fix.
Thanks.

I will give it a try after all I don't loose anything I just get knowledge from you.
 
Old 03-16-2005, 11:00 PM   #7
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
Let me go step-by-step on what I did to get my computers hooked up

1) I set up the workgroup to be all the same. My workgroup is called MDKGROUP. You have to set this in Windows and in Linux

2) I set up user accounts in Linux AND in Windows to match each other.

3) I made sure that my boot services start with Samba

4) I use smb4k. When I click on my workgroup, MDKGROUP, I see all the computers connected. That's when I know I set it up correctly.

5) make sure you set share folders correctly on each computer. You can then click on the computers in smb4k and it will expand to show the share folders. Just double click on the folder and it will automatically mount it for you.

P.S. - I changed my smb.conf to mount in my /home directory. /home/ken/smb4/
 
Old 03-17-2005, 02:45 AM   #8
or1onas
Member
 
Registered: Mar 2004
Location: Athens,Greece
Distribution: Debian,Ubuntu
Posts: 181

Rep: Reputation: 31
Micro420, Loco-Guzm's problem happens way before everything you describe.
The guy can't even find if the services are started or not...
Loco-Guzm, have you tried to run "smbstatus" or maybe "/etc/init.d/samba status"?
 
Old 03-17-2005, 08:31 AM   #9
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,298

Rep: Reputation: 123Reputation: 123
Now wait a minute:
Quote:
I have also ping the IP adress for the NIC and I got succesful data transfer.
The problem is that I can't ping my second computer.
It looks like something tells my NIC card not to send datagrams to its neighbors.
This means it's no idea to check samba, first you must have a functioning connection.
*) Can Windows ping Linux?
*) There is a switch in-between: what cables do you have, are you sure they are the correct type (not cross-over) and not broken? You are not using the up-link port on the switch for one computer?
*) Do you know the rules for IP-adressing, what IP's did you choose?
*) Finally, is there a firewall on any of the computers?
 
Old 03-17-2005, 11:34 PM   #10
Loco-Guzm
LQ Newbie
 
Registered: Feb 2004
Location: San Jose, CA.
Posts: 13

Original Poster
Rep: Reputation: 0
Hi. Thank you for your replies.
Let's continue in this learning circle.
I have run 'smbstatus" and I don't get any data this is what I get.
Samba version 2.2.8a
"No locked files"
About the other response questions that I got from you. I will summarize them again.
1- I cannot ping from my windows computer to the Linux computer either, but I can ping its NIC.
2- About IP addresses.
I have set up the windows machine with the following C class address.
IP---> 192.168.1.10 Mask--->255.255.255.0
and the Linux machine with
IP--->192.168.1.2 Mask--->255.255.255.0
3- I have checked both cables and the cables are OK and they are not crossover cables.
4- Yes, both computer are connected to an Ethernet switch.
 
Old 03-18-2005, 02:26 AM   #11
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,298

Rep: Reputation: 123Reputation: 123
Do you have any other network connection from any computer?
Post output of:
[Linux]
#ifconfig
#route
[Windows]
c:\ipconfig /all
c:\netstat -r
 
Old 03-18-2005, 11:40 PM   #12
Loco-Guzm
LQ Newbie
 
Registered: Feb 2004
Location: San Jose, CA.
Posts: 13

Original Poster
Rep: Reputation: 0
No I don't have any other network connection, but I do have a second NIC card that It's being recognized by the system, eventhough I don't have a port for it. I took out the port since previously was not working. The card was integrated in the system when I bought it. I already disconnected that card with the Mandrake Network tools.
The network adress for eth1 is 192.168.2.0 which is in the list.

I run the Iproute on the Linux system and I get the following.
Destination Gateway Genmask Flag Metric
192.168.2.0 * 255.255.255.0 u 0
192.168.1.0 * 255.255.255.0 u 0
127.0.0.0 * 255.0.0.0 u 0
Default * 0.0.0.0 u 0

Thanks for your help.
 
Old 03-23-2005, 02:55 AM   #13
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,298

Rep: Reputation: 123Reputation: 123
There are two networks in routing table, that could be the problem.
Please post output of:
[Linux]
#ifconfig
#route
[Windows]
c:\ipconfig /all
c:\netstat -r
 
Old 03-29-2005, 11:50 AM   #14
Loco-Guzm
LQ Newbie
 
Registered: Feb 2004
Location: San Jose, CA.
Posts: 13

Original Poster
Rep: Reputation: 0
Hi Pingu thank you for your response.
Here is the information from my linux box after running
'ifconfig' and 'route'. I won't be able to give you any information from the windows box since I could'nt run 'ipconfig' or 'netstat'.
Now I have a problem with my windows machine too
I don't get output from my "C" prompt and I don't know how to fix this problem. "Computing would be easier if software didn't have no problems".

'ifconfig'
eth0
Link encap:Ethernet HWaddr 00:0D:88:228:3D
inet addr:192.168.1.2
Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500
Metric:1
RX packets:1574 errors:0 dropped:0 overruns:0 frame:0

TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100

RX bytes:180275 (176.0 Kb) TX bytes:1200 (1.1 Kb)
Interrupt:3 Base
address:0x2e00

eth1 Link encap:Ethernet HWaddr 000:09:F7:52:05

inet addr:192.168.2.1 Bcast:192.168.2.255 Mask:255.255.255.0

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:8 dropped:0 overruns:0 carrier:8

collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

Interrupt:10 Base address:0xda00



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:198 errors:0 dropped:0 overruns:0 frame:0

TX packets:198 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0
RX bytes:14240 (13.9 Kb)
TX bytes:14240 (13.9 Kb)

'route'
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 * 255.255.255.0 U 0 0 0 eth1
192.168.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 * 0.0.0.0 U 0 0 0 eth0
 
  


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
my network card works well in mandriva 2006 but not in windows 2000 server jnesta78 Linux - Hardware 4 11-08-2005 03:23 AM
How can i acsess linux(SuSE 9.0) files from windows 2000 machine? TanelValdna Linux - Networking 4 02-20-2004 02:22 PM
Logging a Linux machine into a NT 2000 network edrabs Linux - Networking 1 08-26-2003 02:34 PM
Installing Linux on a Windows 2000 machine jmphillips_2003 Linux - Software 5 07-25-2003 12:39 AM
Cannot install RH 7.3 on windows 2000 server machine! deadCenter Linux - Newbie 7 05-01-2003 11:14 AM


All times are GMT -5. The time now is 07:32 AM.

Main Menu
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