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 Cross-domain reasons JSONP Ngin...
1. Introduction When a web project is published o...
This article shares with you the graphic tutorial...
This article does not introduce anything related ...
Table of contents Single Node Diff reconcileSingl...
Table of contents Scenario Analysis Development S...
This article shares the specific code of js to ac...
Table of contents Overview Blob Blob in Action Bl...
This article shares the specific code of js to re...
Table of contents background CommonsChunkPlugin s...
This article uses examples to describe advanced u...
sudo configuration file The default configuration...
Method 1: Using the onclick event <input type=...
Table of contents 1. Arithmetic operators 2. Comp...
By default, the width and height of the table are...