Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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?
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
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.
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.
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
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).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.