{"id":498,"date":"2012-01-26T14:52:27","date_gmt":"2012-01-26T13:52:27","guid":{"rendered":""},"modified":"2018-11-01T00:53:07","modified_gmt":"2018-10-31T23:53:07","slug":"connecting-gns3-virtualbox-host","status":"publish","type":"post","link":"https:\/\/nil.uniza.sk\/en\/connecting-gns3-virtualbox-host\/","title":{"rendered":"Connecting GNS3 with a VirtualBox host"},"content":{"rendered":"<p>\n\tGNS3 simulator allow to interconnect GNS3 topology with VirtualBox hosts (for example those running Win or Linux OSs) and allows to make interesting topologies and scenarios testing with real traffic and services.<\/p>\n<h1>\n\tPrerequisities<\/h1>\n<ol>\n<li>\n\t\tInstalled <a href=\"http:\/\/www.oracle.com\/technetwork\/server-storage\/virtualbox\/downloads\/index.html\">VirtualBox <\/a>application with installed and running virtual host operating system inside of it.<\/p>\n<ol>\n<li>\n\t\t\t\tYou may use one of pre prepared virtualbox <a href=\"https:\/\/nil.uniza.sk\/en\/virtualization\/virtualbox\/vb-images\/virtualbox-images-appliances\/\">appliances from our site<\/a>.<\/li>\n<\/ol>\n<\/li>\n<li>\n\t\tInstalled <a href=\"http:\/\/www.gns3.net\/\">GNS3 simulator<\/a> with set of Cisco IOs.<\/p>\n<ol>\n<li>\n\t\t\t\tNote: this guide is for older version of GNS3 (&lt;1.x)<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p>\n\t<strong>Note<\/strong>: I&#39;m using Win 7 64bit Pro as the main operating system from which I&#39;m running GNS3 and VBox.<\/p>\n<h1>\n\tProcedures<\/h1>\n<h2>\n\tPrepare your VirtualBox<\/h2>\n<p>\n\tTo interconnect GNS3 with VirtulaBox host we should find several ways. I tried using:<\/p>\n<ul>\n<li>\n\t\treal network adapter,<\/li>\n<li>\n\t\tusing emulated virtualbox host only adapter,<\/li>\n<li>\n\t\tusing MS&nbsp;loopback adapter.<\/li>\n<\/ul>\n<p>\n\tAlternatively we may use tunnel TAP&nbsp;adapter (TUNTAP). But this options looks simplier for linux based systems as for windows. Some guide how to install TUNTAP adapter is <a href=\"http:\/\/www.varsanofiev.com\/inside\/using_tuntap_under_windows.htm\">here<\/a>.<\/p>\n<p>\n\tTherefore, if we have installed a virtualized host with running OS inside of VirtualBox, before starting the virtualized host, we should check its network settings inside of VirtualBox (VB). Next steps are similar, does not matter which setting we choose.<\/p>\n<h2>\n\tInterconnection using an real net adapter<\/h2>\n<p>\n\tAs a first option I will use for interconnection of gns3 with VB my PCs&acute; real net adapter.<\/p>\n<p>\n\tOpen <em>Settings <\/em>of a VB host&nbsp;<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\" height=\"153\" src=\"\/wp-content\/uploads\/files\/image\/netsim\/gns3\/gns3-vb\/gns3-vbox-network-settings.png\" width=\"282\" \/><\/p>\n<p>\n\t&nbsp;<\/p>\n<p>\n\tand then choose <em>Networks<\/em>, as we may see on following image. My setting is using network adapter in a bridge mode using my real Realtek Gigabit Ethernet net adapter.<\/p>\n<p>\n\t<img decoding=\"async\" align=\"top\" alt=\"\" height=\"502\" src=\"\/wp-content\/uploads\/files\/image\/netsim\/gns3\/gns3-vb\/gns3-vbox-net-settings1-realnet.png\" width=\"710\" \/><\/p>\n<h3>\n\tPreparing GNS3<\/h3>\n<p>\n\tBefore we run the GNS3 simulator we should display the list of network adapters available for GNS3 on a particular PC. For this we should use utility <em>Network device list <\/em>available from GNS3 menu. Displayed information will be suitable in next configuration steps, when we will realize the interconnection.<\/p>\n<p>\n\tThe <em>Network device list <\/em>tool lists available adapters:<\/p>\n<p>\n\t&nbsp;<img decoding=\"async\" alt=\"\" height=\"353\" src=\"\/wp-content\/uploads\/files\/image\/netsim\/gns3\/gns3-vb\/gns3-vbox-adapt-list.png\" width=\"688\" \/><\/p>\n<p>\n\t&nbsp;<\/p>\n<p>\n\tThen we may run GNS3 and start bulding simulated topology. I&nbsp;will use a simple scenario with one router and a cloud through which gns3 will be connected to a VB host. So drag and drop one router from left menu and then one cloud.<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\" height=\"369\" src=\"\/wp-content\/uploads\/files\/image\/netsim\/gns3\/gns3-vb\/gns3-vbox-cloud1.png\" width=\"701\" \/><\/p>\n<p>\n\t&nbsp;<\/p>\n<p>\n\tDouble click on a cloud icon inside of gns3 working space now, a node configuration dialog window should appear, then click on <em>Clouds<\/em> or cloud name inside of the left column, main configuration will apear. Choose NIO Ethernet tab and from the list menu under choose your real network adapter (the adapter is named or should be identified using win device ID).<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\" height=\"546\" src=\"\/wp-content\/uploads\/files\/image\/netsim\/gns3\/gns3-vb\/gns3-vbox-cloud2-settings.png\" width=\"701\" \/><\/p>\n<p>\n\t&nbsp;<\/p>\n<p>\n\tThen click on the <em>Add <\/em>button.<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\" height=\"546\" src=\"\/wp-content\/uploads\/files\/image\/netsim\/gns3\/gns3-vb\/gns3-vbox-cloud2-settings2.png\" width=\"701\" \/><\/p>\n<p>\n\tand <em>Apply <\/em>configuration. The dialog window will close itself.<\/p>\n<h3>\n\tInterconnecting router with VB host (cloud)<\/h3>\n<p>\n\tNow manually interconnect the router interface (for example fa0\/0) with the cloud:<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\" height=\"366\" src=\"\/wp-content\/uploads\/files\/image\/netsim\/gns3\/gns3-vb\/gns3-vbox-interconnect-cloud.png\" width=\"701\" \/><\/p>\n<p>\n\t&nbsp;<\/p>\n<p>\n\twhen moving the cursor with line over the cloud an line with previously configured network adapter will appear.<\/p>\n<p>\n\tNote: If we have previously configured several adapters for the cloud there will be several lines available.<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\" height=\"368\" src=\"\/wp-content\/uploads\/files\/image\/netsim\/gns3\/gns3-vb\/gns3-vbox-interconnect-cloud2.png\" width=\"701\" \/><\/p>\n<p>\n\t&nbsp;<\/p>\n<p>\n\tNow we should boot the router and the VB host. Configure them with right IP&nbsp;addreses for their network interfaces and finally check the interconnectivity. In my case the router IP&nbsp;address is 192.168.10.196 and PC address is 192.168.10.197:<\/p>\n<p>\n\tPing from&nbsp; the router:<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\" height=\"435\" src=\"\/wp-content\/uploads\/files\/image\/netsim\/gns3\/gns3-vb\/gns3-vbox-router2-ping.png\" width=\"686\" \/><\/p>\n<p>\n\t&nbsp;<\/p>\n<p>\n\tand subsequently ping from the VB host:<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\" height=\"425\" src=\"\/wp-content\/uploads\/files\/image\/netsim\/gns3\/gns3-vb\/gns3-vbox-pc-real-ping.png\" width=\"705\" \/><\/p>\n<p>\n\t&nbsp;<\/p>\n<h2>\n\tInterconnection using an Virtualbox host adapter<\/h2>\n<p>\n\tAs second option I will use for interconnection of gns3 with VB through VB virtual host adapter. We may again use utility <em>Network device list <\/em>to dispaly the list of net adapters recognized by GNS3:<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\" height=\"355\" src=\"\/wp-content\/uploads\/files\/image\/netsim\/gns3\/gns3-vb\/gns3-vbox-host-net-list.png\" width=\"690\" \/><\/p>\n<p>\n\t&nbsp;<\/p>\n<p>\n\tFirst, open <em>Settings <\/em>of a VB host and then choose <em>Networks<\/em>, as we may see on following image. My setting is using network adapter in a bridge mode using my real Realtek Gigabit Ethernet net adapter.<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\" border=\"1\" height=\"165\" src=\"\/wp-content\/uploads\/files\/image\/netsim\/gns3\/gns3-vb\/gns3-vbox-host-adapter-settings.png\" width=\"674\" \/><\/p>\n<p>\n\t&nbsp;<\/p>\n<p>\n\tThen start gns3 and build similar topology as we made for previous scenario. So place an router and a cloud into working space of GNS3, then click on the cloud and select virtualbox only adapter through Ethernet tab:<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\" height=\"237\" src=\"\/wp-content\/uploads\/files\/image\/netsim\/gns3\/gns3-vb\/gns3-vbox-host-cloud-settings.png\" width=\"701\" \/><\/p>\n<p>\n\t&nbsp;<\/p>\n<p>\n\tadd it and apply changes:&nbsp;<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\" border=\"1\" height=\"170\" src=\"\/wp-content\/uploads\/files\/image\/netsim\/gns3\/gns3-vb\/gns3-vbox-host-cloud-settings2.png\" width=\"701\" \/><\/p>\n<p>\n\t&nbsp;<\/p>\n<p>\n\tNow manually interconnect the router ethernet (fastethernet) interface with the cloud:<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\" height=\"172\" src=\"\/wp-content\/uploads\/files\/image\/netsim\/gns3\/gns3-vb\/gns3-vbox-host-cloud-interconnect.png\" width=\"654\" \/><\/p>\n<p>\n\t&nbsp;Now start VB host, in my case Win 7, and after booting setup inside of it correct IP&nbsp;address:<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\" height=\"471\" src=\"\/wp-content\/uploads\/files\/image\/netsim\/gns3\/gns3-vb\/gns3-vbox-host-VBhost-settings.png\" width=\"425\" \/><\/p>\n<p>\n\t&nbsp;similarly boot cisco router and configure its IP&nbsp;address. Subsequently we may check interconnectivity:<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\" height=\"437\" src=\"\/wp-content\/uploads\/files\/image\/netsim\/gns3\/gns3-vb\/gns3-vbox-host-router-settings.png\" width=\"688\" \/><\/p>\n<p>\n\t&nbsp;<\/p>\n<p>\n\tand from VB host<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\" height=\"355\" src=\"\/wp-content\/uploads\/files\/image\/netsim\/gns3\/gns3-vb\/gns3-vbox-host-hostping-check.png\" width=\"524\" \/><\/p>\n<p>\n\tWorks!<\/p>","protected":false},"excerpt":{"rendered":"<p>\n\tGNS3 simulator allow to interconnect GNS3 topology with VirtualBox hosts (for example those running Win or Linux OSs) and allows to make interesting topologies and scenarios testing with real traffic and services.<\/p>","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":[825],"tags":[],"class_list":["post-498","post","type-post","status-publish","format-standard","hentry","category-virtualization-virtualbox-en"],"taxonomy_info":{"category":[{"value":825,"label":"VirtualBox"}]},"featured_image_src_large":false,"author_info":{"display_name":"admin","author_link":"https:\/\/nil.uniza.sk\/en\/author\/admin\/"},"comment_info":3,"category_info":[{"term_id":825,"name":"VirtualBox","slug":"virtualization-virtualbox-en","term_group":0,"term_taxonomy_id":823,"taxonomy":"category","description":"","parent":819,"count":12,"filter":"raw","cat_ID":825,"category_count":12,"category_description":"","cat_name":"VirtualBox","category_nicename":"virtualization-virtualbox-en","category_parent":819}],"tag_info":false,"_links":{"self":[{"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/posts\/498","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=498"}],"version-history":[{"count":0,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/posts\/498\/revisions"}],"wp:attachment":[{"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/media?parent=498"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/categories?post=498"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nil.uniza.sk\/en\/wp-json\/wp\/v2\/tags?post=498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}