Infra/CentOS
[CentOS] ifconfig 오류 - 존재하지 않을 때 해결법
당닝
2021. 11. 8. 17:47
728x90
CentOS 7을 minimal로 다운 받아 ifconfig가 존재하지 않아 오류가 발생한다.
해결 방법에는 1. ip 명령어 사용, 2. hostname -I 명령어 사용, 3. net-tools 설치가 있다.
1. ip 명령어 사용
ip addr
ip addr을 입력한다.
2. hostname -I 명령어 사용
hostname -I
ip 주소를 빠르게 알아낼 수 있다.
3. net-tools 설치
[root@centosnode ~]# yum install net-tools
... (생략)
===========================================================================================
Package Arch Version Repository Size
===========================================================================================
Installing:
net-tools x86_64 2.0-0.17.20131004git.el7 base 304 k
Transaction Summary
===========================================================================================
Install 1 Package
Total download size: 304 k
Installed size: 917 k
Is this ok [y/d/N]: y
이후 ifconfig를 실행하면 정상적으로 작동한다.
참고
CentOS 7 ifconfig 명령어 없음 - 제타위키 (zetawiki.com)
CentOS 7 ifconfig 명령어 없음 - 제타위키
다음 문자열 포함...
zetawiki.com
728x90