{"id":657,"date":"2015-12-15T21:10:01","date_gmt":"2015-12-15T20:10:01","guid":{"rendered":""},"modified":"2019-05-28T08:20:38","modified_gmt":"2019-05-28T06:20:38","slug":"connect-gns3-real-network-host-wifi-adapter-sharing-windows-10","status":"publish","type":"post","link":"https:\/\/nil.uniza.sk\/en\/connect-gns3-real-network-host-wifi-adapter-sharing-windows-10\/","title":{"rendered":"Connect GNS3 to a real network via host WiFi adapter sharing on windows 10"},"content":{"rendered":"<p style=\"margin-top: 0px; margin-bottom: 0px; line-height: 13.2px;\">\n\tHere i will describe how to interconnect a GNS3 running router with&nbsp;<span style=\"line-height: 13.2px;\">a real network<\/span><span style=\"line-height: 13.2px;\">&nbsp;<\/span><span style=\"line-height: 13.2px;\">throught a MS loopback adapter and a wireless adapter sharing under windows 10. I will use a connection sharing option, i.e. the connection will be NATed through windows wifi adapter.&nbsp;<\/span><span style=\"line-height: 13.2px;\">The solution is tested under Win 10 Enterprise and the gns3 version 1.3.13. I&#39;m using an instance of Cisco 2961 router.<\/span><\/p>\n<p style=\"margin-top: 0px; margin-bottom: 0px; line-height: 13.2px;\">\n\t&nbsp;<\/p>\n<p style=\"margin-top: 0px; margin-bottom: 0px; line-height: 13.2px;\">\n\tAs the prerequisities we have to have:<\/p>\n<ul>\n<li style=\"margin-top: 0px; margin-bottom: 0px; line-height: 13.2px;\">\n\t\tinstalled&nbsp;<strong>Microsoft KM-TEST Loopback&nbsp;<\/strong>adapter (descriped in the artcicle&nbsp;<a href=\"https:\/\/nil.uniza.sk\/en\/windows\/windows-10\/how-install-microsoft-loopback-adapter-windows-10\/\">How to install Microsoft Loopback Adapter on Windows 10<\/a>).<\/li>\n<li style=\"margin-top: 0px; margin-bottom: 0px; line-height: 13.2px;\">\n\t\tinstalled gns3 with working cisco router image<\/li>\n<\/ul>\n<p style=\"margin-top: 0px; margin-bottom: 0px; line-height: 13.2px;\">\n\tSo we will go through step-by-ste. Now we will interconnect the loopback adapter (in my case named MS-Loop) to the wifi adapter.<\/p>\n<p>\n\t1) To do that right click on the <strong>Start menu icon<\/strong> and select <strong>Network connections.&nbsp;<\/strong>The Network connection window will open immediatelly with the list of your installed network adapters.<\/p>\n<p>\n\t&nbsp;<\/p>\n<p>\n\t2) Make a right click on the wifi adapter (in my case named Wi-Fi) and select <strong>Properties. <\/strong>The WiFi properties window will open with two tabs: Networking and Sharing.<\/p>\n<p>\n\t&nbsp;<\/p>\n<p>\n\t3) Select <strong>Sharing tab<\/strong>, and within the Internet connection Sharing check the &quot;<strong>Allow other network users to connect through this computer&#39;s Internet connection<\/strong>&quot; option (check box).<\/p>\n<p>\n\t&nbsp;<\/p>\n<p>\n\t4) then from the popup list under <strong>Home networking connection<\/strong> select your&#39;s <strong>Loopback adapter<\/strong> (which will share the WiFi connection).<\/p>\n<p>\n\t&nbsp;<\/p>\n<p>\n\t5) finally click <strong>OK<\/strong>, and then <strong>Ok <\/strong>again will close all windows.<\/p>\n<p>\n\t&nbsp;<\/p>\n<p>\n\t6) now start GNS3 and make a simple topo with one router and one cloud<\/p>\n<p>\n\t&nbsp;<\/p>\n<p>\n\t6) make a right click on the cloud instance and select <strong>Configure<\/strong>. The Node configuration window will open. Click on the Cloud_X (cloud 1 in my case) within &quot;Cloud group&quot; &nbsp;(left side of the node window) and then add an Ethernet NIO adapter -&gt; i.e. select the loop adapter from the list (the <strong>ethernet tab<\/strong> and there <strong>Generic Ethernet NIO<\/strong>). Click on the <strong>Add <\/strong>button. Click on <strong>Apply <\/strong>and then on <strong>Ok <\/strong>buttons to close all node configuration windows.<\/p>\n<p>\n\t&nbsp;<\/p>\n<p>\n\t7) within the GNS3 topology use the GNS3&nbsp;&quot;<strong>Add link<\/strong>&quot; tool to interconnect the router interface and just configured cloud&nbsp;interface. In my case router&#39;s fastethernet 0\/0 interface is connected to the cloud mapped Loop interface (named in in my case &quot;nio_gen_eth:MS-Loop&quot;).<\/p>\n<p>\n\t&nbsp;<\/p>\n<p>\n\t8) start the router and go to the interface configure mode, where we will configure the dhcp address assignment:<\/p>\n<div>\n<pre>\r\nR1#conf t\r\nEnter configuration commands, one per line.  End with CNTL\/Z.<\/pre>\n<div>\n<pre>\r\nR1(config)#int fa 0\/0\r\nR1(config-if)#no shut\r\nR1(config-if)#ip add\r\nR1(config-if)#ip address dhcp\r\n*Mar  1 00:10:33.999: %LINK-3-UPDOWN: Interface FastEthernet0\/0, changed state to up\r\n*Mar  1 00:10:34.999: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0\/0, changed state to up\r\nR1(config-if)#ip address dhcp\r\nR1(config-if)#\r\n<strong><span style=\"background-color:#ffff00;\">*Mar  1 00:10:46.619: %DHCP-6-ADDRESS_ASSIGN: Interface FastEthernet0\/0 assigned DHCP address 192.168.137.163, mask 255.255.255.0, hostname R1<\/span><\/strong><\/pre>\n<\/p><\/div>\n<\/div>\n<div>\n<div>\n\t\tafter a while &nbsp;we may observe the log message saying that the DHCP address was assigned. Here 192.168.137.163 \/24<\/div>\n<div>\n\t\t&nbsp;<\/div>\n<div>\n\t\t9) after that we should check routing<\/div>\n<div>\n<pre>\r\nR1(config-if)#do sh ip route\r\n...\r\nGateway of last resort is 192.168.137.1 to network 0.0.0.0\r\n\r\nC    192.168.137.0\/24 is directly connected, FastEthernet0\/0\r\n<span style=\"background-color:#ffff00;\">S*   0.0.0.0\/0 [254\/0] via 192.168.137.1<\/span><\/pre>\n<div>\n\t\t\t&nbsp;<\/div>\n<div>\n\t\t\twhere we may see that a default route have been installed. If not, just add a static route<\/div>\n<pre>\r\nip route 0.0.0.0 0.0.0.0 fastethernet 0\/0 192.168.137.1<\/pre>\n<div>\n\t\t\t10) finally if we would like to use a dns we may configure it together with enabled dns lookup:<\/div>\n<div>\n<pre>\r\nR1(config)#ip name-server 8.8.8.8\r\nR1(config)#ip domain lookup<\/pre>\n<div>\n\t\t\t\t11) and at last check the connectivity<\/div>\n<div>\n<pre>\r\nR1#ping 8.8.8.8\r\nType escape sequence to abort.\r\nSending 5, 100-byte ICMP Echos to 8.8.8.8, timeout is 2 seconds:\r\n!!!!!\r\nSuccess rate is 100 percent (5\/5), round-trip min\/avg\/max = 44\/72\/176 ms<\/pre>\n<div>\n\t\t\t\t\t&nbsp;<\/div>\n<div>\n\t\t\t\t\tor trace the path<\/div>\n<div>\n<pre>\r\nR1#traceroute 8.8.8.8\r\n\r\nType escape sequence to abort.\r\nTracing the route to google-public-dns-a.google.com (8.8.8.8)\r\n\r\n  1 PSNB.mshome.net (192.168.137.1) 4 msec *  4 msec\r\n  2  *  *  *\r\n  3 DD-WRT (10.1.1.1) 12 msec 16 msec 4 msec\r\n  4 \r\nand so on.....\r\n \r\n14  *  *  *\r\n 15 google-public-dns-a.google.com (8.8.8.8) 28 msec 28 msec 52 msec<\/pre>\n<div>\n\t\t\t\t\t\t12) working!<\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div>\n\t\t\t&nbsp;<\/div>\n<\/p><\/div>\n<\/div>\n<p>\n\t&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p style=\"margin-top: 0px; margin-bottom: 0px; line-height: 13.2px;\">","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[685],"tags":[],"class_list":["post-657","post","type-post","status-publish","format-standard","hentry","category-linux_-_howto-en"],"taxonomy_info":{"category":[{"value":685,"label":"Linux - HOWTO"}]},"featured_image_src_large":false,"author_info":{"display_name":"admin","author_link":"https:\/\/nil.uniza.sk\/en\/author\/admin\/"},"comment_info":149,"category_info":[{"term_id":685,"name":"Linux - HOWTO","slug":"linux_-_howto-en","term_group":0,"term_taxonomy_id":683,"taxonomy":"category","description":"","parent":0,"count":71,"filter":"raw","cat_ID":685,"category_count":71,"category_description":"","cat_name":"Linux - HOWTO","category_nicename":"linux_-_howto-en","category_parent":0}],"tag_info":false,"_links":{"self":[{"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/posts\/657","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/comments?post=657"}],"version-history":[{"count":0,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/posts\/657\/revisions"}],"wp:attachment":[{"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/media?parent=657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/categories?post=657"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/tags?post=657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}