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
Table of contents How to flatten an array 1. Usin...
Table of contents Preface How to encapsulate a To...
Table of contents 1. What is SVN 2. Svn server an...
Download and install JDK Step 1: First download t...
First of all, what is a font icon? On the surface...
This article shares the specific method of instal...
The previous article on Docker mentioned the cons...
Table of contents 1. Reverse the numbers 2. Get t...
In the front-end layout of the form, we often nee...
1. Go to the GraphVis official website to downloa...
Sometimes we want to execute a command in a conta...
This article mainly introduces how some content i...
Pre-installation work: Make sure vmware workstati...
1. Introduction to compression and packaging Comm...
This article shares the specific code of js to ac...