LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Enable networking for two Linux machines to see each other (https://www.linuxquestions.org/questions/linux-newbie-8/enable-networking-for-two-linux-machines-to-see-each-other-4175549758/)

JockVSJock 08-03-2015 04:47 PM

Enable networking for two Linux machines to see each other
 
So I have two Linux machines that are on two different subnets:

machine 1 - 192.168.254.132 gateway - 192.168.254.64

machine 2 - 193.168.220.232 gateway - 192.168.220.1

I am not able to ping either one of these machines and I've checked to see if routing is on and its not.

Do I have to turn on routing in order for these machines to ping each other as well as create some sort of iptables rule too?

Let me know if we need more information.

Keith Hedger 08-03-2015 05:03 PM

maybe a silly question but why have two different subnets? why not just put them on the same one?

jefro 08-03-2015 08:04 PM

Subnet mask would tell us something I'd think.

The basic part of your question is the use of ping. Without knowing if ping is enabled we also can't say. Generally ping is a poor choice to use as it is being more and more blocked.

Also, can we assume the gateways know routes to each others set of ip addresses?

JockVSJock 08-03-2015 08:41 PM

One is in a DMZ, therefore in a different subnet.

JockVSJock 08-12-2015 03:24 PM

The one server that isn't in the DMZ has a subnet mask of 255.255.252.0

The server in the DMZ has a subet of 255.255.255.0.


All times are GMT -5. The time now is 07:38 AM.