I am trying this command:
route add -net 18.104.22.168 netmask 255.255.0.0 gw 22.214.171.124 dev eth0
126.96.36.199 is a public IP address of a VPN router gateway which located in a different subnet and connected through internet.
SIOCADDRT: No such process
Is it possible to route a traffic to external gateway ? or its required that the gateway should in the same network to enable static routing.
Any info or direction appreciated.