安装Centos7先安装VMware worksstation 10
新建一个虚拟机
linux网络的配置
命令dhclient:(自动获取IP地址)
命令ifconfig:(查看IP地址)
BOOTPROTO=static(将IP地址改为静态IP)
ONBOOT=yes
IPADDR=192.168.57.130
NETMASK=255.255.255.0
GATEWAY=192.168.57.2
DNS1=119.29.29.29
systemctl restart network.service(重启网络服务)
ping网络测试一下
dhclient -r(结束网络自动获取)
命令route -n:查看网关
yum install -y net-tools(运行yum安装自己需要的软件)
转载于:https://blog.51cto.com/13515599/2049703