After logging into VPN, set the routing table and access the intranet and internet at the same time
resolvent
1、 Cancel default gateway
-
Find the VPN connection in the Network and Security Center, right click Properties, and click the Network tab in the pop-up Properties panel.
-
Select IPv4 Or IPv6 as appropriate, click the attribute button, and click Advanced in the pop-up tab.
-
Uncheck "Use default gateway on remote network" in the IP settings tab.
2、 Add static routing table
-
Connect to VPN to obtain the intranet IP assigned by VPN.
-
Execute the following command
#192.168.1.0 is the IP segment you want to access, the mask subnet mask, and the IP assigned to VPN in 10.2.0.2 route add 192.168.1.0 mask 255.255.255.0 10.2.0.2