Cannot add static route using symbolic names
I am trying to create static routes for a VPN connection so that only certain web hosts are accessed through the VPN server. It works just fine if I use IP addresses to create the static route (e.g. add route -p <destination ip> <gateway ip> if <interface ID>), however the documentation for route states that I can use symbolic names instead of IPs as long as they are mapped to IPs in networks and hosts files for destination and gateway respectively. I have added the entries into the appropriate files and am able to ping the IP addresses using the symbolic names. However, when I try to add a static route using these symbolic names, I get the error: "The route addition failed: The parameter is incorrect." I am using the following command at the moment to try and resolve the error: route add -p XXX.XXX.XXX.XXX gateway_name_from_hosts_file if <interface ID> Once again, I am able to ping using the gateway name. Also, if I replace the gateway name with IP address in the route add command, it also works. So what am I doing wrong here? Any help would be very much appreciated. Thank you P.S. Running Windows 7 Ultimate.
October 26th, 2010 4:01am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics