Add, delete, and modify static routes in windows.

Source: Internet
Author: User

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 ".

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.