I am not able to add a new route to my route table using route command
I wanted to add routes to the routing table.
At the $ prompt i typed the command route add -net 192.168.100.22 netmask 255.255.255.0 dev eth0. But the command is not recognized and the message, " command not found " is displayed.
My system is connected via interface eth0 to a proxy server.
The system with address 192.168.100.22 is also connected to the proxy server via eth0.
After trying to add route from the $ prompt , as i was not successful, I tried to include the instruction : route add -net 192.168.100.22 netmask 255.255.255.0 dev eth0 in a socket program. But I got the compile time errors , as perhaps route is not an instruction.
I want to add routes (in my routing table) to the other systems on our LAN
because, we are developing RIP1 and we want to add a few routes statically to the routing table.
So friends I would be grateful to U if you could tell me how to add routes to the routing table and what is the reason that I am not able to add routes using the route command.
Also friends please tell me if their is any way to manipulate the entries of the routing table while executing the program, for example : say changing the metric values only (This we need to do if the metric for a route changes.)