- -bash: route: command not found
- -bash: netstat: command not found
1 문제상황[ | ]
- CentOS7 미니멀을 설치했더니 route 명령어가 없다.
- netstat 명령어도 없다...
Console
Copy
[root@localhost ~]# route
-bash: route: command not found
Console
Copy
[root@localhost ~]# netstat -tnlp
-bash: netstat: command not found
Console
Copy
[root@localhost ~]# rpm -q net-tools
package net-tools is not installed
2 net-tools 설치[ | ]
Console
Copy
[root@localhost ~]# yum install net-tools
... (생략)
=============================================================================================
Package Arch Version Repository Size
=============================================================================================
Installing:
net-tools x86_64 2.0-0.17.20131004git.el7 base 304 k
Transaction Summary
=============================================================================================
Install 1 Package
Total download size: 304 k
Installed size: 917 k
Is this ok [y/d/N]: y
Console
Copy
... (생략)
Installed:
net-tools.x86_64 0:2.0-0.17.20131004git.el7
Complete!
3 확인[ | ]
Console
Copy
[root@localhost ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default gateway 0.0.0.0 UG 0 0 0 enp0s8
10.0.3.0 0.0.0.0 255.255.255.0 U 0 0 0 enp0s8
link-local 0.0.0.0 255.255.0.0 U 1002 0 0 enp0s3
link-local 0.0.0.0 255.255.0.0 U 1003 0 0 enp0s8
192.168.56.0 0.0.0.0 255.255.255.0 U 0 0 0 enp0s3
Console
Copy
[root@localhost ~]# netstat -tnlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 629/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 766/master
tcp6 0 0 :::22 :::* LISTEN 629/sshd
tcp6 0 0 ::1:25 :::* LISTEN 766/master
4 같이 보기[ | ]
5 참고[ | ]
편집자 Jmnote
로그인하시면 댓글을 쓸 수 있습니다.