OS/Ubuntu

Ubuntu 24.04 ifconfig 설치

강서버 2026. 10. 23. 15:13
반응형

- ifconfig 실행

 

gangserver@RC530-U0407:~$ ifconfig
명령어 'ifconfig' 을(를) 찾을 수 없습니다. 그러나 다음을 통해 설치할 수 있습니다:
sudo apt install net-tools

 

 

- ifconfig를 실행하기 위해서는 net-tools가 설치되어 있어야 한다.

설치가 안되어 있는 경우 먼저 설치를 진행한다.

$ sudo apt install net-tools

 

[ 실행 로그 ]
gangserver@RC530-U0407:~$ sudo apt install net-tools
패키지 목록을 읽는 중입니다... 완료
의존성 트리를 만드는 중입니다... 완료
상태 정보를 읽는 중입니다... 완료        
다음 새 패키지를 설치할 것입니다:
  net-tools
0개 업그레이드, 1개 새로 설치, 0개 제거 및 2개 업그레이드 안 함.
204 k바이트 아카이브를 받아야 합니다.
이 작업 후 811 k바이트의 디스크 공간을 더 사용하게 됩니다.
(... 로그 생략 ...)

 

 

- 설치 후 ifconfig 실행

$ ifconfig

 

[ 실행 로그 ]
gangserver@RC530-U0407:~$ ifconfig
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 5924  bytes 731253 (731.2 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 5924  bytes 731253 (731.2 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlx909f330949f2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.20  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 (...Blurred...)  prefixlen 64  scopeid 0x20<link>
        ether (...Blurred...)  txqueuelen 1000  (Ethernet)
        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

 

 

반응형
LIST