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. |
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. |
what is the output of 'testparm' on the linux box?
also make sure that smbd and nmbd are running... |
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. |
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'... |
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. |
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/ |
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"? |
Now wait a minute:
Quote:
*) 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? |
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. |
Do you have any other network connection from any computer?
Post output of: [Linux] #ifconfig #route [Windows] c:\ipconfig /all c:\netstat -r |
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. |
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 |
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:22:D8: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 00:D0: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 |
All times are GMT -5. The time now is 11:53 PM. |