How to display interface network in CentOS 7 via command line

Posted on

An operating system which is specifically installed with only a Command Line Interface provided will have certain way to perform specific function. One of the specific function which can be performed is as specified in the title of this article. It is about how to display interface network via command line. Basically, the command has already been tested and executed in CentOS 7. Generally speaking, it is actually can be available in every Linux operating system depends on the context of the package whether or whether not is provided by the package management system on the Linux distribution.

It is very useful when there is a further purpose for configuring network interface. Supposed executing a command such as ‘nmtui’. Below is the display of the command executed which is actually display image as shown below :

How to display interface network in CentOS 7 via command line

By executing or selecting the option of Edit a connection, the following image will be shown :

How to display interface network in CentOS 7 via command line

Basically, for each of the ethernet listed above, there is no way to know precisely which network interface which has the name of ethernet listed in the above. The way to do it is just for editing each of the ethernet name as shown in the following image display :

So, editing the ethernet will be showing he device name which in the above image is ‘enp0s8’. Another way for doing it, just typing the command in the command line to display ‘nmcli d’ which is actually a command for controlling NetworkManager. The following is the actual display for executing the command as shown below :

As shown in the above output of the command executed, every device recognized in the operating system will be presented along with the connection name. So, based on the name of the connection, it can be easily chose based on the network interface associated so that it can be further configured by assigning IP Address and other network connection attributes.

Leave a Reply