Centos 7 버전 부터 최소 설치 후 ifconfig 명령어가 인식이 되지 않는다.
이는 아래와 같이 net-tools를 설치 하면 된다.
[root@localhost /]# ifconfig -bash: ifconfig: command not found |
아래와 같이 yum install net-wools 로 설치 진행한다.
[root@localhost /]#yum install net-tools Loaded plugins: fastestmirror Determining fastest mirrors * base: mirror.kakao.com * extras: mirror.kakao.com * updates: mirror.kakao.com base | 3.6 kB 00:00 extras | 2.9 kB 00:00 updates | 2.9 kB 00:00 (1/4): extras/7/x86_64/primary_db | 159 kB 00:00 (2/4): base/7/x86_64/group_gz | 165 kB 00:00 (3/4): updates/7/x86_64/primary_db | 6.7 MB 00:01 (4/4): base/7/x86_64/primary_db | 6.0 MB 00:02 Resolving Dependencies --> Running transaction check ---> Package net-tools.x86_64 0:2.0-0.25.20131004git.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: net-tools x86_64 2.0-0.25.20131004git.el7 base 306 k Transaction Summary ================================================================================ Install 1 Package ...................... (중략) Installed: net-tools.x86_64 0:2.0-0.25.20131004git.el7 Complete! |
설치 후 최종확인 해보면 잘 된다.
[root@localhost /]# ifconfig ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.132.128 netmask 255.255.255.0 broadcast 192.168.132.255 inet6 fe80::19e:d88e:5384:e3b6 prefixlen 64 scopeid 0x20 ether 00:0c:29:83:35:9b txqueuelen 1000 (Ethernet) RX packets 11469 bytes 14692553 (14.0 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 2149 bytes 155517 (151.8 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 loop txqueuelen 1000 (Local Loopback) RX packets 4 bytes 336 (336.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 4 bytes 336 (336.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 |
'〔 SERVER 〕 > ↗『Linux』' 카테고리의 다른 글
[Centos]_7.x 리눅스 GPU 설치 (1) | 2020.08.11 |
---|---|
[Centos]_7.x 리눅스 방화벽 설정 (0) | 2020.02.17 |
[Centos]_마운트하기 설정 (0) | 2019.03.07 |
[Centos]_고정아이피 설정 하기 (0) | 2019.02.27 |
[Centos]_로그인시 root 직접 접근방지 (0) | 2019.02.27 |