解决方法如下:
1. 打开Solaris 10.vmx,找到如下内容
引用:ethernet0.present = "TRUE"
ethernet0.connectionType = "nat"
ethernet0.virtualDev = "e1000"
ethernet0.wakeOnPcktRcv = "FALSE"
ethernet0.addressType = "generated"
确定设备标识为e1000。
2. 开启虚拟机,在/etc目录下查找hostname.e1000g0、/etc/dhcp.e1000g0文件,没有则创建,编辑hostname.e1000g0的内容为主机名。
3. 执行ifconfig e1000g0 plumb。
3. 执行ifconfig e1000g0 dhcp获取动态ip地址。
4. 重启,执行ifconfig e1000g0 dhcp status查看dhcp状态。
作者:cuterhei