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

The method of checking ip address by linux

2025-03-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

IP addresses can be divided into two categories, public and internal. The public IP is the only IP address that can be accessed from Internet. Internal IP addresses are reserved for internal use in your private network and are not directly exposed to Internet. In addition, there are two types of IP addresses, IP version 4 (IPv4) and IP version 6 (IPv6).

In linux, you can determine the internal IP address of the system by querying the network stack using the command, such as ip, ifconfig, or hostname.

In Linux, the standard command for displaying and configuring network interfaces is ip.

To display a list of all network interfaces and associated IP addresses, type:

Ip addr

The output is shown below. The internal IP address is highlighted.

You can also display the internal IP address using the following command:

Hostname-I

Ifconfig

These are the details of how linux views ip addresses. Please pay attention to other related articles for more information.

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

Servers

Wechat

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

12
Report