Join cross-subnet routing Windows Server 2008 VPN

  

When we access the VPN server in the remote local area network through a VPN network connection on a computer with Windows Server 2008 system installed, it may be found that the Windows Server 2008 system cannot access the local area network after the VPN network connection is successful. In the content, sometimes you can't access the content on the Internet.

This kind of failure phenomenon is mainly caused by the Windows Server 2008 system automatically changing the local default gateway address to the default gateway address of the remote network after the VPN network connection is successful, so that Windows Server 2008 system There is no route record pointing to the local network. At this time, we can click the "Start" /"Settings" /"Network Connection" command in the Windows Server 2008 system desktop, open the VPN network connection property setting window in the pop-up network connection list window, and then enter TCP /IP property settings window, find the "Use default gateway on remote network" option, and cancel the selected state of this option, so that Windows Server 2008 system can re-access the local after the VPN network connection is successful. LAN network. However, at this time, we found that the Windows Server 2008 system can not access the other working subnets outside the subnet of the VPN server. How can this be good? In fact, we only need to use the system in the Windows Server 2008 system. The route add command adds the route records pointing to other working subnets to the local routing table. Here are the specific work steps:

First open the "Start" menu of the Windows Server 2008 system, and then click on it. "Program" /"Accessories" /"Command Prompt" option, and right-click this option, execute the "Run as administrator" command from the pop-up shortcut menu, enter the DOS command line work window of the corresponding system; Br>


Next, enter the string command "route add 10.176.34.0 mask 255.255.255.0 10.176.34.1 metric 1" in the DOS command line state (assuming that the target subnet to be accessed across subnets is required here) The address is 10.176.34.0, and the mask address of the target subnet is 255.255.255.0). After clicking the Enter key, the Windows Server 2008 system will automatically add Routing a point to be accessed subnet work record, and then Windows Server 2008 system can connect across subnets access subnet 10.176.34.0 work through the VPN network.

Copyright © Windows knowledge All Rights Reserved