Centos 7 does not have the ifconfig command, centosifconfig

Source: Internet
Author: User

Centos 7 does not have the ifconfig command, centosifconfig

Centos 7 does not have the ifconfig command:

Installation command: yum install net-tools


Why does centos input ifconfig saying that this command is not available?

First, normal users do not have the permission to execute this command. If you have to execute this command, the search path of the executable file of the current user is incorrect. First, locate ifconfig to check the location of the command. it should be in/sbin/ipconfig, and then use echo $ PATH to check whether your current user's PATH contains the/sbin PATH. If it is not in ~ /. Add/sbin after PATH = $ PATH: $ HOME/bin in bash_profile ~ To use the command: source. bash_profile

In centos63, The ifconfig-a command is used to display three items: l0, p1p1, wlan0, and eth0.

Check whether the NAME in/etc/udev/rules. d/70-persistent-cd.rules is written in p1p1.
Change to eth0, delete the physical address in/etc/sysconfig/network-scripts/ifc-eth0, and restart the machine.

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.