View network connection commands in CentOS 7

Source: Internet
Author: User
Tags centos

Always use the ifconfig command to view network connections in CentOS, including IP addresses, MAC addresses, and network connection status. After upgrading to CentOS 7, ifconfig cannot be found. Previously, this command has been deprecated and switched to the ip address command. The same thing happened in RHEL 7, Oracle Linux 7, and Scientific Linux 7 minimal versions.

In CentOS 7 minimal system, you can use "ip addr" and "ip link" to view network connections and their statuses, and use "ip-s link" to view statistics.

If you still want to use ifconfig, you need to install it yourself. First, you must know which package provides the ifconfig command,

Yum provides ifconfig

Or,

Yum whatprovides ifconfig

You can find the corresponding software package net-tools and install it,

Yum install net-tools

After installation, you can use ifconfig-a to view the network status.

Of course, this method can also be used to query other installation packages that want to use but cannot find the corresponding commands.

After deploying Linode VPS to CentOS 7, we found that CentOS 7 on Linode has been customized and contains commonly used commands that have been discarded in version 7, such as ifconfig, netstat, and iptables.

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.