Redhat7的ifconfig命令过时了,用ip addr 或 ip link 来查看网卡情况就行了 如果偏要用ifconfig命令,就安装net-tools yum -y install net-tools