Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to check IP under Linux

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to check IP under Linux. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

Method 4: use the Ubantu (Ubantu) interface

* * right-click the network icon in the notification area. * * in most Ubuntu systems, this icon appears to be made up of two vertical arrows, one facing up and the other facing down. Most of the network buttons are located next to the date and time.

If the network icon is not displayed, you can right-click the notification bar, select "add to Panel", and then select "Network Manager" to add the icon. If you still can't display the network icon, go to system > Administration > Network tools, and then select your network device (usually the "eth0" port) from the drop-down menu. Next, the 10-digit number displayed is the IP address you want to view.

* * Click the network connection information. * * this opens a new window showing the details of the network connection, including the IP address.

Method 2, 4: enter terminal commands in most Linux systems

* * Open the terminal program. * * you can find the terminal in the list of applications, or you can type "terminal" to search.

* * enter the following command: ip addr show. * * the terminal then returns the details of each connected network device.

The IP address of each device is located after the "inet" character.

If you're not sure which device it is, you can check out the most commonly used device that connects to the "eth0" port, which is the first network adapter identified by the system. If you only want to see the "eth0" information, please enter the ip addr show eth0 command. Method 4: enter terminal commands in Unix, Unixish, and some Linux versions

* * Open the terminal. * * you can find it in the list of programs, or search for "terminal" directly.

* * enter command: / sbin/ifconfig. * * large pieces of network information will be displayed in the terminal.

If there is an error message indicating that you lack administrative privileges, please enter sudo / sbin/ifconfig. If you are using a Solaris system or other Unix version, you need to enter * * / sbin/ifconfig-aversions * to display information about multiple devices. If a message appears indicating that the command is invalid, you can refer to the instructions above for entering terminal commands in the latest version of Linux.

After "inet adr", find the IP address of each device listed.

If there is too much information for you to find the IP address, you can enter * * / sbin/ifconfig | less to reduce the amount of information displayed, or type / sbin/ifconfig | grep 'inet addr:'** to display only the IP address. If you are not sure which device you are looking for, the device you are looking for is most likely connected to the port "eth0", the first recognizable local connection. To display only the information for the "eth0" port, enter the command / sbin/ifconfig eth0. Method 4: other terminal commands (Ubuntu, Unix and Linux systems)

Open the terminal.

Enter the following command: hostname-I (capital I, the initials of Idaho in Idaho).

If you have an active single interface, you can see an IP address (without any other characters) in the interface. As follows:

% hostname-I192.168.1.20 this is the end of the article on "how to check IP under Linux". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report