{"id":316,"date":"2023-02-12T16:01:09","date_gmt":"2023-02-12T07:01:09","guid":{"rendered":"https:\/\/ahnbk.dev\/?p=316"},"modified":"2023-02-15T23:39:09","modified_gmt":"2023-02-15T14:39:09","slug":"wsl2%ec%97%90%ec%84%9c-network-bridge-%ea%b8%b0%eb%8a%a5-%ec%82%ac%ec%9a%a9","status":"publish","type":"post","link":"https:\/\/ahnbk.dev\/?p=316","title":{"rendered":"WSL2\uc5d0\uc11c Network Bridge \uae30\ub2a5 \uc0ac\uc6a9"},"content":{"rendered":"\n<figure class=\"wp-block-embed aligncenter is-type-wp-embed is-provider-ahnbk-com wp-block-embed-ahnbk-com\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"Id5s8ler9R\"><a href=\"https:\/\/ahnbk.com\/?p=1744\">WSL2\uc5d0\uc11c \uc678\ubd80\ub124\ud2b8\uc6cd\uc5d0 \ube0c\ub9bf\uc9c0\ud558\uc5ec \uc0ac\uc6a9\ud558\uae30<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;WSL2\uc5d0\uc11c \uc678\ubd80\ub124\ud2b8\uc6cd\uc5d0 \ube0c\ub9bf\uc9c0\ud558\uc5ec \uc0ac\uc6a9\ud558\uae30&#8221; &#8212; ahnbk.com\" src=\"https:\/\/ahnbk.com\/?p=1744&#038;embed=true#?secret=AF8RpU7mQE#?secret=Id5s8ler9R\" data-secret=\"Id5s8ler9R\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\uc774\uc804 \ube14\ub85c\uadf8\uc5d0\uc11c \uc815\ub9ac\ud588\ub358 \ub0b4\uc6a9\uc778\ub370, \uc708\ub3c4\uc6b0\ub97c \ud3ec\ub9f7\ud55c \ud6c4 \uc0c8\ub85c \ud14c\uc2a4\ud2b8 \ud574\ubcf8 \uacb0\uacfc \uc815\ub9ac. \ubcc4\ub2e4\ub978 \ucc28\uc774 \uc5c6\uc774 \uc798\ub428.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">\ub367#1: \ud604\uc7ac \uc6d0\uc778\uc740 \uc798 \ubaa8\ub974\uaca0\ub294\ub370, \uc544\ub798\uc640 \uac19\uc774 \ube0c\ub9bf\uc9c0\ub85c \uc124\uc815\uc744 \ud574\ub193\uc73c\uba74, \uc778\ud130\ub137 \uc5c5\ub85c\ub4dc \uc18d\ub3c4 \ubc0f \ub178\uc158 \ub4f1 \ud074\ub77c\uc6b0\ub4dc \uc11c\ube44\uc2a4\uc758 \uc18d\ub3c4\uac00 \ubbf8\uce5c\ub4ef\uc774 \ub290\ub824\uc9c0\ub294 \uc0c1\ud669\uc774 \ubc1c\uc0dd\ud569\ub2c8\ub2e4. \uad6c\uae00\ub9c1 \ud574\ubcf4\ub2c8, \uac19\uc740 \uc99d\uc0c1\uc744 \ud638\uc18c\ud558\ub294 \uc0ac\ub78c\uc774 \ub2e4\uc218\uc788\ub124\uc694. \ubc84\uadf8\uc778\ub4ef\ud55c\ub370&#8230; \ubc29\ubc95\uc744 \ucc3e\uc544\ubd10\uc57c\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">WLS2\uc758 \uc11c\ube0c \uba38\uc2e0\ub4e4\uc758 \ub124\ud2b8\uc6cc\ud06c\ub294 \ub0b4\ubd80 \ud504\ub77c\uc774\ube57\ub9dd\uc744 \uc0ac\uc6a9\ud55c\ub2e4. \uc678\ubd80 \ub300\uc5ed\uacfc\ub294 \ubd84\ub9ac\ub418\uc5b4 \uc788\ub2e4\ub294 \uc758\ubbf8\ub85c, \uc608\ub97c \ub4e4\uc5b4 Ubuntu\ub97c \uc124\uce58\ud558\uace0 <code>ifconfig<\/code>\ub97c \uc2e4\ud589\ud574\ubcf4\uba74,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ ifconfig\neth0: flags=4163&lt;UP,BROADCAST,RUNNING,MULTICAST&gt;  mtu 1500\n        inet 172.21.50.26  netmask 255.255.240.0  broadcast 172.21.63.255\n        inet6 fe80::215:5dff:fec8:7eef  prefixlen 64  scopeid 0x20&lt;link&gt;\n        ether 00:15:5d:c8:7e:ef  txqueuelen 1000  (Ethernet)\n        RX packets 0  bytes 0 (0.0 B)\n        RX errors 0  dropped 0  overruns 0  frame 0\n        TX packets 7  bytes 586 (586.0 B)\n        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0\n\nlo: flags=73&lt;UP,LOOPBACK,RUNNING&gt;  mtu 65536\n        inet 127.0.0.1  netmask 255.0.0.0\n        inet6 ::1  prefixlen 128  scopeid 0x10&lt;host&gt;\n        loop  txqueuelen 1000  (Local Loopback)\n        RX packets 0  bytes 0 (0.0 B)\n        RX errors 0  dropped 0  overruns 0  frame 0\n        TX packets 0  bytes 0 (0.0 B)\n        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\uc640 \uac19\uc774 172.21.50.xx \ub300\uc5ed\uc758 \uc544\uc774\ud53c\ub97c \uc790\ub3d9\uc73c\ub85c \ud560\ub2f9\ubc1b\ub294\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uc0ac\uc6a9 \ubaa9\uc801\uc5d0 \ub530\ub77c \ud604\uc7ac \uc0ac\uc6a9\ud558\ub294 \uc708\ub3c4\uc6b0 \uba38\uc2e0\uc758 \ub124\ud2b8\uc6cc\ud06c\ub97c \ube0c\ub9bf\uc9c0\ud558\uc5ec \uc678\ubd80\uc5d0\uc11c\ub3c4 \uc811\uc18d\uc774 \uac00\ub2a5\ud560 \uc218 \uc788\uac8c\ub054 \ud560 \ud544\uc694\uac00 \uc788\ub294\ub370, \uc774\ub97c \uc0ac\uc6a9\ud558\ub824\uba74 WSL2\uc758 Bridge \uae30\ub2a5\uc744 \uc0ac\uc6a9\ud558\uba74 \ub41c\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uba3c\uc800 \uc708\ub3c4\uc6b0 \ucd94\uac00 \uae30\ub2a5 \uc911 Hyper-V \uae30\ub2a5\uc744 \ud65c\uc131\ud654\ud55c\ub2e4. <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ahnbk.dev\/wp-content\/uploads\/2023\/02\/image-5.png\" alt=\"\" class=\"wp-image-317\" width=\"445\" height=\"389\" srcset=\"https:\/\/ahnbk.dev\/wp-content\/uploads\/2023\/02\/image-5.png 932w, https:\/\/ahnbk.dev\/wp-content\/uploads\/2023\/02\/image-5-300x262.png 300w, https:\/\/ahnbk.dev\/wp-content\/uploads\/2023\/02\/image-5-768x671.png 768w\" sizes=\"auto, (max-width: 445px) 100vw, 445px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\uc124\uce58\ub97c \uc644\ub8cc\ud558\uace0, \uc7ac\ubd80\ud305.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Hyper-V Manager\ub97c \uc2e4\ud589\ud55c\ub2e4.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ahnbk.dev\/wp-content\/uploads\/2023\/02\/image-6-1024x586.png\" alt=\"\" class=\"wp-image-319\" width=\"1024\" height=\"586\" srcset=\"https:\/\/ahnbk.dev\/wp-content\/uploads\/2023\/02\/image-6-1024x586.png 1024w, https:\/\/ahnbk.dev\/wp-content\/uploads\/2023\/02\/image-6-300x172.png 300w, https:\/\/ahnbk.dev\/wp-content\/uploads\/2023\/02\/image-6-768x440.png 768w, https:\/\/ahnbk.dev\/wp-content\/uploads\/2023\/02\/image-6-1536x879.png 1536w, https:\/\/ahnbk.dev\/wp-content\/uploads\/2023\/02\/image-6.png 1887w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\uba54\ub274 &gt; Action &gt; Virtual Switch Manager\ub97c \uc2e4\ud589\ud55c\ub2e4.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ahnbk.dev\/wp-content\/uploads\/2023\/02\/image-7-1024x976.png\" alt=\"\" class=\"wp-image-320\" width=\"556\" height=\"530\" srcset=\"https:\/\/ahnbk.dev\/wp-content\/uploads\/2023\/02\/image-7-1024x976.png 1024w, https:\/\/ahnbk.dev\/wp-content\/uploads\/2023\/02\/image-7-300x286.png 300w, https:\/\/ahnbk.dev\/wp-content\/uploads\/2023\/02\/image-7-768x732.png 768w, https:\/\/ahnbk.dev\/wp-content\/uploads\/2023\/02\/image-7.png 1083w\" sizes=\"auto, (max-width: 556px) 100vw, 556px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\uc6b0\uce21 Create virtual switch\uc5d0\uc11c External\ub97c \uc120\ud0dd\ud558\uace0, Create Virtual Switch\ubc84\ud2bc\uc744 \ub204\ub978\ub2e4.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ahnbk.dev\/wp-content\/uploads\/2023\/02\/image-8-1024x976.png\" alt=\"\" class=\"wp-image-321\" width=\"561\" height=\"534\" srcset=\"https:\/\/ahnbk.dev\/wp-content\/uploads\/2023\/02\/image-8-1024x976.png 1024w, https:\/\/ahnbk.dev\/wp-content\/uploads\/2023\/02\/image-8-300x286.png 300w, https:\/\/ahnbk.dev\/wp-content\/uploads\/2023\/02\/image-8-768x732.png 768w, https:\/\/ahnbk.dev\/wp-content\/uploads\/2023\/02\/image-8.png 1083w\" sizes=\"auto, (max-width: 561px) 100vw, 561px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\uc774\ub984\uc744 \uc801\ub2f9\ud788 \uc785\ub825\ud558\uace0 (\uc5ec\uae30\uc120 wsl2-external), Connection type\uc5d0\uc11c\ub294 External network\uc5d0\uc11c \uc678\ubd80\ub9dd\uacfc \uc5f0\uacb0\ud560 Network \uce74\ub4dc\ub97c \uc120\ud0dd\ud55c\ub2e4. \ud604\uc7ac \ud14c\uc2a4\ud2b8 \ud658\uacbd\uc740 \ub178\ud2b8\ubd81\uc774\ub77c \uc5ec\uae30\uc5d0\uc120 \ub178\ud2b8\ubd81\uc758 WiFi \uce74\ub4dc\ub97c \uc120\ud0dd\ud568.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ahnbk.dev\/wp-content\/uploads\/2023\/02\/image-9.png\" alt=\"\" class=\"wp-image-322\" width=\"283\" height=\"206\" srcset=\"https:\/\/ahnbk.dev\/wp-content\/uploads\/2023\/02\/image-9.png 528w, https:\/\/ahnbk.dev\/wp-content\/uploads\/2023\/02\/image-9-300x218.png 300w\" sizes=\"auto, (max-width: 283px) 100vw, 283px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\ub124\ud2b8\uc6cc\ud06c \uc124\uc815 \uacfc\uc815\uc5d0\uc11c \ud604\uc7ac \uc5f0\uacb0 \uc0c1\ud0dc\ub97c \ubcc0\uacbd\ud560 \uc218 \ub3c4 \uc788\ub2e4\ub294 \uacbd\uace0\uc778\ub370, \uadf8\ub0e5 Yes\ub97c \ub20c\ub7ec \uc9c4\ud589\ud55c\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uc774\uc81c Hyper-V Manager\ub97c \uc885\ub8cc\ud558\uace0, \uc0ac\uc6a9\uc790 \ud648 \ub514\ub809\ud1a0\ub9ac (<code>C:\\User\\&lt;user-name&gt;\\<\/code>)\uc5d0 <code>.wslconfig<\/code> \ud30c\uc77c\uc744 \uc0dd\uc131\ud558\uace0 \ub2e4\uc74c\uacfc \uac19\uc774 \uc785\ub825\ud55c\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">[WSL2]\nnetworkingMode = bridged\nvmSwitch = wsl2-external<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">networkingMode\ub97c bridged\ub85c \uc124\uc815\ud558\uace0, vmSwitch\uc5d0\ub294 \uc804 \uacfc\uc815\uc5d0\uc11c \uc0dd\uc131\ud55c Virtual Switch \uc774\ub984\uc744 \uc785\ub825\ud55c\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\ucf54\ub9e8\ub4dc \ucc3d\uc744 \uc5f4\uace0, wsl2\ub97c \uc644\uc804\ud788 \uc885\ub8cc\ud55c\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">&gt; C:\\Windows\\System32\\wsl.exe --shutdown<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\uc774\uc81c wsl2\uc758 \uc11c\ube0c \uba38\uc2e0, \uc608\ub97c \ub4e4\uba74 Ubuntu\ub97c \uc2dc\uc791\ud574\uc11c ifconfig \uba85\ub839\uc5b4\ub97c \uc2e4\ud589\ud574\ubcf4\uba74,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ ifconfig\neth0: flags=4163&lt;UP,BROADCAST,RUNNING,MULTICAST&gt;  mtu 1500\n        inet 192.168.1.237  netmask 255.255.255.0  broadcast 192.168.1.255\n        ether 5c:bb:f6:9e:ee:fa  txqueuelen 1000  (Ethernet)\n        RX packets 17  bytes 2506 (2.5 KB)\n        RX errors 0  dropped 0  overruns 0  frame 0\n        TX packets 2  bytes 684 (684.0 B)\n        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0\n\nlo: flags=73&lt;UP,LOOPBACK,RUNNING&gt;  mtu 65536\n        inet 127.0.0.1  netmask 255.0.0.0\n        loop  txqueuelen 1000  (Local Loopback)\n        RX packets 0  bytes 0 (0.0 B)\n        RX errors 0  dropped 0  overruns 0  frame 0\n        TX packets 0  bytes 0 (0.0 B)\n        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\uc640 \uac19\uc774 \uc678\ubd80\ub9dd\uc758 IP\ub97c \ud560\ub2f9\ubc1b\uc544 \uc0ac\uc6a9\ub418\ub294 \uac83\uc744 \ubcfc \uc218 \uc788\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uc678\ubd80\uc5d0\uc11c \uc811\uc18d\ub3c4 \uac00\ub2a5\ud558\uace0, \uc678\ubd80\ub85c \ub098\uac00\ub294 \ud2b8\ub798\ud53d\ub3c4 \ubb38\uc81c\uac00 \uc5c6\uc74c.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc774\uc804 \ube14\ub85c\uadf8\uc5d0\uc11c \uc815\ub9ac\ud588\ub358 \ub0b4\uc6a9\uc778\ub370, \uc708\ub3c4\uc6b0\ub97c \ud3ec\ub9f7\ud55c \ud6c4 \uc0c8\ub85c \ud14c\uc2a4\ud2b8 \ud574\ubcf8 \uacb0\uacfc \uc815\ub9ac. \ubcc4\ub2e4\ub978 \ucc28\uc774 \uc5c6\uc774 \uc798\ub428. \ub367#1: \ud604\uc7ac \uc6d0\uc778\uc740 \uc798 \ubaa8\ub974\uaca0\ub294\ub370, \uc544\ub798\uc640 \uac19\uc774 \ube0c\ub9bf\uc9c0\ub85c \uc124\uc815\uc744 \ud574\ub193\uc73c\uba74, \uc778\ud130\ub137 \uc5c5\ub85c\ub4dc \uc18d\ub3c4 \ubc0f \ub178\uc158 \ub4f1 \ud074\ub77c\uc6b0\ub4dc \uc11c\ube44\uc2a4\uc758 \uc18d\ub3c4\uac00 \ubbf8\uce5c\ub4ef\uc774 \ub290\ub824\uc9c0\ub294 \uc0c1\ud669\uc774 \ubc1c\uc0dd\ud569\ub2c8\ub2e4. \uad6c\uae00\ub9c1 \ud574\ubcf4\ub2c8, \uac19\uc740 \uc99d\uc0c1\uc744 \ud638\uc18c\ud558\ub294 \uc0ac\ub78c\uc774 \ub2e4\uc218\uc788\ub124\uc694. \ubc84\uadf8\uc778\ub4ef\ud55c\ub370&#8230; \ubc29\ubc95\uc744 \ucc3e\uc544\ubd10\uc57c\uaca0\uc2b5\ub2c8\ub2e4. WLS2\uc758 \uc11c\ube0c \uba38\uc2e0\ub4e4\uc758 \ub124\ud2b8\uc6cc\ud06c\ub294 \ub0b4\ubd80 \ud504\ub77c\uc774\ube57\ub9dd\uc744 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[55],"tags":[59,60,58,61,56],"class_list":["post-316","post","type-post","status-publish","format-standard","hentry","category-wsl2","tag-bridge","tag-bridged","tag-network","tag-vmswitch","tag-wsl2"],"_links":{"self":[{"href":"https:\/\/ahnbk.dev\/index.php?rest_route=\/wp\/v2\/posts\/316","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ahnbk.dev\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ahnbk.dev\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ahnbk.dev\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ahnbk.dev\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=316"}],"version-history":[{"count":5,"href":"https:\/\/ahnbk.dev\/index.php?rest_route=\/wp\/v2\/posts\/316\/revisions"}],"predecessor-version":[{"id":340,"href":"https:\/\/ahnbk.dev\/index.php?rest_route=\/wp\/v2\/posts\/316\/revisions\/340"}],"wp:attachment":[{"href":"https:\/\/ahnbk.dev\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=316"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ahnbk.dev\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=316"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ahnbk.dev\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}