LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Connecting 2 systems using a switch - each on the next hop. (https://www.linuxquestions.org/questions/linux-networking-3/connecting-2-systems-using-a-switch-each-on-the-next-hop-4175460215/)

DarioGi 04-30-2013 08:06 PM

Connecting 2 systems using a switch - each on the next hop.
 
Hello everyone, I don't have much knowledge in routing and I've reached a problem that I'm unable to solve. Here is a quick diagram that I've made:
http://imageshack.us/f/37/netv2.png/



My goal is to enable System A to talk to System D. As of now, the System A is able to ping Linux Machine 1 and System B, but is unable to even ping Linux Machine 2.

System B is able to ping System A, Linux Machine 1, Linux Machine 2 and System C. In fact, Systems B and C are able to communicate just fine.

My question would be, what do I need to do in order to enable System A to talk to System D(and vice versa).

Things I've tried:
  • Static routes in Linux Machine 1/2
  • Static Routes in switch

None of these things seem to work, any help would be greatly appreciated!

flos 04-30-2013 09:50 PM

Dear DarioGi,
Unless there's some overriding requirement that you haven't told us about, I suggest you reassign IP numbers so that all devices are on the same subnet (i.e. all IP numbers have the same first three numbers identical). I cannot immediately see why you need 172.10.1.x *and* 172.11.1.x numbers. Unless you have a very good reason, go for 172.10.x.x or 172.11.x.x all the way through.
Best wishes,
Flos

DarioGi 04-30-2013 10:14 PM

Thanks for the help, unfortunately, the IP's have to be as following: 172.(10/11).(1/2).(2-254) . I pretty much need to make it work with this IP structure since 10 is ethernet and 11 uses different fiber. Also, (1/2) there are many more linux machines.

flos 05-01-2013 06:53 AM

In that case, try using the switch's IP as the default gateway on machines 1 & 2.
Good luck!
Flos

DarioGi 05-01-2013 08:40 AM

I'll give that a shot, but why would System B and System C be able to communicate with the current default gateways?

DarioGi 05-01-2013 07:22 PM

Figured it out, I needed to add static routes to another platform's gateway, thanks for the help flos.


All times are GMT -5. The time now is 11:45 PM.