虚拟机设置固定ip可以使shell远程连接到服务器
配置vim /etc/sysconfig/network-scripts/ifcfg-ens33


IPADDR = 你的本机ip 192.168.1. 的范围内
NETMASK = 255.255.255.0
GATEWAY = 192.168.1.1 你的本机网关ip
Service network restart 最后重启 查看ifconfig
配置vim /etc/sysconfig/network-scripts/ifcfg-ens33


IPADDR = 你的本机ip 192.168.1. 的范围内
NETMASK = 255.255.255.0
GATEWAY = 192.168.1.1 你的本机网关ip
Service network restart 最后重启 查看ifconfig