LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   network with crossover cable (https://www.linuxquestions.org/questions/linux-newbie-8/network-with-crossover-cable-127925/)

burkie 12-21-2003 07:57 PM

network with crossover cable
 
hi all!

i figured that itīs possible to connect one linux computer with a cross-over (null) cable to a windows machine. but i couldnīt figure how. i think i installed samba correctly, but i even canīt ping from one machine to the other. (i got suse 8.1 for the server and win98 on the client). as long as i connected two windows machines i used IPX protocol. do i need that again?

greetings,
burkie

PS: i would like to avoid to get a hub. that might cost money...

TheRealDeal 12-21-2003 08:53 PM

Hi.

You shouldn't have any problems doing this. I do it all the time. Here is the steps on what I would do....

1. Set up your Windows box IP settings. (eg. 10.0.0.1 subnet 255.255.255.0)
2. Set up your Linux box IP settings. (eg. 10.0.0.2 subnet 255.255.255.0)
*** Keep the IP's in the same range like above, and keep the subnets identical.
3. Check your IP settings on both machines to make sure they set properly with Windows - ipconfig and Linux ifconfig.
4. Now you should be able to ping either way.

It might be worth while to turn off your firewalls while you are doing this for testing. So with linux, as root, service iptables stop and turn off your Internet Connection Firewall with XP.

If that still doesn't work. Make sure that the cable definately is a cross over cable.

Good luck.

>Craig

2damncommon 12-21-2003 09:11 PM

TheRealDeal's post is right on the money.
Use an address for non-net connected LANs.
10.0.0.0 to 10.255.255.255
172.16.0.0 to 172.31.255.255
192.168.0.0 to 192.168.255.255
make sure the address are different but on the same network.
192.168.0.1 and 192.168.0.2 are different address on the same network.
192.168.0.1 and 192.168.2.2 are different address on different networks.
I usually get the network connection going and pings working followed by ssh. Once you are sure the connection is good, anything else must be just a configuration problem.
Good Luck.

michaelk 12-21-2003 09:14 PM

A crossover ethernet cable will work fine but you will need to setup TCP/IP if not already configured on the windows PC.

You will need to setup a static IP address for each computer. I don't use SuSE but I assume that you can use YAST2.

Set the windows PC for:
IP 192.168.0.1
netmask 255.255.255.0

The SuSE PC
IP 192.168.0.2
netmask 255.255.255.0

Look at the networking howto for a complete explaination on how the IP addressing works etc.

If everything is configured then you should be able to ping between the computers. Make sure a firewall isn't running on either PC.

If samba is working you should be able to see any network shares on the linux pc by
smbclient -L <hostname> (replace hostname with the real name of the PC)
If a password prompt appears just press enter.

If nothing is displayed make sure the nmbd and smbd processes are running

To see the computer on the windows side if nothing shows up in network neighboorhood. Open up a dos prompt box and type in the command
net view

burkie 01-13-2004 09:29 PM

Quote:

Originally posted by michaelk
A crossover ethernet cable will work fine but you will need to setup TCP/IP if not already configured on the windows PC.
You will need to setup a static IP address for each computer. I don't use SuSE but I assume that you can use YAST2.
Set the windows PC for:
IP 192.168.0.1
netmask 255.255.255.0
[...]
up a dos prompt box and type in the command
net view

thanx everybody for their advice! i pretty much followed them and read tons of how-to?s, man-pages and "using samba" and tried every configuration i could imagine during last week. i got a second network (independent from the first one) now to install, only this with BNC cable.

on the crossover network i get at least sometimes to "smbclient -U% -L [server]" the answer that the client is on, sometimes its even master. on the BNC network i get only [server]. ping works on both networks only inside the machines. do i have broken netcards, cables or did i configure wrong? is there a way to check cables and cards?

and i got SuSE 8.2 in the mean time. but no improvements.

greeting from hoher flaming,
burkie:scratch:


All times are GMT -5. The time now is 07:23 PM.