Join cross-subnet routing Windows Server 2008 VPN

  
When we access the VPN server in the remote local area network through the VPN network connection on the computer with Windows Server 2008 system installed, it may be found that the Windows Server 2008 system cannot access the content on the local LAN after the VPN network connection is successful. Sometimes I 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 there is no route to the local network in the Windows Server 2008 system. recorded. At this time, we can open the properties of the VPN network connection in the pop-up network connection list window by clicking the <;Start”/“Settings"/“Network Connections" command in the Windows Server 2008 system desktop. Set the window, then enter the TCP/IP property settings window, find the option to use the default gateway on the remote network, and cancel the selected state of the option, so that the Windows Server 2008 system successfully connects to the VPN network. After that, I can re-access the local LAN network normally. 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 routing records to other working subnets to the local routing table. Here are the specific work steps: First open the Windows Server 2008 system's "Start" menu, and then click "Programs" ; /& ldquo; Attachment & rdquo; /& ldquo; Command prompt & rdquo; option, and right-click this option, from the pop-up shortcut menu to execute "Run as administrator" & rdquo; command, enter the corresponding system DOS command line Work window; secondly, enter the string command in the DOS command line state <;route add 10.176.34.0 mask 255.255.255.0 10.176.34.1 metric 1” (assuming that the target subnet address to be accessed across subnets is 10.176.34.0, corresponding The mask address of the target subnet is 255.255.255.0). After clicking the Enter key, it will be in the Windows Server 2008 system. Automatic routing a newly added access points to the work of the subnet to be recorded, then Windows Server 2008 system can connect across subnets through the VPN network to access the subnet 10.176.34.0 work.
Copyright © Windows knowledge All Rights Reserved