linux网卡配置路径cd /etc/sysconfig/network-scripts/vi ifcfg-网卡名称 //ifconfig查看网卡信息末行添加IPADDR=172.27.0.32 //网络ip NETMASK=255.255.255.0 //掩码GATEWAY=172.27.0.1 //网关DNS1=172.27.0.5 //dns systemctl restart network //重启网络服务