CentOS 7 The command to view network connections

Source: Internet
Author: User
Tags centos

The CentOS 7 system is somewhat different from the previous centos6, so how do you view the network connection in CentOS 7? A friend who needs to know can come and see it with a small weave.

Always use the ifconfig command to view network connections in CentOS, including IP address, MAC address, network connection status, and so on. Upgrade to CentOS 7 after the ifconfig can not find, the original instructions have been discarded, using IP instructions instead. The same thing happened in the minimal version of RHEL 7, Oracle Linux 7, Scientific Linux 7.

In the CentOS 7 minimal system, you can use "IP addr", "IP link" to view network connections and their status, and you can also view statistics using "ip–s link."

If you still want to use ifconfig, you need to install it yourself. First we need to know which package is provided by the IFCONFIG Directive,

Yum provides ifconfig

Or

Yum Whatprovides ifconfig

can query to the corresponding package for Net-tools, install it,

Yum Install Net-tools

Once installed, you can use Ifconfig–a to view the network status.

Of course, this approach also applies to querying for other installation packages that you want to use but cannot find the corresponding instructions.

Will Linode VPS also deployed into the CentOS 7, only to find that Linode on the CentOS 7 has been customized, including the common but in the 7 version of the abandoned instructions, such as ifconfig, Netstat, iptables and so on.

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.