{"id":2579,"date":"2020-01-03T22:48:47","date_gmt":"2020-01-03T13:48:47","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=2579"},"modified":"2023-08-08T20:50:22","modified_gmt":"2023-08-08T11:50:22","slug":"linux%e3%81%ae%e3%83%8d%e3%83%83%e3%83%88%e3%83%af%e3%83%bc%e3%82%af%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%81%ae%e4%bd%bf%e7%94%a8%e6%96%b9%e6%b3%95%ef%bc%88ip%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/2579","title":{"rendered":"Linux\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b\uff01\uff08ip\uff0fss\uff09"},"content":{"rendered":"<p>Linux\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30b3\u30de\u30f3\u30c9\u306f\u3001net-tools\u30d1\u30c3\u30b1\u30fc\u30b8\u304b\u3089iproute2\u306b\u79fb\u884c\u304c\u9032\u3093\u3067\u3044\u307e\u3059\u3002\u672c\u7a3f\u3067\u306f\u3001iproute2\u306eip\u3068ss\u30b3\u30de\u30f3\u30c9\u306e\u4f7f\u7528\u65b9\u6cd5\u3092\u307e\u3068\u3081\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>ip\u30b3\u30de\u30f3\u30c9\u3068ss\u30b3\u30de\u30f3\u30c9\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u8868\u793a<\/h2>\n<p>ip\u30b3\u30de\u30f3\u30c9\u3068ss\u30b3\u30de\u30f3\u30c9\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,3]; title: ; notranslate\" title=\"\">\r\n$ ip -V\r\nip utility, iproute2-ss180129\r\n$ ss -V\r\nss utility, iproute2-ss180129\r\n<\/pre>\n<h2>ip\u30b3\u30de\u30f3\u30c9\u3067\u30a2\u30c9\u30ec\u30b9\u8868\u793a<\/h2>\n<p>ip\u30b3\u30de\u30f3\u30c9\u3067\u30a2\u30c9\u30ec\u30b9\u8868\u793a\u3092\u884c\u3044\u307e\u3059\u300cip address\uff08\u7701\u7565\u5f62\uff1aip a\uff09\u300d\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,2]; title: ; notranslate\" title=\"\">\r\n$ ip a\r\n$ ip address\r\n<\/pre>\n<h2>ip\u30b3\u30de\u30f3\u30c9\u3067\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30c6\u30fc\u30d6\u30eb\u3092\u8868\u793a<\/h2>\n<p>ip\u30b3\u30de\u30f3\u30c9\u3067\u30a2\u30c9\u30ec\u30b9\u8868\u793a\u3092\u884c\u3044\u307e\u3059\u300cip route\uff08\u7701\u7565\u5f62\uff1aip r\uff09\u300d\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,2]; title: ; notranslate\" title=\"\">\r\n$ ip r\r\n$ ip route\r\n<\/pre>\n<p>\u203b\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u30c6\u30fc\u30d6\u30eb\u3078\u306e\u8ffd\u52a0\u3001\u524a\u9664\u306f\u3001\u300cip route add\u300d\u3001\u300cip route del\u300d\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<h2>ip\u30b3\u30de\u30f3\u30c9\u3067ARP\u30c6\u30fc\u30d6\u30eb\u3092\u8868\u793a<\/h2>\n<p>ip\u30b3\u30de\u30f3\u30c9\u3067\u30a2\u30c9\u30ec\u30b9\u8868\u793a\u3092\u884c\u3044\u307e\u3059\u300cip neigh\uff08\u7701\u7565\u5f62\uff1aip n\uff09\u300d\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,2]; title: ; notranslate\" title=\"\">\r\n$ ip n\r\n$ ip neigh\r\n<\/pre>\n<p>\u203bARP\u30c6\u30fc\u30d6\u30eb\u3078\u306e\u8ffd\u52a0\u3001\u524a\u9664\u306f\u3001\u300cip neigh add\u300d\u3001\u300cip neigh del\u300d\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<h2>ss\u30b3\u30de\u30f3\u30c9\u3067\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u63a5\u7d9a\u72b6\u6cc1\u3092\u8868\u793a<\/h2>\n<p>ss\u30b3\u30de\u30f3\u30c9\u3067\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u63a5\u7d9a\u72b6\u6cc1\u3092\u8868\u793a\u3057\u307e\u3059\u3002\u300css\u300d\u306e\u307f\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u7121\u3057\u3067\u5b9f\u884c\u3059\u308b\u3068\u3001unix\u30c9\u30e1\u30a4\u30f3\u30bd\u30b1\u30c3\u30c8\u304c\u5927\u91cf\u306b\u8868\u793a\u3055\u308c\u3066\u898b\u306b\u304f\u3044\u306e\u3067\u3001\u300c-t\u300d\u30aa\u30d7\u30b7\u30e7\u30f3\u3067TCP\u63a5\u7d9a\u306b\u7d5e\u308b\u306a\u3069\u3057\u305f\u307b\u3046\u304c\u3088\u3044\u3067\u3057\u3087\u3046\u3002\u300c-n\u300d\u3092\u4f7f\u7528\u3059\u308b\u3068\u540d\u524d\u89e3\u6c7a\u3092\u884c\u308f\u305a\u306b\u8868\u793a\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ ss -tn\r\n<\/pre>\n<h2>ss\u30b3\u30de\u30f3\u30c9\u3067\u30ea\u30b9\u30cb\u30f3\u30b0\u30dd\u30fc\u30c8\u3092\u8868\u793a<\/h2>\n<p>ss\u30b3\u30de\u30f3\u30c9\u3067\u3001\u300c-l\u300d\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u3001\u30ea\u30b9\u30cb\u30f3\u30b0\u30dd\u30fc\u30c8\u3092\u8868\u793a\u3057\u307e\u3059\u3002\u300c-n\u300d\u3092\u4f7f\u7528\u3059\u308b\u3068\u540d\u524d\u89e3\u6c7a\u3092\u884c\u308f\u305a\u306b\u8868\u793a\u3067\u304d\u307e\u3059\u3002\u300c-4\u300d\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3059\u308b\u3068ipv4\u306b\u7d5e\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30dd\u30fc\u30c8\u3092\u4f7f\u7528\u3059\u308b\u30d7\u30ed\u30bb\u30b9\u3092\u8868\u793a\u3059\u308b\u300c-p\u300d\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u3001root\u6a29\u9650\u3067\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# ss -4tlnp\r\n<\/pre>\n<h2>\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30b3\u30de\u30f3\u30c9\u756a\u5916\u7de8\uff1aping\u30b3\u30de\u30f3\u30c9<\/h2>\n<p>ping\u30b3\u30de\u30f3\u30c9\u306f\u3001\u5f93\u6765\u901a\u308a\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30b3\u30de\u30f3\u30c9\u756a\u5916\u7de8\uff1atraceroute\u30b3\u30de\u30f3\u30c9<\/h2>\n<p>Ubuntu 18.04 LTS\u3067\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067traceroute\u30b3\u30de\u30f3\u30c9\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ traceroute\r\n\r\nCommand 'traceroute' not found, but can be installed with:\r\n\r\nsudo apt install inetutils-traceroute\r\nsudo apt install traceroute\r\n\r\n<\/pre>\n<p>\u3069\u3061\u3089\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u304b\u8ff7\u3046\u3068\u3053\u308d\u3067\u3059\u304c\u3001Linux\u3067\u306e\u4f7f\u7528\u306a\u3089\u3070\u3001traceroute\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u65b9\u304c\u6a5f\u80fd\u304c\u591a\u304f\u4fbf\u5229\u306a\u3088\u3046\u3067\u3059\u3002\u300cinetutils-traceroute\u300d\u306f\u3001GNU\u7248\u3068\u306e\u3053\u3068\u3067\u3053\u3061\u3089\u3067\u3082\u554f\u984c\u306a\u3044\u3067\u3059\u304c\u3001\u4e21\u65b9\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u72b6\u614b\u3067\u300ctraceroute\u300d\u3068\u6253\u3064\u3068\u3001\u79c1\u306e\u74b0\u5883\u3067\u306fGNU\u7248\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002\u3069\u3061\u3089\u304b\u306e\u307f\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u307b\u3046\u304c\u5206\u304b\u308a\u3084\u3059\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>Linux\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u74b0\u5883\u306f\u3001\u65e5\u3005\u9032\u6b69\u3092\u91cd\u306d\u3066\u3044\u308b\u3088\u3046\u306a\u306e\u3067\u3001net-tools\u30d1\u30c3\u30b1\u30fc\u30b8\u304b\u3089iproute2\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30b3\u30de\u30f3\u30c9\u306b\u79fb\u884c\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>\u95a2\u9023\u8a18\u4e8b<\/h2>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/8881\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Linux\u306e\u30b7\u30b9\u30c6\u30e0\u306e\u7a3c\u50cd\u72b6\u6cc1\u3092\u78ba\u8a8d\u3059\u308b\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2021\/02\/fi_linux_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Linux\u306e\u30b7\u30b9\u30c6\u30e0\u306e\u7a3c\u50cd\u72b6\u6cc1\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/div><div class=\"substr\">Linux\u306e\u30b7\u30b9\u30c6\u30e0\u306e\u7a3c\u50cd\u72b6\u6cc1\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3067\u3059\u3002...<\/div><\/a><\/div>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/7679\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Linux\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2021\/02\/fi_linux_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Linux\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01<\/div><div class=\"substr\">Linux\u3092\u4f7f\u3044\u3053\u306a\u3059\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<h2>\u95a2\u9023\u66f8\u7c4d\uff08Amazon\uff09<\/h2>\n<p><a href=\"https:\/\/amzn.to\/3H5qkUu\" rel=\"noopener\" target=\"_blank\"><img decoding=\"async\" class=\"paapi5-pa-product-image-source lazyload\" data-src=\"https:\/\/m.media-amazon.com\/images\/I\/51ZPkoBGdZL._SL160_.jpg\" alt=\"N\/A\"><\/a><\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30b3\u30de\u30f3\u30c9\u306f\u3001net-tools\u30d1\u30c3\u30b1\u30fc\u30b8\u304b\u3089iproute2\u306b\u79fb\u884c\u304c\u9032\u3093\u3067\u3044\u307e\u3059\u3002\u672c\u7a3f\u3067\u306f\u3001iproute2\u306eip\u3068ss\u30b3\u30de\u30f3\u30c9\u306e\u4f7f\u7528\u65b9\u6cd5\u3092\u307e\u3068\u3081\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":5527,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[193],"tags":[504,112,282,505,25,309],"class_list":["post-2579","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-monitoring-linux-basics","tag-ip","tag-iproute2","tag-linux","tag-ss","tag-25","tag-309"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/2579","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/comments?post=2579"}],"version-history":[{"count":2,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/2579\/revisions"}],"predecessor-version":[{"id":13614,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/2579\/revisions\/13614"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media\/5527"}],"wp:attachment":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media?parent=2579"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=2579"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=2579"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}