CentOS7 Execution ifconfig Command not found no commands found

Source: Internet
Author: User

CentOS7 just released, I couldn't help upgrading the Dell T410 from CentOS6 to CentOS7. Finally, when the installation is complete, configure the network immediately, then install the environment on the Yum source. But the system prompts me to be silly when performing ifconfig:
[Root@chaoge ~]# Ifconfig
-bash:ifconfig: Command not found
This is a newly installed system, how can not find familiar ifconfig command? Online search, a lot of people are said to be environmental variables, but I am sure my/etc/profile set is right, so finally found an article that is installed under the Net-tools good

The code is as follows Copy Code
[Root@chaoge ~]# Yum Install Net-tools

Loaded plugins: Fastestmirror

The code is as follows Copy Code
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository Extras is listed more than once in the configuration
Repository Centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
base                                                                                                                                                                                                     | 3.6 kb  00:00:00    
extras                                                                                                                                                                                                   | 3.3 kb  00:00:00    
updates                                                                                                                                                                                                 | 3.4 kb  00:00:00    
updates/7/x86_64/primary_db                                                                                                                                                                             | 2.8 mb  00:00:08    
Determining fastest Mirrors

Package net-tools-2.0-0.17.20131004git.el7.x86_64 has been installed and is the latest version
No processing required
Because I have installed net-tools so prompt I have installed, now the familiar ifconfig is back again

The code is as follows Copy Code

[Root@chaoge ~]# Ifconfig
Em2:flags=4099<up,broadcast,multicast> MTU 1500
Ether 78:2b:cb:41:9a:03 Txqueuelen 1000 (Ethernet)
RX Packets 0 Bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX Packets 0 Bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

eth0:flags=4163<up,broadcast,running,multicast>  MTU 1500
         inet 192.168.1.48  netmask 255.255.255.0  broadcast 192.168.1.255
         inet6 fe80::7a2b:cbff:fe41:9a02  prefixlen 64  scopeid 0x20<link>
         ether 78:2b:cb:41:9a:02  txqueuelen 1000  (Ethernet)
         Rx Packets 82668  bytes 7831470 (7.4 MiB)
        Rx Errors 0  dropped 153388  overruns 0  frame 0
        TX packets 12 76  bytes 204913 (200.1 KiB)
        TX errors 0  dropped 0 overruns 0&NB Sp 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 0  (local loopback
        RX packets 12  Bytes 1071 (1.0 KiB)
    & nbsp;   RX Errors 0  dropped 0  overruns frame 0
0  nbsp TX packets 12  Bytes 1071 (1.0 KiB)
        TX errors 0  dropped 0 overru NS 0  carrier 0  collisions 0
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.