Knowing the IP address of a device is important when troubleshooting network problems, setting up a new connection, or configuring a firewall. Let's take a look at how to check the IP address in Linux! How to check IP address in Linux 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 the following command: ip addr The command execution results are as follows: You can also display the internal IP address using the following command: hostname -I ifconfig To view the public IP address, you can use any of the following commands: dig ANY +short @ resolver2.opendns.com myip.opendns.com dig ANY +short @ resolver2.opendns.com myip.opendns.com dig ANY +short @ ns1-1.akamaitech.net ANY whoami.akamai.net The above are all the relevant knowledge points compiled by the editor of 123WORDPRESS.COM. If you have any supplements, please contact the editor. You may also be interested in:
|
<<: Example of Vue implementing fixed bottom component
>>: MySQL free installation version (zip) installation and configuration detailed tutorial
1. Prerequisites 1. The project has been deployed...
I solved a problem tonight that has been botherin...
1. Big Data and Hadoop To study and learn about b...
1. Add Maria source vi /etc/yum.repos.d/MariaDB.r...
The method to solve the problem of forgetting the...
This article shares with you how to query the sta...
When making a form in a recent project, I need to...
This article shares the specific code of JavaScri...
Table of contents 1. Implement the component time...
When we learn HTML, the image tag <img> int...
Vulnerability Introduction The SigRed vulnerabili...
Overview Nginx can use variables to simplify conf...
This article example shares the specific code of ...
Problem Description Today, when I was modifying t...
Preface When it comes to database transactions, a...