본문 바로가기
centos 7

최초 설치시 ifconfig command not found 에러시

by ohrohi 2016. 9. 7.
반응형

방법 1. ip addr 사용


#ip addr


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: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000

    link/ether de:ad:be:e2:89:91 brd ff:ff:ff:ff:ff:ff

    inet 115.68.24.107/24 brd 115.68.24.255 scope global eth0

       valid_lft forever preferred_lft forever

    inet6 fe80::dcad:beff:fee2:8991/64 scope link 

       valid_lft forever preferred_lft forever


방법2. net-tools 설치


yum 으로 net-tools  설치하면 ifconfig  명령어가 먹힌다.

반응형