# linux 7 최소 설치 후 network 확인 방법 #

linux 7 을 최소 설치 하게되면 이런저런 tool 이 설치되지 않아 불편한 점이 많다

우선 기존에 먹히던 ‘ifconfig’ 로 network 를 확인 할 수 없습니다.

 

ifconfig

-bash: ifconfig: command not found

그럴땐 다른 명령어로 우선 network 를 확인한다

——————————————————————————–

[root@localhost ~]# ip addr list

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 

    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00

    inet 127.0.0.1/8 scope host lo

       valid_lft forever preferred_lft forever

    inet6 ::1/128 scope host 

       valid_lft forever preferred_lft forever

2: eno16777736: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000

    link/ether 00:0c:29:7a:a1:27 brd ff:ff:ff:ff:ff:ff

    inet 192.168.0.149/24 brd 192.168.0.255 scope global eno16777736

       valid_lft forever preferred_lft forever

    inet6 fe80::20c:29ff:fe7a:a127/64 scope link 

       valid_lft forever preferred_lft forever

——————————————————————————–

그리고 yum install 로 net-tools 를 설치해 줘야 합니다.

——————————————————————————–

[root@localhost ~]# yum install -y net-tools

Loaded plugins: fastestmirror

base                                                                                                          | 3.6 kB  00:00:00     

extras                                                                                                        | 3.4 kB  00:00:00     

updates                                                                                                       | 3.4 kB  00:00:00     

(1/4): base/7/x86_64/group_gz                                                                                 | 156 kB  00:00:00     

(2/4): extras/7/x86_64/primary_db                                                                             | 130 kB  00:00:00     

(3/4): updates/7/x86_64/primary_db                                                                            | 4.5 MB  00:01:12     

(4/4): base/7/x86_64/primary_db                                                                               | 5.7 MB  00:01:22     

Determining fastest mirrors

 * 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.22.20131004git.el7 will be installed

–> Finished Dependency Resolution

 

Dependencies Resolved

 

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

 Package                      Arch                      Version                                        Repository               Size

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

Installing:

 net-tools                    x86_64                    2.0-0.22.20131004git.el7                       base                    305 k

 

Transaction Summary

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

Install  1 Package

 

Total download size: 305 k

Installed size: 917 k

Downloading packages:

경고: /var/cache/yum/x86_64/7/base/packages/net-tools-2.0-0.22.20131004git.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY

Public key for net-tools-2.0-0.22.20131004git.el7.x86_64.rpm is not installed

net-tools-2.0-0.22.20131004git.el7.x86_64.rpm                                                                 | 305 kB  00:00:00     

Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

Importing GPG key 0xF4A80EB5:

 Userid     : “CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>”

 Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5

 Package    : centos-release-7-2.1511.el7.centos.2.10.x86_64 (@anaconda)

 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

Running transaction check

Running transaction test

Transaction test succeeded

Running transaction

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

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

 

Installed:

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

 

Complete!

——————————————————————————–

설치 완료.

이제 ifconfig 로 확인이 가능하다.

——————————————————————————–

[root@localhost ~]# ifconfig

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

        inet 192.168.0.149  netmask 255.255.255.0  broadcast 192.168.0.255

        inet6 fe80::20c:29ff:fe7a:a127  prefixlen 64  scopeid 0x20<link>

        ether 00:0c:29:7a:a1:27  txqueuelen 1000  (Ethernet)

        RX packets 9823  bytes 12098215 (11.5 MiB)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 5988  bytes 492475 (480.9 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 0  (Local Loopback)

        RX packets 16  bytes 1376 (1.3 KiB)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 16  bytes 1376 (1.3 KiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

——————————————————————————–

확인결과 linux 7.4 부터는 최소설치를 해도 net-tools 를 설치하지 않아도 ifconfig 로 ip 확인이 가능하다.

 

다음엔 network 설정방법에 대해 포스팅 하겠습니다.  아래 클릭 !!

http://www.pigletstory.co.kr/524

Leave a Comment