I'm not sure what I'm doing wrong and would therefore need some guidance. The goal is to be able to have a SSH connection between: PC -> C

On PC I have created a route

route add mask

On A I have created a static route

route vlan2

After this, I can ping and 50.3 but not 50.2. This is strange because pinging 50.3 can only go through 50.2 since B doesn't have any static routes.

Why can't I ping 50.2?

I have set all IPs to static. Enabled Routing in A. Enabled IP forwarding unicast in A. Disabled default gateway on A.

enter image description here

  • My background in networking is very limited.
    – user51144
    Oct 19, 2018 at 19:09

1 Answer 1


Switch C, as a member of the subnet, requires a route back to through There is no route required for C's switching function (nor even any IP configuration at all) but for sending a reply to outside its subnet there is.

If you use static routing, all hosts have to get a static route to the other subnet or a default gateway.

Switch A doesn't need a static route because is locally attached to it.

Additionally, your VLAN setup is messed up. C uses VLAN ID 1 for the same segment as A's and B's VLAN ID 2. While this doesn't matter as long as you don't tag between the switches (VLAN trunking), once you activate tagging it'll break the segment.

  • I removed the static route on A; added a static route on C. It works. I literally jumped off my chair! Thank you!
    – user51144
    Oct 19, 2018 at 19:59
  • Just keep in mind that routes need to be consistent both ways at all times.
    – Zac67
    Oct 19, 2018 at 20:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.