一 路由上网(环境:yahoo路由器?leonet)
1 通过internet连接共享上网
1.1 配置虚拟机网络连接为nat方式。
1.2 主机设置internet连接共享,共享给【VMware Network Adapter VMnet8】 。
1.3 设置主机和虚拟机的ip为同一个网段,将虚拟机的默认网关ip设置为主机ip,虚拟机就可以连接上网络了。
二 拨号上网(环境:长城宽带pppoe)
1 通过internet连接共享上网
1.1 配置虚拟机网络连接为nat方式。
1.2 主机设置internet连接共享,共享给【VMware Network Adapter VMnet8】,此时该连接的ip自动变为192.168.0.1 。
1.3 虚拟机通过DHCP自动获得 ip,主机上网的时候,客户机即可上网。