Linux --- ifconfig and --- centos7ifconfig in centos7

Source: Internet
Author: User

Linux --- ifconfig and --- centos7ifconfig in centos7

Ifconfig in centos7

Try to install centos7 at least today. After installation is complete, check the Network Configuration:

Ifconfig command is displayed

-Bash: ifconfig: command not found
Solution: Check whether ifconfig is installed.
First, check whether/sbin/ifconfig exists.
1. If so, view the environment variable settings:
Echo $ PATH
If the environment variable does not contain the path of the ifconfig command:
1) temporarily modify environment variables:
Export PATH = $ PATH:/sbin
If shell is disabled, the environment variable settings disappear.
2) Change environment variables permanently:
Open the/etc/profile file, enter export PATH = $ PATH:/sbin, save and restart.
Or create a new ifconfig. sh script file under the/etc/profile. d/directory. The file content is:
Export PATH = $ PATH:/sbin save and restart.
2. If it does not exist:
Yum upgradeyum install net-tools





Related Article

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.