查看vmnet8网卡的ip地址:ifconfig
(在centos中)关闭防火墙setup–>Firewall configuration–>关闭防火墙–>ok
设置静态IP
setup–>Network configuration–>Device configuration–>eth0…….
- vi /etc/sysconfig/network-scripts/ifcfg-eth0
修改ONBOOT=yes 使网卡自动启动
# service network restart 重启网络
# ifup eth0 激活网卡最后检查网络,ping下vmnet8的地址
2017-12-30 Centos6.5设置静态IP
最新推荐文章于 2023-04-27 22:41:23 发布