CentOS 7.x ifconfig command not found 해결 방법



CentOS 7.2 minimal 최소 설치를 했더니 이렇게 나온다.


[root@virtualbox ~]# ifconfig

-bash: ifconfig: command not found

[root@virtualbox ~]# netstat

-bash: netstat: command not found

[root@virtualbox ~]#


이런거 까지 바뀌다니 너무한거 같다.


아래와 같이 yum 으로 net-tools 를 설치해주자.

[root@virtualbox ~]# yum install net-tools

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

 * base: mirror.navercorp.com

 * extras: mirror.navercorp.com

 * updates: mirror.navercorp.com

Resolving Dependencies

--> Running transaction check

---> Package net-tools.x86_64 0:2.0-0.17.20131004git.el7 will be installed

--> Finished Dependency Resolution


Dependencies Resolved


================================================================================

 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

Downloading packages:

net-tools-2.0-0.17.20131004git.el7.x86_64.rpm              | 304 kB   00:00

Running transaction check

Running transaction test

Transaction test succeeded

Running transaction

  Installing : net-tools-2.0-0.17.20131004git.el7.x86_64                    1/1

  Verifying  : net-tools-2.0-0.17.20131004git.el7.x86_64                    1/1


Installed:

  net-tools.x86_64 0:2.0-0.17.20131004git.el7


Complete!

[root@virtualbox ~]#


# yum install -y net-tools 로 설치해도 된다.


한번 물어보고 설치할거냐 바로 설치하느냐의 차이다.


[root@virtualbox ~]# ifconfig

enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        inet 192.168.1.2  netmask 255.255.255.0  broadcast 192.168.1.255

        inet6 fe80::a00:27ff:fe27:d6ca  prefixlen 64  scopeid 0x20<link>

        ether 08:00:27:27:d6:ca  txqueuelen 1000  (Ethernet)

        RX packets 75998  bytes 113700300 (108.4 MiB)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 17889  bytes 1229230 (1.1 MiB)

        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 0  (Local Loopback)

        RX packets 8  bytes 560 (560.0 B)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 8  bytes 560 (560.0 B)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


이제 잘 된다.




블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,