1. 使用 ifcconfig

ifconfig

如果提示没有安装这个命令,那么就需要先安装:

yum install ifconfig

ifconfig

  1. 使用 /sbin/ifconfig