How to add, remove, and modify static routes under Windows

Source: Internet
Author: User

1. Add a route table
    • 1
    • 2

Add a route record, all packets to 192.168.100.0/24 network segment, all through the 2nd number (network card) interface Walk 192.168.1.1 Gateway, priority is 3.

route add -p 192.168.100.0 mask 255.255.255.248 192.168.1.1 metric 3 if 2#作用同上,只是这是一条永久路由,不会因为重启机器而丢失。  
    • 1
    • 2
    • 3
2. Delete a route table
route delete 192.168.100.0
    • 1
    • 2

注意: If there are two routing records with the same destination network number, two records will be deleted at the same time. If you want to delete only one of these, add one with the route add command after deletion.

3. Modify a route record
route change 157.0.0.0 mask 255.0.0.0 157.55.80.5 metric 2 if 2 CHANGE参数只能修改“网关”和“跳数”。

How to add, remove, and modify static routes under Windows

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.