centOS7下ifconfig提示command not found

2024-10-28 10:49:53

1、查看是否真的没有设置IP地址:命令行中输入ip addr,若看到有ip地址,则说明已设置正常,若没有则需要设置一个。

centOS7下ifconfig提示command not found

3、确认是否安装ifconfig命令:在sbin目录中输入ls | grep ‘ifconfig’,没有则说明没有安装。

centOS7下ifconfig提示command not found

6、注:因为我已经安装了,所以此处无需做任何改动。

7、再次在命令行中输入ifconfig,查看到ip则安装成功。

centOS7下ifconfig提示command not found
猜你喜欢