[CentOS 7] net-toolsIT/linux2020. 4. 17. 10:22
Table of Contents
ifconfig, netstat 명령어가 작동하지 않을때 : net-tools 미설치
[root@web ~]# rpm -q net-tools
package net-tools is not installed
[root@web ~]# ifconfig
-bash: /sbin/ifconfig: No such file or directory
[root@web ~]# netstat
-bash: netstat: command not found
net-tools 설치
yum -y install net-tools
[root@web ~]# netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 web:41256 *:http TIME_WAIT
tcp 0 0 web:38404 *:http TIME_WAIT
tcp 0 0 web:38414 *:http TIME_WAIT
tcp 0 0 web:ssh * ESTABLISHED
tcp 0 0 web:41258 *:http TIME_WAIT
tcp 0 0 web:34580 *:http TIME_WAIT
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ] DGRAM 18202 /var/run/chrony/chronyd.sock
unix 3 [ ] DGRAM 7266 /run/systemd/notify
unix 2 [ ] DGRAM 7268 /run/systemd/cgroups-agent
unix 5 [ ] DGRAM 7279 /run/systemd/journal/socket
.
.
.
[root@web ~]# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255
inet6 fe80::5054:ff:fe8a:fee6 prefixlen 64 scopeid 0x20<link>
ether 52:54:00:8a:fe:e6 txqueuelen 1000 (Ethernet)
RX packets 10243 bytes 9228468 (8.8 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3025 bytes 295006 (288.0 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
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 32 bytes 2592 (2.5 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 32 bytes 2592 (2.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
'IT > linux' 카테고리의 다른 글
[linux] H/W 정보 확인하기, dmidecode, lshw (0) | 2020.06.26 |
---|---|
[linux]lsblk (0) | 2020.05.18 |
[linux] vi 명령어 (0) | 2020.04.16 |
[linux] 디렉토리 (0) | 2020.02.27 |
[linux] sed (0) | 2020.02.27 |
@주니- :: 주니
포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!