Add, delete, and modify static routes in windows.
1. Add a route table
Route add 192.168.100.0 mask created successfully 248 192.168.1.1 metric 3 if 2
Add a route record. All data packets destined for the IP address range of 192.168.100.0/24 are routed to the gateway of 192.168.1.1 through the NIC interface No. 2. The priority is 3.
Route add-p 192.168.100.0 mask routing route 248 192.168.1.1 metric 3 if 2 # acts the same as above, but this is a permanent route and will not be lost due to machine restart.
2. delete a route table
Route delete 192.168.100.0
NOTE: If two route records have the same "destination network number", the two records will be deleted at the same time. If you only want to delete one of them, add one after deletion by running the route add command.
3. modify a route record
Route change 157.0.0.0 mask upgrade 0.0.0 157.55.80.5 metric 2 if 2 CHANGE parameters can only modify "Gateway" and "hop count ".