{"id":831,"date":"2022-11-04T11:47:59","date_gmt":"2022-11-04T02:47:59","guid":{"rendered":"http:\/\/www.onepage.co.kr\/wordpress\/?p=831"},"modified":"2022-11-04T11:47:59","modified_gmt":"2022-11-04T02:47:59","slug":"hyper-v-using-fixed-ip-in-virtual-environment","status":"publish","type":"post","link":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/2022\/11\/04\/hyper-v-using-fixed-ip-in-virtual-environment\/","title":{"rendered":"Hyper-v using fixed IP in virtual environment"},"content":{"rendered":"<header>\n<h1>Hyper-V \uac00\uc0c1 \ud658\uacbd\uc5d0\uc11c \uace0\uc815 \uc544\uc774\ud53c \uc8fc\uc18c \uc0ac\uc6a9\ud558\uae30<\/h1>\n<\/header>\n<section id=\"js-article\" class=\"p-article__body\">\n<h1 id=\"\uac1c\uc694\">\uac1c\uc694<\/h1>\n<p>\uc708\ub3c4\uc6b0\uc988\uc5d0\uc11c \ub9ac\ub205\uc2a4 \ud658\uacbd\uc744 \uc774\uc6a9\ud558\uae30 \uc704\ud574\uc11c\ub294 docker \ucee8\ud14c\uc774\ub108\ub97c \uc774\uc6a9\ud558\uac70\ub098 hyper-v, vmware, virtualbox \ub4f1\uacfc \uac19\uc740 \uac00\uc0c1\uba38\uc2e0\uc744 \uc774\uc6a9\ud574\uc57c \ud55c\ub2e4. \uc774\ubc88\uc5d0\ub294 hyper-v\ub97c \uc774\uc6a9\ud574 \ub9ac\ub205\uc2a4 \ud658\uacbd\uc744 \uad6c\ucd95\ud558\uace0 SSH\ub97c \ud1b5\ud574 \uc811\uc18d\ud558\uc5ec \ud544\uc694\ud55c \uc791\uc5c5\uc744 \ud558\ub824 \ud588\ub294\ub370 \ubb38\uc81c\ub294 IP\uac00 \uacc4\uc18d\ud574\uc11c \ub3d9\uc801\uc73c\ub85c \ubc14\ub00c\ub294 \uac83\uc774\uc5c8\ub2e4. \uc774\ub97c \ud574\uacb0\ud558\uae30 \uc704\ud574 \ub124\ud2b8\uc6cc\ud06c \uad6c\uc131 \ubc29\ubc95\uacfc \uac04\ub2e8\ud55c \uac00\uc774\ub4dc\ub97c \uc791\uc131\ud558\uace0\uc790 \ud55c\ub2e4. \ud5a5\ud6c4 Hyper-V \ub97c \uc0ac\uc6a9\ud558\uba74\uc11c \uc694\uad6c\ub418\ub294 \uc2dc\ub098\ub9ac\uc624\uac00 \ucd94\uac00\ub418\uba74 \ubcf8 \ud3ec\uc2a4\ud305 \ubb38\uc11c\ub97c \uc218\uc815\ud558\uc5ec \uc815\ub9ac\ud558\ub3c4\ub85d \ud55c\ub2e4.<\/p>\n<h2 id=\"\uac00\uc0c1\uba38\uc2e0-\ud074\ub77c\uc774\uc5b8\ud2b8\uc5d0-static-ip-\ud560\ub2f9\ud558\uae30\">\uac00\uc0c1\uba38\uc2e0 \ud074\ub77c\uc774\uc5b8\ud2b8\uc5d0 static ip \ud560\ub2f9\ud558\uae30<\/h2>\n<p>\uac00\uc0c1\uba38\uc2e0\uc5d0 \uace0\uc815 \uc544\uc774\ud53c\ub97c \ud560\ub2f9\ud558\uae30 \uc704\ud574\uc11c\ub294 \uac00\uc0c1 \uc2a4\uc704\uce58 \uc7a5\uce58\ub97c \uc774\uc6a9\ud574\uc57c \ud55c\ub2e4. \uac00\uc0c1 \uc2a4\uc704\uce58\uc758 \ud328\ud0b7\uc744 \uc2e4\uc81c \ub124\ud2b8\uc6cc\ud06c \uc5b4\ub311\ud130(\uc774\ub354\ub137 \ub610\ub294 \uc640\uc774\ud30c\uc774)\uc640 \uacf5\uc720\ud558\ub3c4\ub85d \ud558\uace0 \uac00\uc0c1 \uc2a4\uc704\uce58\uc758 \uc544\uc774\ud53c\ub97c \uac00\uc0c1 \uba38\uc2e0\uc5d0\uc11c \uc0ac\uc6a9\ud558\ub294 \uac8c\uc774\ud2b8\uc6e8\uc774\ub85c \uc9c0\uc815\ud558\uc5ec \ud638\uc2a4\ud2b8\uc5d0\uc11c SSH\ub85c \uc811\uc18d\ud560 \uc218 \uc788\ub294 \ud658\uacbd\uc744 \uad6c\uc131\ud55c\ub2e4.<\/p>\n<ol>\n<li>\uc791\uc5c5 &gt; \uac00\uc0c1 \uc2a4\uc704\uce58 \uad00\ub9ac\uc790 \ud604\uc7ac Default Switch\ub85c \ub418\uc5b4 \uc788\ub294 \uc2a4\uc704\uce58\uac00 \ub0b4\ubd80 \ub124\ud2b8\uc6cc\ud06c\ub85c \ub418\uc5b4 \uc788\ub294\uc9c0 \ud655\uc778\ud55c\ub2e4. \u2018\ub0b4\ubd80 \ub124\ud2b8\uc6cc\ud06c\u2019\ub85c \uc120\ud0dd\ub418\uc5b4 \uc788\ub294 \uacbd\uc6b0\ub77c\uba74 \uac00\uc0c1 \uc2a4\uc704\uce58\ub97c \ucd94\uac00\ud560 \ud544\uc694\uac00 \uc5c6\uc9c0\ub9cc \ub9cc\uc57d \uc120\ud0dd\ub418\uc5b4 \uc788\ub2e4\uba74 \uc774 \ub2e8\uacc4\ub294 \ub118\uc5b4\uac00\uc790.<\/li>\n<\/ol>\n<ul>\n<li>\uc2a4\uc704\uce58\uac00 \uc5c6\ub294 \uacbd\uc6b0 \u2018\uc0c8 \uac00\uc0c1 \ub124\ud2b8\uc6cc\ud06c \uc2a4\uc704\uce58\u2019\ub97c \uc120\ud0dd\ud558\uc5ec \ub0b4\ubd80 \ud0c0\uc785\uc758 \uac00\uc0c1 \uc2a4\uc704\uce58\ub97c \ud558\ub098 \uc0dd\uc131\ud55c\ub2e4.<\/li>\n<\/ul>\n<ol start=\"2\">\n<li>\ub124\ud2b8\uc6cc\ud06c \uc124\uc815 \u2018\uc81c\uc5b4\ud310 &#8211; \ub124\ud2b8\uc6cc\ud06c \ubc0f \uc778\ud130\ub137 &#8211; \ub124\ud2b8\uc6cc\ud06c \uc124\uc815\u2019 \uc5d0\uc11c \ub0b4\ubd80 \uac00\uc0c1 \uc2a4\uc704\uce58\uc758 \uc18d\uc131\uc73c\ub85c \ub4e4\uc5b4\uac00 \uace0\uc815\uc544\uc774\ud53c\ub97c \uc9c1\uc811 \ud560\ub2f9\ud55c\ub2e4. \uc544\ub798\ub294 \uc9c1\uc811 \uc0ac\uc6a9\ud55c \uc124\uc815 \uc815\ubcf4\uc774\ub2e4.<\/li>\n<\/ol>\n<pre tabindex=\"0\"><code>IP: 192.168.137.1\r\nsubnet mask: 255.255.255.0\r\n<\/code><\/pre>\n<p>\uc2a4\uc704\uce58\uc5d0 \ub300\ud55c \ub124\ud2b8\uc6cc\ud06c \uc124\uc815\uc744 \ub9c8\ucce4\uc73c\uba74 \uc774\ub354\ub137 \ub610\ub294 \uc640\uc774\ud30c\uc774 \uc5b4\ub311\ud130\uc758 \uc18d\uc131\uc5d0\uc11c \uacf5\uc720 \ud0ed\uc758 \u2018\uc778\ud130\ub137 \uc5f0\uacb0 \uacf5\uc720\u2019\uc5d0 \u2018\ub2e4\ub978 \ub124\ud2b8\uc6cc\ud06c \uc0ac\uc6a9\uc790\uac00 \uc774 \ucef4\ud4e8\ud130\uc758 \uc778\ud130\ub137 \uc5f0\uacb0\uc744 \ud1b5\ud574 \uc5f0\uacb0\ud560 \uc218 \uc788\ub3c4\ub85d \ud5c8\uc6a9\u2019 \uc635\uc158\uc744 \ud65c\uc131\ud654\ud574\uc900\ub2e4.<\/p>\n<ol start=\"3\">\n<li>\uac00\uc0c1\uba38\uc2e0\uc5d0\uc11c \ub124\ud2b8\uc6cc\ud06c \uc124\uc815 \uc774\uc81c \uac70\uc758 \ub05d\ub0ac\ub2e4. \uac00\uc0c1\uba38\uc2e0\uc5d0\uc11c \uc9c1\uc811 \uc544\ub798\uc640 \uac19\uc774 \ub124\ud2b8\uc6cc\ud06c \uc124\uc815\uc744 \ud574\uc900\ub2e4. \uc704\uc5d0\uc11c \uc124\uc815\ud55c \uc2a4\uc704\uce58 \uc544\uc774\ud53c\ub97c gateway\ub85c \uc124\uc815\ud558\uace0 \uc6d0\ud558\ub294 \uace0\uc815\uc544\uc774\ud53c\ub85c \uc124\uc815\ud558\uba74 \ub05d\uc774\ub2e4.<\/li>\n<\/ol>\n<div class=\"highlight\">\n<pre tabindex=\"0\"><code class=\"language-bash\" data-lang=\"bash\">$ ifconfig\r\neth0: flags=4163&lt;UP,BROADCAST,RUNNING,MULTICAST&gt;  mtu 1500\r\n        inet 192.168.137.10  netmask 255.255.255.0  broadcast 192.168.137.255\r\n        inet6 fe80::87d1:e5b6:b588:1e48  prefixlen 64  scopeid 0x20&lt;link&gt;\r\n        ether 00:15:5d:99:75:00  txqueuelen 1000  (Ethernet)\r\n        RX packets 30118  bytes 13541072 (13.5 MB)\r\n        RX errors 0  dropped 0  overruns 0  frame 0\r\n        TX packets 19934  bytes 6482177 (6.4 MB)\r\n        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0\r\n\r\nlo: flags=73&lt;UP,LOOPBACK,RUNNING&gt;  mtu 65536\r\n        inet 127.0.0.1  netmask 255.0.0.0\r\n        inet6 ::1  prefixlen 128  scopeid 0x10&lt;host&gt;\r\n        loop  txqueuelen 1000  (Local Loopback)\r\n        RX packets 44920  bytes 18330975 (18.3 MB)\r\n        RX errors 0  dropped 0  overruns 0  frame 0\r\n        TX packets 44920  bytes 18330975 (18.3 MB)\r\n        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0\r\n\r\n$ ip route show\r\ndefault via 192.168.137.1 dev eth0 proto static metric 100\r\n169.254.0.0\/16 dev eth0 scope link metric 1000\r\n192.168.137.0\/24 dev eth0 proto kernel scope link src 192.168.137.10 metric 100\r\n\r\n<\/code><\/pre>\n<\/div>\n<p>\uc774\uc81c \ud638\uc2a4\ud2b8 \uc708\ub3c4\uc6b0\uc988\uc5d0\uc11c \ud074\ub77c\uc774\uc5b8\ud2b8\ub85c SSH\ub97c \ud1b5\ud574 \uc811\uc18d\ud560 \uc218 \uc788\ub294 \uace0\uc815\uc544\uc774\ud53c\uac00 \uc644\uc131\ub418\uc5c8\ub2e4.<\/p>\n<h1 id=\"\ucd9c\ucc98\">\ucd9c\ucc98<\/h1>\n<ul>\n<li><a href=\"https:\/\/medium.com\/@maxtortime_88708\/hyper-v-%EB%84%A4%ED%8A%B8%EC%9B%8C%ED%81%AC-%EC%84%A4%EC%A0%95%ED%95%98%EA%B8%B0-b459a7b0bd11\">https:\/\/medium.com\/@maxtortime_88708\/hyper-v-%EB%84%A4%ED%8A%B8%EC%9B%8C%ED%81%AC-%EC%84%A4%EC%A0%95%ED%95%98%EA%B8%B0-b459a7b0bd11<\/a><\/li>\n<\/ul>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>Hyper-V \uac00\uc0c1 \ud658\uacbd\uc5d0\uc11c \uace0\uc815 \uc544\uc774\ud53c \uc8fc\uc18c \uc0ac\uc6a9\ud558\uae30 \uac1c\uc694 \uc708\ub3c4\uc6b0\uc988\uc5d0\uc11c \ub9ac\ub205\uc2a4 \ud658\uacbd\uc744 \uc774\uc6a9\ud558\uae30 \uc704\ud574\uc11c\ub294 docker \ucee8\ud14c\uc774\ub108\ub97c \uc774\uc6a9\ud558\uac70\ub098 hyper-v, vmware, virtualbox \ub4f1\uacfc \uac19\uc740 \uac00\uc0c1\uba38\uc2e0\uc744 \uc774\uc6a9\ud574\uc57c \ud55c\ub2e4. \uc774\ubc88\uc5d0\ub294 hyper-v\ub97c \uc774\uc6a9\ud574 \ub9ac\ub205\uc2a4 \ud658\uacbd\uc744 \uad6c\ucd95\ud558\uace0 SSH\ub97c \ud1b5\ud574 \uc811\uc18d\ud558\uc5ec \ud544\uc694\ud55c \uc791\uc5c5\uc744 \ud558\ub824 \ud588\ub294\ub370 \ubb38\uc81c\ub294 IP\uac00 \uacc4\uc18d\ud574\uc11c \ub3d9\uc801\uc73c\ub85c \ubc14\ub00c\ub294 \uac83\uc774\uc5c8\ub2e4. \uc774\ub97c \ud574\uacb0\ud558\uae30 \uc704\ud574 \ub124\ud2b8\uc6cc\ud06c \uad6c\uc131 \ubc29\ubc95\uacfc \uac04\ub2e8\ud55c \uac00\uc774\ub4dc\ub97c \uc791\uc131\ud558\uace0\uc790 \ud55c\ub2e4. \ud5a5\ud6c4 Hyper-V [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[120],"tags":[],"class_list":["post-831","post","type-post","status-publish","format-standard","hentry","category-systemandnetwork"],"_links":{"self":[{"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/831","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=831"}],"version-history":[{"count":1,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/831\/revisions"}],"predecessor-version":[{"id":832,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/831\/revisions\/832"}],"wp:attachment":[{"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=831"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=831"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.onepage.co.kr\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=831"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}