The CENTOS7 of the---of Linux learning article ifconfig

Source: Internet
Author: User

The ifconfig in Centos7

Today to minimize the installation of CENTOS7, installation completed, want to check the network configuration:

Ifconfig command after display

-bash:ifconfig:command not found
Solution: Determine if Ifconfig is installed
First see if/sbin/ifconfig exists
1. If present, check the environment variable settings:
Echo $PATH
If the environment variable does not contain the path where the Ifconfig command is located:
1) temporarily modify environment variables:
Export PATH = $PATH:/sbin
The environment variable setting disappears when the shell is closed.
2) Change the environment variables permanently:
Open a./etc/profile file, where you enter Export path= $PATH:/sbin, save and restart.
Or, under the/etc/profile.d/directory, create a new ifconfig.sh script file with the following file contents:
Export path= $PATH:/sbin Save and restart.
2. If it does not exist:
Yum Upgradeyum Install Net-tools





The CENTOS7 of the---of Linux learning article ifconfig

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.