2017-12-30 Centos6.5设置静态IP

  1. 查看vmnet8网卡的ip地址:ifconfig
    2017-12-30 Centos6.5设置静态IP

  2. (在centos中)关闭防火墙setup–>Firewall configuration–>关闭防火墙–>ok
    2017-12-30 Centos6.5设置静态IP
    2017-12-30 Centos6.5设置静态IP

  3. 设置静态IP
    setup–>Network configuration–>Device configuration–>eth0…….
    2017-12-30 Centos6.5设置静态IP
    2017-12-30 Centos6.5设置静态IP
    2017-12-30 Centos6.5设置静态IP

  4. vi /etc/sysconfig/network-scripts/ifcfg-eth0
    修改ONBOOT=yes 使网卡自动启动
    2017-12-30 Centos6.5设置静态IP
  5. # service network restart 重启网络
    # ifup eth0 **网卡

  6. 最后检查网络,ping下vmnet8的地址