반응형
ubuntu 20.04.2 을 처음 설치하고 ifconfig 를 입력하면 아래와 같이 나온다.
$ ifconfig
Command 'ifconfig' not found, but can be installed with:
sudo apt install net-tools
$
ifconfig 가 설치되어 있지 않아 발생하는 문제이므로 아래 명령어로 설치한다.
설치시 sudo 권한이나 root로 설치해야 한다.
# 설치 명령
$ sudo apt install net-tools
[sudo] password for enowy:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
net-tools
0 upgraded, 1 newly installed, 0 to remove and 79 not upgraded.
Need to get 196 kB of archives.
After this operation, 864 kB of additional disk space will be used.
Get:1 http://kr.archive.ubuntu.com/ubuntu focal/main amd64 net-tools amd64 1.60+git20180626.aebd88e-1ubuntu1 [196 kB]
Fetched 196 kB in 2s (87.5 kB/s)
Selecting previously unselected package net-tools.
(Reading database ... 71401 files and directories currently installed.)
Preparing to unpack .../net-tools_1.60+git20180626.aebd88e-1ubuntu1_amd64.deb ...
Unpacking net-tools (1.60+git20180626.aebd88e-1ubuntu1) ...
Setting up net-tools (1.60+git20180626.aebd88e-1ubuntu1) ...
Processing triggers for man-db (2.9.1-1) ...
#### 설치완료 ###
# IP 조회
$ ifconfig
enp0s5: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.211.55.17 netmask 255.255.255.0 broadcast 10.211.55.255
inet6 fe80::21c:42ff:fefb:7a7 prefixlen 64 scopeid 0x20<link>
inet6 fdb2:2c26:f4e4:0:21c:42ff:fefb:7a7 prefixlen 64 scopeid 0x0<global>
ether 00:1c:42:fb:07:a7 txqueuelen 1000 (Ethernet)
RX packets 514 bytes 274641 (274.6 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 371 bytes 46017 (46.0 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
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 114 bytes 9114 (9.1 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 114 bytes 9114 (9.1 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
$
반응형
Comment