To add a static IP route
1. | Open Command Prompt | ||||||||||
2. | At the command prompt, type: route add destination mask subnetmask gateway metric costmetric if interface where:
route add 10.0.0.0 mask 255.0.0.0 192.168.0.1 metric 2 |
• | To open command prompt, click Start, point to All Programs, point to Accessories, and then click Command Prompt. |
• | To make a static route persistent, you can either enter route add commands in a batch file that is run during system startup or use the -p option when adding routes. |
• | Routes added by using the -p option are stored in the Windows registry under the following key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip \Parameters\PersistentRoutes |
• | All symbolic names used for destination or gateway are looked up in the network and computer name database files (Networks and Hosts), which are stored in the local systemroot\System32\Drivers\Etc folder. |
• | If a route addition fails, you can use the tracert command to verify that the gateway specified is directly reachable from the same subnet as this computer. To delete: Route delete <ip addr> |
source: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/sag_tcpip_pro_addstaticroute.mspx?mfr=true
No comments:
Post a Comment