Handmade configuration of NT routing table

zhaozj2021-02-08  226

As long as you need to access the host other than this network segment, there should be a routing message to guide the transfer of the IP package. All routing information can be viewed using the ROUTE PRINT command. If the NIC is not an Internet, it should not have to configure the default gateway, just need to manually add a routing message. For example, the two network segments of A, B have 10.1.1.0 and 10.1.2.0, and the address of the intermediate router is 10.1.1.254 and 10.1.2.254 (router to contact two network segments, there are at least two network cards. The two addresses are within the same network segment, assuming that the NT host address of the A segment is 10.1.1.1, if it is just to contact the network segment B, as long as the route: Route Add -p 10.1.2.0 Mask 255.255.255.0 10.1.1.254. The above order means contacting B network segments through 10.1.1.254, and -p indicates that a permanent route is created, and it will not be lost because of the startup machine. If there is a second network card for the Internet, you need to configure the default gateway for it, and another network card for the local area network communication should not add the default gateway, otherwise there may be problems with communication.

转载请注明原文地址:https://www.9cbs.com/read-2021.html

New Post(0)