﻿{"id":450,"date":"2023-10-20T21:46:10","date_gmt":"2023-10-20T13:46:10","guid":{"rendered":"https:\/\/blog.yyspark.com\/?p=450"},"modified":"2023-10-20T21:48:40","modified_gmt":"2023-10-20T13:48:40","slug":"%e6%9f%a5%e7%9c%8bdocker%e5%ae%bf%e4%b8%bb%e6%9c%ba%e7%9a%84ip%e5%92%8c%e5%ae%b9%e5%99%a8%e7%9a%84ip","status":"publish","type":"post","link":"https:\/\/airlive.online\/index.php\/2023\/10\/20\/%e6%9f%a5%e7%9c%8bdocker%e5%ae%bf%e4%b8%bb%e6%9c%ba%e7%9a%84ip%e5%92%8c%e5%ae%b9%e5%99%a8%e7%9a%84ip\/","title":{"rendered":"\u67e5\u770bDocker\u5bbf\u4e3b\u673a\u7684IP\u548c\u5bb9\u5668\u7684IP"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>ip addr<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>route -n<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Last login: Fri Oct 20 21:41:53 2023 from localhost\n&#91;root@centos ~]# <strong>ip addr<\/strong>\n1: lo: &lt;LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default \n    link\/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00\n    inet 127.0.0.1\/8 scope host lo\n       valid_lft forever preferred_lft forever\n2: sit0: &lt;NOARP> mtu 1480 qdisc noop state DOWN group default \n    link\/sit 0.0.0.0 brd 0.0.0.0\n5: eth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default \n    link\/ether 02:42:ac:11:00:02 brd ff:ff:ff:ff:ff:ff\n    inet <strong>172.17.0.2<\/strong>\/16 brd 172.17.255.255 <strong>scope global eth0<\/strong>\n       valid_lft forever preferred_lft forever\n\n&#91;root@centos ~]# <strong>route -n<\/strong>\nKernel IP routing table\nDestination     <strong>Gateway<\/strong>         Genmask         Flags Metric Ref    Use Iface\n0.0.0.0         <strong>172.17.0.1<\/strong>      0.0.0.0         UG    0      0        0 eth0\n172.17.0.0      0.0.0.0         255.255.0.0     U     0      0        0 eth0\n&#91;root@centos ~]# <\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>ip addr route -n<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-450","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/airlive.online\/index.php\/wp-json\/wp\/v2\/posts\/450","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/airlive.online\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/airlive.online\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/airlive.online\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/airlive.online\/index.php\/wp-json\/wp\/v2\/comments?post=450"}],"version-history":[{"count":3,"href":"https:\/\/airlive.online\/index.php\/wp-json\/wp\/v2\/posts\/450\/revisions"}],"predecessor-version":[{"id":453,"href":"https:\/\/airlive.online\/index.php\/wp-json\/wp\/v2\/posts\/450\/revisions\/453"}],"wp:attachment":[{"href":"https:\/\/airlive.online\/index.php\/wp-json\/wp\/v2\/media?parent=450"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/airlive.online\/index.php\/wp-json\/wp\/v2\/categories?post=450"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/airlive.online\/index.php\/wp-json\/wp\/v2\/tags?post=450"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}