Adding permanent static routes to the Windows operating system

Source: Internet
Author: User

1. For example: Add a static route to the 10.10.10.0/24 network segment, specify the route to the network segment to go 172.20.153.254 gateway

Route-p Add 10.10.10.0 Mask 255.255.255.0 172.20.153.254

The functions of several parameters used here are:

-P means permanent route, not lost after reboot

Add route

10.10.10.0 represents the network address of the destination network segment

Mask fixed command, followed by the subnet mask of the target network segment

172.20.153.254 is going to the end of the network segment.

2. Check if the add succeeds

Route print

3. Remove the added persistent static route

Route Delete 10.10.10.0 (destination segment network address)

Adding permanent static routes to the Windows operating system

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.