cd /etc/sysconfig/network-scripts/ifcfg-ens33
修改如下
BOOTPROTO=static
ONBOOT=yes
IPADDR=192.168.72.66
NETMASK=255.255.255.0
GATEWAY=192.168.72.2
centos6的网卡重启方法:service network restart
centos7的网卡重启方法:systemctl restart network
关闭防火墙并设置开机不启动
查看防火墙状态:systemctl status firewalld.service
关闭:systemctl stop firewalld
开启:systemctl start firewalld
开机自动关闭:systemctl disable firewalld
开机自动启动:systemctl enable firewalld