windows system routing settings

1. To add a target to 10.41.0.0, subnet mask 255.255.0.0, the next hop address as a permanent route 10.27.0.1, type:

route -p add 10.41.0.0 mask 255.255.0.0 10.27.0.1

2. To add a target to 10.41.0.0, subnet mask 255.255.0.0, the next hop address 10.27.0.1, a metric of routes 7, type:

route add 10.41.0.0 mask 255.255.0.0 10.27.0.1 metric 7

3. To add a target to 10.41.0.0, subnet mask 255.255.0.0, the next hop address 10.27.0.1, interface index for the 0x3 route, type:

route add 10.41.0.0 mask 255.255.0.0 10.27.0.1 if 0x3

4. To delete a target 10.41.0.0, subnet mask 255.255.0.0 routing, type:

route delete 10.41.0.0 mask 255.255.0.0

5, to delete all routes to the IP routing table 10. The start, type:

route delete 10.*

6, to target 10.41.0.0, subnet mask next-hop address of 255.255.0.0 route changed from 10.27.0.1 to 10.27.0.25, type:

route change 10.41.0.0 mask 255.255.0.0 10.27.0.25

Guess you like

Origin blog.51cto.com/14591361/2447032
Recommended