Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Windows system built-in route command

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Objective: to learn to view and modify the routing of the system

Environment: windows 7

Scenario: like routers, windows systems need routing settings to access different networks. It has some default routes, which we generally do not need to adjust, but when a device has two network cards or ip addresses, it may need to adjust the direction of the route to optimize the network.

The system has its own routing table function, which is used to communicate with different network segment devices.

Command line mode:

Using the route command, the common commands are as follows:

Route print to view existing routing tables

Route add | change destination IP mask destination IP mask next hop gateway address

For example:

Route add 172.8.0.1 mask 255.255.255.0 172.16.1.1

Add a next-hop route to the 172.8.0.1amp 24 segment to point to the gateway 172.16.1.1

This addition disappears after restart, and the-p parameter needs to be added to save as a permanent route.

Route delete routes can be written in full or only in network segments, depending on the actual situation.

Add the metric number after it to specify the priority of the route, and the smaller the number, the higher the priority.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report