{"id":456,"date":"2016-12-20T20:59:26","date_gmt":"2016-12-20T11:59:26","guid":{"rendered":"http:\/\/okamurax.com\/?p=456"},"modified":"2020-05-05T01:11:03","modified_gmt":"2020-05-04T16:11:03","slug":"ubuntu%e3%81%a7%e3%81%aeip%e3%82%a2%e3%83%89%e3%83%ac%e3%82%b9%e5%9b%ba%e5%ae%9a%e5%8c%96","status":"publish","type":"post","link":"https:\/\/appbay.org\/?p=456","title":{"rendered":"Ubuntu\u3067\u306eIP\u30a2\u30c9\u30ec\u30b9\u56fa\u5b9a\u5316"},"content":{"rendered":"<p><span style=\"color: #0000ff;\">route -n<\/span><br \/>\n\u30b2\u30fc\u30c8\u30a6\u30a7\u30a4\u30c1\u30a7\u30c3\u30af\u3002<\/p>\n<p><span style=\"color: #0000ff;\">ifconfig<\/span><br \/>\nDHCP\u306e\u30a2\u30c9\u30ec\u30b9\u3068\u30de\u30b9\u30af\u3092\u78ba\u8a8d\u3002<\/p>\n<p><span style=\"color: #0000ff;\">cat \/etc\/resolv.conf<\/span><br \/>\nDNS\u30cd\u30fc\u30e0\u30b5\u30fc\u30d0<\/p>\n<p><span style=\"color: #0000ff;\">nameserver 127.0.1.1<\/span><br \/>\n\u306e\u3088\u3046\u306b\u81eaPC\u306b\u306a\u3063\u3066\u3044\u308b\u5834\u5408\u3042\u308a\u3002<\/p>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u8a2d\u5b9a\u3060\u3068 NetworkManager \u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u3066\u3001<br \/>\ndnsmasq \u304c DNS \u30ad\u30e3\u30c3\u30b7\u30e5\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u52d5\u3044\u3066\u3044\u308b\u6a21\u69d8\u3002<\/p>\n<p>NetworkManager\uff08\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u5207\u308a\u66ff\u3048\u88dc\u52a9\uff09<\/p>\n<p><span style=\"color: #0000ff;\">\/etc\/network\/interfaces<\/span><br \/>\n\u306b\u4ee5\u4e0b\u3092\u8ffd\u8a18\u3059\u308b\u3002<\/p>\n<p><span style=\"color: #0000ff;\">auto wlan0<\/span><br \/>\n<span style=\"color: #0000ff;\">iface wlan0 inet static<\/span><br \/>\n<span style=\"color: #0000ff;\">address 192.168.102.15<\/span><br \/>\n<span style=\"color: #0000ff;\">netmask 255.255.255.0<\/span><br \/>\n<span style=\"color: #0000ff;\">gateway 192.168.102.1<\/span><br \/>\n<span style=\"color: #0000ff;\">dns-nameservers 192.168.102.1<\/span><br \/>\n<span style=\"color: #0000ff;\">wpa-ssid xxx<\/span><br \/>\n<span style=\"color: #0000ff;\">wpa-ap-scan 1<\/span><br \/>\n<span style=\"color: #0000ff;\">wpa-key-mgmt WPA-PSK<\/span><br \/>\n<span style=\"color: #0000ff;\">wpa-psk\u00a0xxx<\/span><\/p>\n<p>\u6709\u7dda\u306e\u5834\u5408\u7b49<br \/>\n<span style=\"color: #0000ff;\">auto eth1<\/span><br \/>\n<span style=\"color: #0000ff;\">iface eth1 inet static<\/span><br \/>\n<span style=\"color: #0000ff;\">address 192.168.102.100<\/span><br \/>\n<span style=\"color: #0000ff;\">netmask 255.255.255.0<\/span><br \/>\n<span style=\"color: #0000ff;\">gateway 192.168.102.1<\/span><br \/>\n<span style=\"color: #0000ff;\">dns-nameservers 192.168.102.1<\/span><\/p>\n<p>lo\u3068\u306f\u30ed\u30fc\u30ab\u30eb\u30eb\u30fc\u30d7\u30d0\u30c3\u30af<br \/>\nauto\u3068\u306f\u81ea\u52d5\u63a5\u7d9a<\/p>\n<p>\u518d\u5ea6\u8aad\u307f\u8fbc\u3080\u5834\u5408(\u4e0a\u624b\u304f\u884c\u304b\u306a\u3044\u3053\u3068\u304c\u591a\u3044)<br \/>\n<span style=\"color: #0000ff;\">sudo service networking restart<\/span><br \/>\n<span style=\"color: #0000ff;\">sudo service network-manager restart<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>route -n \u30b2\u30fc\u30c8\u30a6\u30a7\u30a4\u30c1\u30a7\u30c3\u30af\u3002 ifconfig DHCP\u306e\u30a2\u30c9\u30ec\u30b9\u3068\u30de\u30b9\u30af\u3092\u78ba\u8a8d\u3002 cat \/etc\/resolv.conf DNS\u30cd\u30fc\u30e0\u30b5\u30fc\u30d0 nameserver 127.0.1.1 \u306e\u3088\u3046\u306b\u81eaPC\u306b\u306a\u3063 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/appbay.org\/?p=456\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Ubuntu\u3067\u306eIP\u30a2\u30c9\u30ec\u30b9\u56fa\u5b9a\u5316&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[145],"class_list":["post-456","post","type-post","status-publish","format-standard","hentry","category-1","tag-linux"],"_links":{"self":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/456","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=456"}],"version-history":[{"count":6,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/456\/revisions"}],"predecessor-version":[{"id":728,"href":"https:\/\/appbay.org\/index.php?rest_route=\/wp\/v2\/posts\/456\/revisions\/728"}],"wp:attachment":[{"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=456"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=456"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/appbay.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=456"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}