修改网卡配置 vim /etc/sysconfig/network-scripts/ifcfg-xxx service network restart 无ifconfig解决方法: Centos: yum provides ifconfig yum whatprovides ifconfig Ubuntu: apt-get update apt install net-tools # ifconfig apt install iputils-ping # ping