Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to set permanent static routes for windows virtual machines

Shulou Source: shulou.com Published: 2022-05-31 15:18:44 10月30日 Update

It is believed that many inexperienced people don't know what to do about how to set permanent static route in windows virtual machine. Therefore, this paper summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

Route is used to display, manually add and modify routing table items. Most hosts typically reside on a network segment connected to only one router. Because there is only one router, there is no question of which router to use to publish the packet to the remote computer, and the IP address of that router can be entered as the default gateway for all computers on that segment. However, when there are two or more routers on the network, you don't necessarily want to rely on the default gateway. In fact, you may want some of your remote IP addresses to be passed through a particular router, while other remote IP addresses may be passed through another router.

Route print-- this command is used to display the current items in the routing table, all of which are automatically added because the network card is configured with an IP address.

A windows virtual machine has two network cards, one is connected to the service network (double connected), and the other is connected to the out-of-band management network, which needs to communicate with other different network segments.

The settings are as follows:

1. Add out-of-band managed cards on the standard switch and set VLAN

First check the status of the card

Then add

2. There are two network cards

3. There is no gateway in the second block.

4. Call CMD and use the administrator identity

The / p parameter is permanent. If you don't add it, the restart will be gone.

5. Route print check

Permanent routing has been added

6. Try again and find it all works

7. note that out-of-band management is a single line, and routing should be set to a route based on the source virtual port.

After reading the above, have you mastered how the windows virtual machine sets permanent static routes? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Tags: Routing router permanent management address gateway network card network segment problem project static content method more computer check different helpless to this end business Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB MySQL Huawei Linux Microsoft