VMware中centos6.5mini设置静态IP
[*] 设置网卡为net模式
[*] 确保windows下的服务是否启动
[*] 编辑文件
vi /etc/sysconfig/network-scripts/ifcfg-eth0
[*] 修改 ONBOOT
ONBOOT=yes
[*] 在windows上通过ipconfig查看VMnet8的地址192.168.8.1
[*] 设置IP
BOOTPROTO=static
IPADDR=192.168.8.130
NETMASK=255.255.255.0
GATEWAY=192.168.8.2
[*] 重启网络:service network restart
[*] ping www.baidu.com
[*] 设置dns服务
vi /etc/resolv.conf
添加 nameserver 114.114.114.114
页:
[1]