DB,서버,OS 등
[Centos7] ip 확인 ip address, ifconfig
bryan.oh
2020. 4. 17. 10:29
반응형
일단 ip 확인하는 명령어를 날려봅시다.
$ ifconfig
command not found 라고 나오면
$ /sbin/ifconfig
No such file or directory 라고 나오면
ip 명령어도 날려봅시다.
$ ip addr
centos7 에서는 ip 명령어로 볼수있다고 나와있는데 저는 안되네요.
command not found 라고 나오면
ifconfig 를 사용할 수 있게 net-tools package 를 설치합니다.
$ sudo yum install -y net-tools
설치가 되면 아래 명령어로 실행
$ ifconfig
# 또는
$ /sbin/ifconfig
728x90
반응형