通常情况下,VPN客户端拨入VPN服务器后,本机的默认网关会改为VPN的IP地址,即访问外部会从VPN服务器出去,如果VPN服务器端(以ISA为例)没有定义允许VPN客户端访问外部的策略,即会造成拨入VPN后,客户端本机无法上网,以下供参考:
Ethernet adapter 本地连接 2:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : D-Link DFE-530TX PCI Fast Ethernet A
dapter (rev.C)
Physical Address. . . . . . . . . : 00-1B-11-B8-06-4D
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.11.123
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . .. . . . : 192.168.11.254
DNS Servers . . . . . . . . . . . : 192.168.3.15
192.168.3.16
PPP adapter contoso:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface
Physical Address. . . . . . . . . : 00-53-45-00-00-00
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.100.56
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 192.168.100.56
DNS Servers . . . . . . . . . . . : 10.10.10.1
10.10.10.2
Primary WINS Server . . . . . . . : 10.10.10.2
C:\Documents and Settings\administrator>route print
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...00 50 56 c0 00 01 ...... VMware Virtual Ethernet Adapter for VMnet1
0x10004 ...00 1b 11 b8 06 4d ...... D-Link DFE-530TX PCI Fast Ethernet Adapter (
rev.C) - Virtual Machine Network Services Driver
0xa0005 ...00 53 45 00 00 00 ...... WAN (PPP/SLIP) Interface
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.11.254 192.168.11.123 21
0.0.0.0 0.0.0.0 192.168.100.56 192.168.100.56 1
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.11.0 255.255.255.0 192.168.11.123 192.168.11.123 20
192.168.11.123 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.11.205 255.255.255.255 192.168.11.123 192.168.11.123 20
192.168.11.255 255.255.255.255 192.168.11.123 192.168.11.123 20
192.168.100.56 255.255.255.255 127.0.0.1 127.0.0.1 50
192.168.100.255 255.255.255.255 192.168.100.56 192.168.100.56 50
192.168.152.0 255.255.255.0 192.168.152.1 192.168.152.1 20
192.168.152.1 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.152.255 255.255.255.255 192.168.152.1 192.168.152.1 20
224.0.0.0 240.0.0.0 192.168.11.123 192.168.11.123 20
224.0.0.0 240.0.0.0 192.168.152.1 192.168.152.1 20
224.0.0.0 240.0.0.0 192.168.100.56 192.168.100.56 1
255.255.255.255 255.255.255.255 192.168.11.123 192.168.11.123 1
255.255.255.255 255.255.255.255 192.168.100.56 192.168.100.56 1
255.255.255.255 255.255.255.255 192.168.152.1 192.168.152.1 1
Default Gateway: 192.168.100.56
===========================================================================
Persistent Routes:
对于此,其实可以通过修改拨号连接属性来修改这个问题,单击VPN连接属性->网络->internet TCP/IP协议->属性->高级->常规,将复选框上的勾取消(在远程网络上使用默认网关),如图:
修改后,重新拨号,查看IP,结果如下:
Ethernet adapter 本地连接 2:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : D-Link DFE-530TX PCI Fast Ethernet A
dapter (rev.C)
Physical Address. . . . . . . . . : 00-1B-11-B8-06-4D
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.11.123
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.11.254
DNS Servers . . . . . . . . . . . : 192.168.3.15
192.168.3.16
PPP adapter contoso:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface
Physical Address. . . . . . . . . : 00-53-45-00-00-00
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.100.55
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . : 此栏现为空了
DNS Servers . . . . . . . . . . . : 10.10.10.1
10.10.10.2
Primary WINS Server . . . . . . . : 10.10.10.2