Ifconfig:command not found (CentOS Special Edition, others can be consulted)

Source: Internet
Author: User

Ifconfig:command not found

View path configuration (Echo is equivalent to Console.WriteLine in printf,c# in C)

Solution 1: First look at whether the root user, if not on the SU switch to the root user

Su

Solution 2:(if you don't see/sbin) "We're obviously not the problem."

This is generally because the configuration is not ready, permanent solution:

Open a/etc/profile file where you'll enter Export path= $PATH:/sbin

Solution 3:(CentOS later changed orders, see if we are "Ipconfig==>ip")

Find name (name) in/(root directory) is Ifconfig

That means ipconfig really changed, calm down.

Look at the information

IP addr

Found the wood has (see 2:eth0 no IPv4)

Jump to/etc/sysconfig/network-scripts Directory

Cd/etc/sysconfig/network-scripts

Use VI to open the Ifcfg-eth0 (your may be eth1, or other, not every computer is this) "If you want to change this can refer to: http://jingyan.baidu.com/article/7f41ecec1b022e593d095c1e.html"

Press i to enter edit mode, modify the arrows, and press ESC to return to command mode, type : Wq and return

Reboot

Reboot

Enter after login with root user

IP addr

Success!!

Solution 4: (Network)

Http://blog.sina.com.cn/s/blog_946cb2b70100wx2j.html

Yum Install Setuptool installs setup, but only authentication configuration is available after installation using Run Setup.

If you want to configure IP, install system-config-network-tui .

Yum Install System-config-firewall-tui installs the graphical firewall configuration tool.

Yum List system-config* all installed.

Ifconfig:command not found (CentOS Special Edition, others can be consulted)

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.