LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-21-2003, 08:57 PM   #1
burkie
LQ Newbie
 
Registered: Nov 2002
Location: belzig, germany
Distribution: debian etch, lenny
Posts: 18

Rep: Reputation: 0
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...
 
Old 12-21-2003, 09:53 PM   #2
TheRealDeal
Member
 
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Rep: Reputation: 30
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
 
Old 12-21-2003, 10:11 PM   #3
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: Debian Wheezy
Posts: 2,872

Rep: Reputation: 88
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.
 
Old 12-21-2003, 10:14 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,949

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
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
 
Old 01-13-2004, 10:29 PM   #5
burkie
LQ Newbie
 
Registered: Nov 2002
Location: belzig, germany
Distribution: debian etch, lenny
Posts: 18

Original Poster
Rep: Reputation: 0
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

Last edited by burkie; 01-13-2004 at 10:31 PM.
 
  


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
Crossover cable WolfCub Linux - Hardware 20 09-05-2009 02:20 PM
Getting Internet via Crossover Cable Sleepy_Sentry Linux - Networking 6 08-12-2005 12:36 PM
Crossover cable network between XP and Gentoo to shace internet connection rcbarnes Linux - Networking 2 12-24-2004 11:49 PM
Crossover cable eggoz Linux - Networking 4 03-14-2004 01:49 PM
Network using crossover cable Great Mister Linux - Newbie 7 12-16-2003 08:57 PM


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