{"id":516,"date":"2015-11-06T14:21:13","date_gmt":"2015-11-06T08:21:13","guid":{"rendered":"http:\/\/hasibul.info\/blog\/?p=516"},"modified":"2015-11-06T14:21:13","modified_gmt":"2015-11-06T08:21:13","slug":"how-to-find-the-ip-addresses-of-a-linux-system","status":"publish","type":"post","link":"https:\/\/hasibul.info\/blog\/2015\/11\/06\/how-to-find-the-ip-addresses-of-a-linux-system\/","title":{"rendered":"How to find the IP addresses of a Linux system"},"content":{"rendered":"<p>The following command in a linux based system will show all the IPs assigned to that system:<br \/>\n<code># ip addr show<\/code><\/p>\n<p>Or alternatively, if you&#8217;d like to know the IP address(es) of a certain port (for example eth0) type the following:<br \/>\n<code># ip addr show eth0<\/code><\/p>\n<p>Sample output:<br \/>\n<code>eth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state UP qlen 1000<br \/>\nlink\/ether 00:30:67:b4:b7:4d brd ff:ff:ff:ff:ff:ff<br \/>\ninet 72.144.122.10\/29 brd 72.144.122.15 scope global eth0<br \/>\ninet6 ef80::120:67ef:deb4:f74e\/64 scope link<br \/>\nvalid_lft forever preferred_lft forever<\/code><\/p>\n<p>The IPv4 assigned to the system are: 72.144.122.10\/29 \u00a0(72.144.122.10 &#8211;\u00a072.144.122.15 = 6 IPs)<br \/>\nThe IPv6 assigned to the system are: ef80::120:67ef:deb4:f74e\/64<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The following command in a linux based system will show all the IPs assigned to that system: # ip addr show Or alternatively, if you'd like to know the IP address(es) of a certain port (for example eth0) type the following: # ip addr show eth0 Sample output: eth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state&hellip;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[13,18,6,12],"tags":[96,122,95],"how-to":[],"_links":{"self":[{"href":"https:\/\/hasibul.info\/blog\/wp-json\/wp\/v2\/posts\/516"}],"collection":[{"href":"https:\/\/hasibul.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hasibul.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hasibul.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hasibul.info\/blog\/wp-json\/wp\/v2\/comments?post=516"}],"version-history":[{"count":0,"href":"https:\/\/hasibul.info\/blog\/wp-json\/wp\/v2\/posts\/516\/revisions"}],"wp:attachment":[{"href":"https:\/\/hasibul.info\/blog\/wp-json\/wp\/v2\/media?parent=516"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hasibul.info\/blog\/wp-json\/wp\/v2\/categories?post=516"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hasibul.info\/blog\/wp-json\/wp\/v2\/tags?post=516"},{"taxonomy":"how-to","embeddable":true,"href":"https:\/\/hasibul.info\/blog\/wp-json\/wp\/v2\/how-to?post=516"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}