上礼拜在本机安装了一个虚拟机,试用了一下Ubuntu,之前能上网,周末出了点问题,现记录修复过程如下,以备忘:
主机(Windows)的设置有:
1、开启如下服务:
VMware DHCP Service 和 VMware NAT Service
2、在网络链接中配置VMnet8(我这边均为自动获取IP):
Ethernet adapter 本地连接: Connection-specific DNS Suffix . : IP Address. . . . . . . . . . . . : 192.168.18.100 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 192.168.18.1 Ethernet adapter VMware Network Adapter VMnet8: Connection-specific DNS Suffix . : IP Address. . . . . . . . . . . . : 192.168.107.1 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . :
虚拟机的配置:
1、VMWare中将网络连接方式设置为NAT
具体路径为(VW->Settings->Hardware->Network Adapter)
2、Ubuntu中将Wired Connection设置为DHCP方式
具体路径为(System->Administrator->Network->Connection)