在win7共享Internet连接的时候可能会出现如下错误:
An error occurred while Internet Connection Sharing we being enabled.Internet Connection Sharing cannot be enabled. A LAN connection is already configured with the IP address that is required for automatic IP addressing.
此时可以通过如下两条命令修复:
netsh int ip reset
netsh winsock reset catalog
用管理员权限执行完这两条命令以后重启,应该就可以正常共享Internet连接了。