{"id":270,"date":"2015-12-07T14:59:50","date_gmt":"2015-12-07T05:59:50","guid":{"rendered":"http:\/\/www.kinryo.net\/?p=270"},"modified":"2021-05-04T12:00:49","modified_gmt":"2021-05-04T03:00:49","slug":"%ef%bc%91%ef%bc%9a%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e5%be%8c%e3%81%ae%e8%a8%ad%e5%ae%9a","status":"publish","type":"post","link":"https:\/\/www.kinryo.net\/?p=270","title":{"rendered":"\uff11\uff1a\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u306e\u8a2d\u5b9a"},"content":{"rendered":"<p class=\"itemText\">\u30b5\u30fc\u30d0\u30fc\u3092XEN\u304b\u3089KVM\u306b\u3057\u3088\u3046\u3068CentOS 6.3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u6642\u306e\u30e1\u30e2\u3002<br \/>\n\u307e\u305a\u306f http:\/\/centossrv.com\/centos6-init.shtml\uff08\u73fe\u5728\u306f\u30da\u30fc\u30b8\u304c\u7121\u304f\u306a\u3063\u3066\u3044\u308b) \u3092\u53c2\u8003\u306b\u521d\u671f\u8a2d\u5b9a\u3092\u3059\u308b\u3002<br \/>\n\u4eca\u5f8c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u30b2\u30b9\u30c8OS\u3092\u540c\u3058IP\u30b0\u30eb\u30fc\u30d7\u306b\u3057\u305f\u3044\u306e\u3067\u3001&#8221;br0&#8243;\u3092\u4f5c\u308b\u3002<br \/>\n\u305d\u306e\u524d\u306b\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u8d70\u3063\u3066\u3044\u308bNetworkManager\u3092\u6b62\u3081\u308b\u3002\uff08\u597d\u307f\u306e\u554f\u984c\u3060\u304c\u3001\u3053\u308c\u304c\u8d70\u3063\u3066\u3044\u308b\u3068\u8a2d\u5b9a\u901a\u308a\u306b\u3044\u304b\u306a\u3044\u3053\u3068\u304c\u591a\u3044\uff09<br \/>\n<span style=\"color: #ff6600;\">#<\/span><span style=\"color: #008000;\"> service NetworkManager stop<\/span><br \/>\n<span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">chkconfig NetworkManager off<\/span><br \/>\n<span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">chkconfig &#8211;list NetworkManager<\/span><br \/>\nNetworkManager 0:off 1:off 2:off 3:off 4:off 5:off 6:off<br \/>\nbr0\u3092\u4f5c\u308b\u306b\u306feth0\u3092\u30b3\u30d4\u30fc\u3057\u3066\u7de8\u96c6\u3059\u308b\u3002<br \/>\n<span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">cd \/etc\/sysconfig\/network-scripts\/<\/span><br \/>\n<span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">cp ifcfg-eth0 ifcfg-br0<\/span><br \/>\n<span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">gedit ifcfg-br0<\/span><br \/>\n\u79c1\u306f\u4e0b\u8a18\u306e\u69d8\u306b\u8a2d\u5b9a\u3057\u305f\u3002<\/p>\n<div class=\"xoopsCode\">\n<pre><span style=\"color: #000080;\"><code>DEVICE=\"br0\"\r\nONBOOT=\"yes\"\r\nTYPE=\"Bridge\"\r\nIPADDR=192.168.135.30\r\nPREFIX=24\r\nGATEWAY=192.168.135.1<\/code><\/span><\/pre>\n<\/div>\n<p>\u6b21\u306bifcfg-eth0\u306e\u4fee\u6b63<\/p>\n<div class=\"xoopsCode\">\n<pre><span style=\"color: #000080;\"><code># gedit ifcfg-eth0\r\nDEVICE=\"eth0\"\r\nBOOTPROTO=none\r\nONBOOT=\"yes\"\r\nTYPE=\"Ethernet\"\r\nHWADDR=00:24:8C:7E:CF:86\r\n#IPADDR=192.168.135.30\r\n#PREFIX=24\r\n#GATEWAY=192.168.135.1\r\n#DNS1=192.168.135.1\r\n#DOMAIN=kinryokai.net\r\nNAME=\"System eth0\"\r\nBRIDGE=br0<\/code><\/span><\/pre>\n<\/div>\n<p>\u5143\u306e\u8a2d\u5b9a\u306e\u4e00\u90e8\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u3001BRIDGE=br0 \u3092\u633f\u5165\u3002\u30c0\u30d6\u30eb\u30af\u30aa\u30fc\u30c6\u30c3\u30b7\u30e7\u30f3\uff08\u201d\uff09\u306f\u5165\u308c\u306a\u304f\u3066\u3082\u3044\u3044\u898b\u305f\u3044\u3002<br \/>\n\u6b21\u306b \/etc\/resolv.conf \u306e\u4fee\u6b63<\/p>\n<div class=\"xoopsCode\">\n<pre><span style=\"color: #000080;\"><code>search kinryokai.net\r\n# nameserver 192.168.135.30\r\nnameserver 192.168.135.1\r\nnameserver 202.224.32.1\r\n\r\n# No nameservers found; try putting DNS servers into your\r\n# ifcfg files in \/etc\/sysconfig\/network-scripts like so:\r\n#\r\n# DNS1=xxx.xxx.xxx.xxx\r\n# DNS2=xxx.xxx.xxx.xxx\r\n# DOMAIN=lab.foo.com bar.foo.com<\/code><\/span><\/pre>\n<\/div>\n<p>\u6700\u521d\u306enameserver\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u3066\u3044\u308b\u306e\u306f\u3001\u3053\u3053\u306b\u7c21\u6613DNS server\u306e dnsmasq\u3092\u52d5\u304b\u3059\u3064\u3082\u308a\u306a\u306e\u3060\u304c\u3001\u307e\u3060\u8a2d\u5b9a\u3057\u3066\u5c45\u306a\u3044\u306e\u3067\u3001\u8a2d\u5b9a\u5f8c\u30b3\u30e1\u30f3\u30c8\u3092\u5916\u3059\u3002\u4e0b\u306e\u65b9\u306e\u8a2d\u5b9a\u306fNetworkManager\u304c\u8a18\u5165\u3057\u305f\u7269\u3060\u304c\u53c2\u8003\u306e\u305f\u3081\u306b\u6b8b\u3057\u305f\u3002<br \/>\n\u3053\u3053\u3067\u5ff5\u306e\u70ba\u3001\u4e00\u5ea6\u518d\u8d77\u52d5\u3092\u3057\u3066\u304a\u3044\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30b5\u30fc\u30d0\u30fc\u3092XEN\u304b\u3089KVM\u306b\u3057\u3088\u3046\u3068CentOS 6.3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u6642\u306e\u30e1\u30e2\u3002 \u307e\u305a\u306f http:\/\/centossrv.com\/centos6-init.shtml\uff08\u73fe\u5728\u306f\u30da\u30fc\u30b8\u304c\u7121\u304f\u306a\u3063\u3066\u3044\u308b) \u3092\u53c2\u8003\u306b\u521d\u671f\u8a2d &hellip; <a href=\"https:\/\/www.kinryo.net\/?p=270\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"vkexunit_cta_each_option":"","footnotes":""},"categories":[7],"tags":[],"class_list":["post-270","post","type-post","status-publish","format-standard","hentry","category-centos6"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/270","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=270"}],"version-history":[{"count":3,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/270\/revisions"}],"predecessor-version":[{"id":2283,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/270\/revisions\/2283"}],"wp:attachment":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=270"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=270"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}