I need to configure a route on a cisco switch
Posted on 2014-02-07
I have a cisco 2950 switch. I need to make a simple route configuration but want to verify how to do it. The switch is in an office that has a 192.168.2.0 /24 subnet. I want to be able to PING a device that is on a 192.168.22.0 /24 subnet. Right now the PING times out and if I do a trace route, the ping goes directly out to the internet and dies. I know if I can point the traffic to our office that is 192.168.1.0 /24, it will find its way to 192.168.22.0 because I can PING 22.0 from 1.0. What is the command or route I need to direct all PINGS to from 192.168.22.x to our switch on 192.168 1.0/24 which has an IP of 192.168.1.254?
I assume I need to do all this on our switch which is on 192.168.2.x and that IP is 192.168.2.254 If I need a command on another device, please suggest
Please show me exact syntax and if you think this might not be some simple tell me what else I need to check.