{"id":13638,"date":"2023-08-09T06:35:01","date_gmt":"2023-08-08T21:35:01","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=13638"},"modified":"2023-08-09T06:39:50","modified_gmt":"2023-08-08T21:39:50","slug":"linux%e3%81%a7ip%e3%82%a2%e3%83%89%e3%83%ac%e3%82%b9%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%99%e3%82%8b%ef%bc%81%ef%bc%88nmcui%ef%bc%89","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/13638","title":{"rendered":"Linux\u3067IP\u30a2\u30c9\u30ec\u30b9\u3092\u8a2d\u5b9a\u3059\u308b\uff01\uff08nmcui\uff09"},"content":{"rendered":"<p>Linux\u3067\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067nmcui\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001IP\u30a2\u30c9\u30ec\u30b9\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>nmcui\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\uff01<\/h2>\n<p>nmcui\u30b3\u30de\u30f3\u30c9\u3092\u5f15\u6570\u306a\u3057\u3067\u5b9f\u884c\u3057\u3066\u307f\u307e\u3059\u3002\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30b9\u306b\u8a2d\u5b9a\u3055\u308c\u305fIP\u30a2\u30c9\u30ec\u30b9\u306e\u60c5\u5831\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# nmcli\r\nenp0s3: connected to enp0s3\r\n        &quot;Intel 82540EM&quot;\r\n        ethernet (e1000), 08:00:27:4F:21:9F, hw, mtu 1500\r\n        ip4 default\r\n        inet4 10.1.12.11\/16\r\n        route4 10.1.0.0\/16 metric 100\r\n        route4 default via 10.1.0.1 metric 100\r\n\r\nlo: unmanaged\r\n        &quot;lo&quot;\r\n        loopback (unknown), 00:00:00:00:00:00, sw, mtu 65536\r\n\r\nDNS configuration:\r\n        servers: 10.1.20.1 10.1.20.2 10.1.0.1\r\n        domains: loc.lab4ict.com\r\n        interface: enp0s3\r\n\r\nUse &quot;nmcli device show&quot; to get complete information about known devices and\r\n&quot;nmcli connection show&quot; to get an overview on active connection profiles.\r\n\r\nConsult nmcli(1) and nmcli-examples(7) manual pages for complete usage details.\r\n<\/pre>\n<h2>nmcui\u30b3\u30de\u30f3\u30c9\u306e\u30d8\u30eb\u30d7\u3092\u8868\u793a\u3059\u308b\uff01<\/h2>\n<p>nmcui\u30b3\u30de\u30f3\u30c9\u306e\u30d8\u30eb\u30d7\u3092\u8868\u793a\u3057\u307e\u3059\u3002IP\u30a2\u30c9\u30ec\u30b9\u3092\u8a2d\u5b9a\u3059\u308b\u306e\u306f\u3001c[necction]\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# nmcli --help\r\nUsage: nmcli &#x5B;OPTIONS] OBJECT { COMMAND | help }\r\n\r\nOPTIONS\r\n  -a, --ask                                ask for missing parameters\r\n  -c, --colors auto|yes|no                 whether to use colors in output\r\n  -e, --escape yes|no                      escape columns separators in values\r\n  -f, --fields &lt;field,...&gt;|all|common      specify fields to output\r\n  -g, --get-values &lt;field,...&gt;|all|common  shortcut for -m tabular -t -f\r\n  -h, --help                               print this help\r\n  -m, --mode tabular|multiline             output mode\r\n  -o, --overview                           overview mode\r\n  -p, --pretty                             pretty output\r\n  -s, --show-secrets                       allow displaying passwords\r\n  -t, --terse                              terse output\r\n  -v, --version                            show program version\r\n  -w, --wait &lt;seconds&gt;                     set timeout waiting for finishing operations\r\n\r\nOBJECT\r\n  g&#x5B;eneral]       NetworkManager's general status and operations\r\n  n&#x5B;etworking]    overall networking control\r\n  r&#x5B;adio]         NetworkManager radio switches\r\n  c&#x5B;onnection]    NetworkManager's connections\r\n  d&#x5B;evice]        devices managed by NetworkManager\r\n  a&#x5B;gent]         NetworkManager secret agent or polkit agent\r\n  m&#x5B;onitor]       monitor NetworkManager changes\r\n<\/pre>\n<h2>\u64cd\u4f5c\u3067\u304d\u308b\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u72b6\u614b\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>\u64cd\u4f5c\u3067\u304d\u308b\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u72b6\u614b\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# nmcli c\r\nNAME    UUID                                  TYPE      DEVICE \r\nenp0s3  d1009707-ed0f-428f-a136-e2146259c6e3  ethernet  enp0s3 \r\n<\/pre>\n<p>\u3055\u3089\u306b\u30d8\u30eb\u30d7\u3092\u8868\u793a\u3057\u307e\u3059\u3002IP\u30a2\u30c9\u30ec\u30b9\u3092\u8a2d\u5b9a\u3059\u308b\u305f\u3081\u306b\u306f\u3001m[odify]\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n# nmcli c --help<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\nUsage: nmcli connection { COMMAND | help }\r\n\r\nCOMMAND := { show | up | down | add | modify | clone | edit | delete | monitor | reload | load | import | export }\r\n\r\n  show &#x5B;--active] &#x5B;--order &lt;order spec&gt;]\r\n  show &#x5B;--active] &#x5B;id | uuid | path | apath] &lt;ID&gt; ...\r\n\r\n  up &#x5B;&#x5B;id | uuid | path] &lt;ID&gt;] &#x5B;ifname &lt;ifname&gt;] &#x5B;ap &lt;BSSID&gt;] &#x5B;passwd-file &lt;file with passwords&gt;]\r\n\r\n  down &#x5B;id | uuid | path | apath] &lt;ID&gt; ...\r\n\r\n  add COMMON_OPTIONS TYPE_SPECIFIC_OPTIONS SLAVE_OPTIONS IP_OPTIONS &#x5B;-- (&#x5B;+|-]&lt;setting&gt;.&lt;property&gt; &lt;value&gt;)+]\r\n\r\n  modify &#x5B;--temporary] &#x5B;id | uuid | path] &lt;ID&gt; (&#x5B;+|-]&lt;setting&gt;.&lt;property&gt; &lt;value&gt;)+\r\n\r\n  clone &#x5B;--temporary] &#x5B;id | uuid | path ] &lt;ID&gt; &lt;new name&gt;\r\n\r\n  edit &#x5B;id | uuid | path] &lt;ID&gt;\r\n  edit &#x5B;type &lt;new_con_type&gt;] &#x5B;con-name &lt;new_con_name&gt;]\r\n\r\n  delete &#x5B;id | uuid | path] &lt;ID&gt;\r\n\r\n  monitor &#x5B;id | uuid | path] &lt;ID&gt; ...\r\n\r\n  reload\r\n\r\n  load &lt;filename&gt; &#x5B; &lt;filename&gt;... ]\r\n\r\n  import &#x5B;--temporary] type &lt;type&gt; file &lt;file to import&gt;\r\n\r\n  export &#x5B;id | uuid | path] &lt;ID&gt; &#x5B;&lt;output file&gt;]\r\n<\/pre>\n<p>IP\u30a2\u30c9\u30ec\u30b9\u3092\u8a2d\u5b9a\u3059\u308b\u305f\u3081\u306e\u30b5\u30f3\u30d7\u30eb\u306e\u30b3\u30de\u30f3\u30c9\u3082\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br \/>\n# nmcli c m --help<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\nUsage: nmcli connection modify { ARGUMENTS | help }\r\n\r\nARGUMENTS := &#x5B;id | uuid | path] &lt;ID&gt; (&#x5B;+|-]&lt;setting&gt;.&lt;property&gt; &lt;value&gt;)+\r\n\r\nModify one or more properties of the connection profile.\r\nThe profile is identified by its name, UUID or D-Bus path. For multi-valued\r\nproperties you can use optional '+' or '-' prefix to the property name.\r\nThe '+' sign allows appending items instead of overwriting the whole value.\r\nThe '-' sign allows removing selected items instead of the whole value.\r\n\r\nARGUMENTS := remove &lt;setting&gt;\r\n\r\nRemove a setting from the connection profile.\r\n\r\nExamples:\r\nnmcli con mod home-wifi wifi.ssid rakosnicek\r\nnmcli con mod em1-1 ipv4.method manual ipv4.addr &quot;192.168.1.2\/24, 10.10.1.5\/8&quot;\r\nnmcli con mod em1-1 +ipv4.dns 8.8.4.4\r\nnmcli con mod em1-1 -ipv4.dns 1\r\nnmcli con mod em1-1 -ipv6.addr &quot;abbe::cafe\/56&quot;\r\nnmcli con mod bond0 +bond.options mii=500\r\nnmcli con mod bond0 -bond.options downdelay\r\nnmcli con mod em1-1 remove sriov\r\n<\/pre>\n<h2>IP\u30a2\u30c9\u30ec\u30b9\u3092\u5909\u66f4\u3059\u308b\uff01<\/h2>\n<p>IP\u30a2\u30c9\u30ec\u30b9\u3092\u5909\u66f4\u3057\u3066\u307f\u307e\u3059\u3002\u5373\u6642\u306b\u306f\u5909\u66f4\u3055\u308c\u307e\u305b\u3093\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# nmcli c m enp0s3 ipv4.method manual ipv4.addresses 10.1.0.2\/16 ipv4.gateway 10.1.0.1\r\n<\/pre>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002SSH\u3067\u63a5\u7d9a\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u5909\u66f4\u3057\u305fIP\u30a2\u30c9\u30ec\u30b9\u3092\u6307\u5b9a\u3057\u3066\u30ed\u30b0\u30a4\u30f3\u3057\u76f4\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# nmcli c down enp0s3 &amp;&amp; nmcli c up enp0s3\r\n<\/pre>\n<p>nmcui\u30b3\u30de\u30f3\u30c9\u3067IP\u30a2\u30c9\u30ec\u30b9\u304c\u5909\u66f4\u3055\u308c\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n# nmcli\r\nenp0s3: connected to enp0s3\r\n        &quot;Intel 82540EM&quot;\r\n        ethernet (e1000), 08:00:27:4F:21:9F, hw, mtu 1500\r\n        ip4 default\r\n        inet4 10.1.0.2\/16\r\n        route4 10.1.0.0\/16 metric 100\r\n        route4 default via 10.1.0.1 metric 100\r\n\r\nlo: unmanaged\r\n        &quot;lo&quot;\r\n        loopback (unknown), 00:00:00:00:00:00, sw, mtu 65536\r\n\r\nDNS configuration:\r\n        servers: 10.1.20.1 10.1.20.2 10.1.0.1\r\n        domains: loc.lab4ict.com\r\n        interface: enp0s3\r\n\r\nUse &quot;nmcli device show&quot; to get complete information about known devices and\r\n&quot;nmcli connection show&quot; to get an overview on active connection profiles.\r\n\r\nConsult nmcli(1) and nmcli-examples(7) manual pages for complete usage details.\r\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>Network Manager\u306enmcui\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089IP\u30a2\u30c9\u30ec\u30b9\u306e\u8a2d\u5b9a\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u95a2\u9023\u8a18\u4e8b<\/h2>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/13597\" ><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\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30b3\u30de\u30f3\u30c9\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\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01<\/div><div class=\"substr\">Linux\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3044\u3053\u306a\u3059\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<p>&nbsp;<\/p>\n<h2>\u95a2\u9023\u66f8\u7c4d\uff08Amazon\uff09<\/h2>\n<p><iframe sandbox=\"allow-popups allow-scripts allow-modals allow-forms allow-same-origin\" style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&bc1=000000&IS2=1&bg1=FFFFFF&fc1=000000&lc1=0000FF&t=infotecr-22&language=ja_JP&o=9&p=8&l=as4&m=amazon&f=ifr&ref=as_ss_li_til&asins=4774174041&linkId=1be31975ee817bf3bb17e2a366509519\"><\/iframe><\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux\u3067\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067nmcui\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001IP\u30a2\u30c9\u30ec\u30b9\u3092\u8a2d\u5b9a\u3057\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":[874],"tags":[878,282,25,556,309,583],"class_list":["post-13638","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-network-linux","tag-ip","tag-linux","tag-25","tag-556","tag-309","tag-583"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/13638","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=13638"}],"version-history":[{"count":9,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/13638\/revisions"}],"predecessor-version":[{"id":13648,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/13638\/revisions\/13648"}],"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=13638"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=13638"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=13638"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}