实际配置步骤 选中虚拟机右键,设置虚拟机的网络连接模式为桥接模式 查看当前宿主机网络ipconfig /all 启动虚拟机,登录系统,修改网络配置文件 cd /etc/sysconfig/network-scripts ls vi ifcfg-ens33 初始文件内容如下: 修改后的内容如下:BOOTPROTO=static表示使用静态地址协议,ONBOOT=yes表示系统启动是激活网络 修改完成
[zch@hadoop01 Desktop]$ ping www.baidu.com ping: unknown host www.baidu.com The "ping: unknown host" error message typically means that the host you're trying to reach, in this case, "www.baidu.com,"