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 address with command in linux

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

Share

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

First of all, the more commonly used command is ip a s. Execute ip a s on the command line to output all the network card information, including the virtual network card.

If there are more network cards, we should judge based on experience. That is the network card ip you want. I have four network cards here, usually en0, and I have em4 here. Check the inet inside is the ip address.

In fact, the ip address of each network card is its own local ip, and only the ip of the same network segment can access each other. The ip a s command is abbreviated, and the full name is ip addr show, which is equivalent to ip a s.

If the last command is executed, the prompt can not find the command, there is no hurry, there are many commands below you can check ip, here is the execution / sbin/ifconfig, you can output ip

The output is similar to the previous command, but this Nic has blank line isolation.

This command can also be abbreviated, and you can execute ifconfig directly, because if you put it in the sbin directory, you don't have to enter the full path.

These are the details of what is the command to check the ip address in linux. 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