새소식

Operation System/Unix & Linux

ifconfig: command not found

  • -
728x90
반응형

ifconfig 유틸리티 설치 방법


iifconfig

CentOS

[root@d86a1cc708f1 ~]# yum install -y net-tools

[root@d86a1cc708f1 ~]# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 172.17.0.10  netmask 255.255.0.0  broadcast 172.17.255.255
        ether 02:42:ac:11:00:0a  txqueuelen 0  (Ethernet)
        RX packets 17842  bytes 27734941 (26.4 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 8639  bytes 577021 (563.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Ubuntu

root@2e7d55ea6f88:~# apt-get install -y net-tools

root@2e7d55ea6f88:~# ifconfig 
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 172.17.0.9  netmask 255.255.0.0  broadcast 172.17.255.255
        ether 02:42:ac:11:00:09  txqueuelen 0  (Ethernet)
        RX packets 35210  bytes 55503053 (55.5 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 11441  bytes 772565 (772.5 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


  • 패키지 매니저로 설치가 불가능한 경우 아래 링크를 통해 직접 파일로 다운 받아 설치를 합니다.
 

Linux libarary 파일 다운로드

리눅스 환경에서 yum 또는 apt-get과 같은 패키지 관리자로 패키지를 다운 받지 못할 때 파일로 준비해야 합니다. Repository CentOS Index of /centos mirror.navercorp.com CentOS 버전에 맞게 탐색을 합니다. I..

junsuyoun.tistory.com


 

728x90
반응형

'Operation System > Unix & Linux' 카테고리의 다른 글

vi: command not found  (0) 2022.09.25
ssh: command not found  (0) 2022.09.25
netstat: command not found  (0) 2022.09.25
sshd: command not found  (0) 2022.09.25
telnet 설치  (0) 2022.09.25

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.