LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 07-23-2004, 12:32 AM   #1
ygfperson
LQ Newbie
 
Registered: Jul 2004
Location: massachusetts
Distribution: fedora core 2
Posts: 7

Rep: Reputation: 0
crossover ethernet cable business


I have a linux box and a linux laptop, both have Fedora Core 2. My laptop also has winxp installed. When the box and the laptop are connected to my router things are fine.

I have two ethernet cards in the box. Eth1 is set to 192.168.0.14 and eth0 is set to 192.168.0.88. When both cards are connected to the router i can ping both addresses. When only one is connected i can ping that card's ip address and the same with the other card.

What I want to do is connect directly to the box from the laptop. I have an ethernet cable nearby. When I connect to the card and run 'ipconfig eth0 192.168.0.11 on' on my laptop, the card seems to be on. I can't ping anything; although I've checked the arp table and the ip address is in there, matched with the right mac address.

How do I ssh into the box? Am I doing something wrong?
 
Old 07-23-2004, 12:43 AM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
You configured two interfaces in the same box for the same subnet, that is your problem. They have to be on separate subnets.
 
Old 07-23-2004, 01:37 AM   #3
ygfperson
LQ Newbie
 
Registered: Jul 2004
Location: massachusetts
Distribution: fedora core 2
Posts: 7

Original Poster
Rep: Reputation: 0
Ok, it works now.

I'm just wondering why there's that restriction. Is it possible to share data between the two subnets in some logical way? Is there any configuration which allows the laptop to be on the same subnet as the box?
 
Old 07-23-2004, 04:03 AM   #4
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
You could setup proxy-arp, but that's rather ugly, messy, and completely unnecessary. What's wrong with being on separate subnets? They are, after all, on physically separate network segments.
 
Old 07-23-2004, 04:55 PM   #5
ygfperson
LQ Newbie
 
Registered: Jul 2004
Location: massachusetts
Distribution: fedora core 2
Posts: 7

Original Poster
Rep: Reputation: 0
I'm just wondering how you could put a server on one subnet and access it from another subnet. Is it as easy as a couple of route commands? I don't want anything like IP masquerading.
 
Old 07-23-2004, 05:07 PM   #6
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
You would have to enter static routes at each end (i.e. the machines plugged into the machine in the middle--the one in the middle knows how to route the packets once it gets them, as long as you have IP forwarding turned on).
 
  


Reply



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 01:20 PM
Getting Internet via Crossover Cable Sleepy_Sentry Linux - Networking 6 08-12-2005 11:36 AM
networking mandrake to windows via ethernet crossover cable happyoutkast Linux - Networking 9 05-07-2004 01:58 PM
Crossover cable eggoz Linux - Networking 4 03-14-2004 12:49 PM
Network using crossover cable Great Mister Linux - Newbie 7 12-16-2003 07:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:47 PM.

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
Open Source Consulting | Domain Registration