[SOLVED] Routing problems between machines in the same subnet
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.
Routing problems between machines in the same subnet
Hello!
I am using a linux machine as a router / firewall to my home network. The server is running Fedora 15, and is connected to the outside world via a ppp interface (on em1). Internally, I have a subnet set up on 192.168.2, with the server NIC (p4p1) set to 192.168.2.1. Each machine can ping 192.168.2.1 (and can communicate with the outside world), and the server can ping each machine. However, the machines are not able to ping each other.
This is the routing table:
192.168.2.0 * 255.255.255.0 UG 0 0 0 p4p1
192.168.1.0 * 255.255.255.0 U 0 0 0 em1
link-local * 255.255.0.0 U 1002 0 0 em1
link-local * 255.255.0.0 U 1003 0 0 p4p1
default my-gw 0 0.0.0.0 UG 0 0 0 ppp0
This setup has worked for me many times before, so I am baffled as to why I can't get it working this time.
... but your question got me thinking outside of the box (literally). I have always assumed that my Buffalo was acting as a flat switch. I'd better test that assumption. :-)
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Rep:
So the machines are 192.168.2.xx and 192.168.2.yy and they can not ping each other?
Server is 192.168.2.1 and can ping 192.168.2.xx?
Server is 192.168.2.1 and can ping 192.168.2.yy?
192.168.2.xx can ping server at 192.168.2.1?
192.168.2.yy can ping server at 192.168.2.1?
That is simply not possible. Since they are on the same subnet routing is not an issue.
Are 192.168.2.xx and 192.168.2.yy static addresses?
If not, assign them static addresses.
Run a network cable straight between the 192.168.2.xx and 192.168.2.yy
Make sure the NICs are modern and auto-sensing. If not, create a cross connect.
See if you can ping.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.