我今天在 cisco 路由器上设置了 pptp 服务器。远程客户端 IP 地址由 DHCP 在该 cisco 路由器上分配。我还设置了选项 249 和 121,以便为我的 VPN 客户端提供无类路由。
选项 249 和 121 用于两条路由:10.0.0.0/8 和 192.168.0.0/16。
我已经在 Windows XP 和 Mac OS X Snow Leopard 上测试了此配置。一切运行正常。
但是我的 Windows 7 计算机仅从选项 121 获取第一个地址,而忽略下一个地址。为什么?
我该如何修复它或者跟踪/调试它?
dhcp pool的配置如下:
ip dhcp pool pptp-users
network 10.255.241.0 255.255.255.0
default-router 10.255.241.1
dns-server 10.255.249.40
netbios-name-server 10.255.249.40
option 249 hex 080a.0aff.f101.10c0.a80a.fff1.01
option 121 hex 080a.0aff.f101.10c0.a80a.fff1.01
如果我更改选项中的路由,所有路由都会以相同的方式工作。Windows XP 和 MacOS X 都可以正常工作。Windows 7 只获得了第二条路由 10.0.0.0/8
pptp连接前的路由表
===========================================================================
Interface List
14...00 ff 52 b7 58 e0 ......TAP-Win32 Adapter V9
13...90 4c e5 e0 f9 a6 ......11b/g/n Wireless LAN Mini-PCI Express Adapter II
11...00 26 2d f1 3d cd ......Intel(R) 82577LM Gigabit Network Connection
1...........................Software Loopback Interface 1
19...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter
12...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface
20...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #2
34...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #4
===========================================================================
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 172.16.1.1 172.16.1.105 25
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
172.16.1.0 255.255.255.0 On-link 172.16.1.105 281
172.16.1.105 255.255.255.255 On-link 172.16.1.105 281
172.16.1.255 255.255.255.255 On-link 172.16.1.105 281
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 172.16.1.105 281
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link 172.16.1.105 281
===========================================================================
Persistent Routes:
Network Address Netmask Gateway Address Metric
0.0.0.0 0.0.0.0 184.191.32.135 Default
===========================================================================
IPv6 Route Table
===========================================================================
Active Routes:
If Metric Network Destination Gateway
12 58 ::/0 On-link
12 58 2001::/32 On-link
12 306 2001:0:4137:9e76:1c98:1713:b83a:3ffc/128
On-link
12 306 fe80::/64 On-link
19 286 fe80::5efe:172.16.1.105/128
On-link
12 306 fe80::1c98:1713:b83a:3ffc/128
On-link
===========================================================================
Persistent Routes:
None
pptp连接后的路由表
===========================================================================
Interface List
21...........................VPN Connection
14...00 ff 52 b7 58 e0 ......TAP-Win32 Adapter V9
13...90 4c e5 e0 f9 a6 ......11b/g/n Wireless LAN Mini-PCI Express Adapter II
11...00 26 2d f1 3d cd ......Intel(R) 82577LM Gigabit Network Connection
1...........................Software Loopback Interface 1
19...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter
12...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface
20...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #2
17...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #3
34...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #4
===========================================================================
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 172.16.1.1 172.16.1.105 25
10.0.0.0 255.0.0.0 10.255.241.1 10.255.241.57 26
10.255.241.57 255.255.255.255 On-link 10.255.241.57 281
96.31.168.206 255.255.255.255 172.16.1.1 172.16.1.105 26
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
172.16.1.0 255.255.255.0 On-link 172.16.1.105 281
172.16.1.105 255.255.255.255 On-link 172.16.1.105 281
172.16.1.255 255.255.255.255 On-link 172.16.1.105 281
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 172.16.1.105 281
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link 172.16.1.105 281
255.255.255.255 255.255.255.255 On-link 10.255.241.57 281
===========================================================================
Persistent Routes:
Network Address Netmask Gateway Address Metric
0.0.0.0 0.0.0.0 184.191.32.135 Default
===========================================================================
IPv6 Route Table
===========================================================================
Active Routes:
If Metric Network Destination Gateway
19 286 fe80::5efe:172.16.1.105/128
On-link
===========================================================================
Persistent Routes:
None