I am trying to solve this routing problem for quite some time and was looking for some possible solutions to tackle this issue.
I am running nagios to monitor my servers, routers etc. I am facing a particular problem in reaching a remote router from my LAN.
I have a linux machine running fedora core 3 with the IP address of 10.10.10.21 and subnet of 255.0.0.0 and gateway of 10.10.10.1. This machine and the gateway are on the same LAN. I have a router with the IP 10.10.10.11 and subnet of 255.0.0.0.
Router's LAN port is connected to my local cisco switch. Router's WAN port is connected to our ISP who provides us IP-VPN services.
I am trying to 'ping' a router with the IP (71.13.33.x) which is on a IP-VPN from my linux box (10.10.10.21). I was unsuccessful in reaching this router from my machine. These are few things which I have tried but without success:
1) Added static route using this command "route add -host 71.13.33.x gw 10.10.10.11"
2) Added another static route "route add -net 188.8.131.52 netmask 255.0.0.0 gw 10.10.10.11"
I am able to reach that router when I try to ping that router from router at my end (10.10.10.11)! There is a static route defined in the router which enables traffic to go in & out of the router.
I want to setup nagios check_ping service to monitor remote router. Please let me know if you have any ideas / solutions for my problem. Also, do let me know if you need any additional details.
Thanks a lot!