{"id":731,"date":"2014-04-05T13:32:26","date_gmt":"2014-04-05T18:32:26","guid":{"rendered":"https:\/\/www.softwareab.net\/wordpress\/?p=731"},"modified":"2014-04-07T12:53:29","modified_gmt":"2014-04-07T17:53:29","slug":"ccna-dynagendynamips-windows-7-network-access","status":"publish","type":"post","link":"https:\/\/www.softwareab.net\/wordpress\/ccna-dynagendynamips-windows-7-network-access\/","title":{"rendered":"CCNA &#8211; Dynagen\/Dynamips, Windows 7, Network Access"},"content":{"rendered":"<p>Having trouble with Dynagen on Windows 7 and getting external network access to your routers? Read on for information on how we solved the problem.<\/p>\n<p><!--more--><\/p>\n<h3>Spoiler Alert: PEBKAC<\/h3>\n<p>After doing literally days of research into the error I discuss below&#8230;well, yes, I found the problem, and it was Me. I ridiculously misinterpreted a Dynamips error message about an <code>attempt to connect to non-existent interface<\/code> as a problem with Dyanips integration with Windows 7 virtual network adapters. That was not the case. However, as so often occurs in our profession, the simple act of tirelessly pursuing an error &#8211; even a non-existent one &#8211; is instructive and leads to more knowledge. So carry on with me, Gentle Reader, as we together explore the mysteries of Dynamips, Dynagen, ProcMon, and the Windows Registry entries on virtual adapters. An educational and fun time will be had by all.<\/p>\n<h3>Dynagen\/Dynamips and Network Access<\/h3>\n<p><a href=\"http:\/\/sourceforge.net\/projects\/dyna-gen\/files\/\">Dynagen<\/a> is a command wrapper over <a href=\"http:\/\/www.ipflow.utc.fr\/index.php\/Cisco_7200_Simulator>Dynamips<\/a>. Dynamips emulates Cisco routers and is useful for studying for Cisco exams as well as for creating stand-alone labs to test new Cisco configurations without impacting a production environment. Dynagen provides console access to Dynamips and allows you to create &#8220;.NET&#8221; files that define your network topology.<\/p>\n<p>The requirement is a common one: how to enable external network access to routers within Dynagen\/Dynamips. This allows you to connect your virtual network topology to your local machine; in turn, you can then create local VMs that can use your virtual routers and you can create all sorts of lab environments. Truly a useful capability! Furthermore, there are numerous how-to articles on this topic:<\/p>\n<ul>\n<li><a href=\"http:\/\/www.gns3.net\/documentation\/gns3\/connecting-gns3-to-real-networks\/\">Connecting GNS3 to Real Networks<\/a>. This article relates to <a href=\"http:\/\/www.gns3.net\/\">GNS3<\/a> but remember that GNS3 is a GUI wrapper over Dynagen and Dynamips.<\/li>\n<li><a href=\"https:\/\/w.ntwk.cc\/connecting-dynamips-routers-to-physical-switches-located-in-different-cities\/\">Connecting Dynamips Routers to Physical Switches, Located in Different Cities!<\/a>. This article describes the detailed steps for connecting your virtual routers to a truly external network topology.<\/li>\n<li><a href=\"http:\/\/joshatterbury.com\/tutorials\/configuring-dynamips-to-use-a-linux-tap-interface\/\">Part 1 of Dynamips External Cloud Interface on Linux<\/a>. Another article that describes how to connect your virtual routers to an external network.<\/li>\n<\/ul>\n<p>The actual process for creating an external connection is straightforward:<\/p>\n<ol>\n<li>Define a network adapter on your local machine. For Windows, you can create either a loopback interface as described in <a href=\"http:\/\/rymixxx.wordpress.com\/2010\/11\/07\/how-to-make-gns3dynamips-communicate-with-your-local-network\/\">How to make GNS3\/Dynamips communicate with your local network<\/a> or you could use a tool like <a href=\"http:\/\/www.vmware.com\/products\/workstation\">VMware Workstation<\/a> to create a virtual network adapter.<\/li>\n<li>Start the Dynamips server on your local machine.<\/li>\n<li>Create your .NET configuration file with a router and a network module.<\/li>\n<li>Within the .NET configuration file, bind the virtual adapter (Microsoft loopback or VMware Workstation adapter) to a port on the network module.<\/li>\n<\/ol>\n<p>Once the router port is bound, you can then configure the router to get an IP address on that adapter and you have your external network access.<\/p>\n<h3>Problems with Windows 7 and Binding to Virtual Network Adapters<\/h3>\n<p>There are some known issues with Windows 7 and GNS3 &#8211; by extension, these are problems with Dynagen and Dynamips. According to the <a href=\"http:\/\/www.freeccnaworkbook.com\/workbooks\/ccna\/configuring-a-gns3-ethernet-nio-cloud\/\">Free CCNA Workbook<\/a>, <em>&#8220;running GNS3 on other operating systems such as Windows Vista or Windows 7 is possible but due to the compatibility of GNS3, it is currently recommended that you run GNS3 on a Windows XP machine&#8221;<\/em>. And despite numerous specific Windows 7 tutorials such as <a href=\"http:\/\/xblain.blogspot.com\/2010\/02\/connecting-gns3-lab-to-internet-part1.html\">Connecting GNS3 lab to the internet &#8211; Lesson1<\/a>, in our case we simply could not get connectivity to work. Specifically, we ran into the dreaded <code>attempt to connect to non-existent interface<\/code> when we tried to execute our .NET file.<\/p>\n<p>As it turns out, this was not really a problem (see the Spoiler Alert at the top). But why waste a perfectly good opportunity to do some debugging? Let&#8217;s get started!<\/p>\n<h3>Our Lab Setup<\/h3>\n<p>For this test to bind to Windows 7 virtual adapter, we use the following simple setup:<\/p>\n<pre><code># Win7-VirtAdapter.net\r\nautostart = False\r\n\r\n[localhost:7200]\r\n    workingdir = C:\\foo\\Dynamips\r\n\r\n    # setup for a simple legacy 3640 router\r\n    [[3640]]\r\n        chassis = 3640\r\n        image = C:\\foo\\Dynamips\\c3640-ik9o3s-mz.124-25b.image\r\n        ram = 128\r\n        ghostios = True\r\n        sparsemem = True\r\n\r\n    # load up R1 entry\r\n    [[ROUTER R1]]\r\n        model = 3640\r\n        console = 41081\r\n        slot0 = NM-1FE-TX\r\n        f0\/1 = NIO_gen_eth:\\Device\\NPF_{3BF34483-23DF-4017-8074-54241CA2F0AF}\r\n<\/code><\/pre>\n<p>There are plenty of entries on how to read this file: Create a folder named <code>C:\\foo\\Dynamips<\/code>; Copy a Cisco IOS image file to it; Read up on the Dynagen documentation; and, then learn how to start Dynamips and Dynagen (hint: use <code>Run as Administrator<\/code>).<\/p>\n<p>So we have the above file, and two Administrator Mode command prompts opened up. We&#8217;ll use one to run Dynamips server and the other to run Dynagen. We won&#8217;t even bother with the old double-click on the file from Windows Explorer and we certainly won&#8217;t resort to a cop-out like GNS3 &#8211; after all, we love the command line \ud83d\ude42<\/p>\n<p>Here&#8217;s the output from our run:<\/p>\n<p><em>Window 1 &#8211; the Dynamips Server<\/em><\/p>\n<pre><code>C:\\&gt;<strong>\"C:\\Program Files (x86)\\Dynamips\\dynamips-start.cmd\"<\/strong>\r\nCisco Router Simulation Platform (version 0.2.8-RC2-x86)\r\nCopyright (c) 2005-2007 Christophe Fillot.\r\nBuild date: Nov  9 2007 09:54:39\r\n\r\nILT: loaded table \"mips64j\" from cache.\r\nILT: loaded table \"mips64e\" from cache.\r\nILT: loaded table \"ppc32j\" from cache.\r\nILT: loaded table \"ppc32e\" from cache.\r\nHypervisor TCP control server started (port 7200).<\/code><\/pre>\n<p>All looks good on that end, the Dynamips emulator is started and ready for work. Now let&#8217;s run Dynagen manually:<\/p>\n<p><em>Window 2 &#8211; the Dynagen Process<\/em><\/p>\n<pre><code>C:\\&gt;\"<strong>C:\\Program Files (x86)\\Dynamips\\dynagen.exe\" C:\\foo\\Dynamips\\Win7-VirtAdapter.net<\/strong>\r\nReading configuration file...\r\n\r\n*** Warning:  Connecting R1 f0\/1 to NIO_gen_eth:\\Device\\NPF_{3BF34483-23DF-4017-8074-54241CA2F0AF} resulted in\r\n:\r\n        <strong>attempt to connect to non-existent interface in slot 0 on device R1<\/strong>\r\n\r\n*** Error:  errors during loading of the topology file, please correct them<\/code><\/pre>\n<p>Ack. That&#8217;s not good, especially since we believed (wrongly, of course) that we had followed all instructions carefully. Our mis-reading of the above error message convinced us that the &#8220;non-existent interface&#8221; was the Windows 7 device listed above.<\/p>\n<h3>What is this Windows 7 Virtual Network Adapter Anyways??<\/h3>\n<p>In the above we see a reference to the following:<br \/>\n<code>f0\/1 = NIO_gen_eth:\\Device\\NPF_{3BF34483-23DF-4017-8074-54241CA2F0AF}<\/code><\/p>\n<p>On the left is the interface on the emulated Dynamips router  (<em>hint &#8211; the error is staring us right in the face<\/em>) and on the right is the stylized &#8220;WinPcap-ed&#8221; version of the Windows virtual network adapter. But that does beg the question &#8211; what is that virtual adapter and why are we using it and what did we think the problem was?<\/p>\n<p>Simply put &#8211; Run the Dynamips server with the <code>-e<\/code> option to show the list of installed virtual network adapters. Here&#8217;s the output:<\/p>\n<pre><code>C:&gt;<strong>\"C:\\Program Files (x86)\\Dynamips\\dynamips.exe\" -e<\/strong>\r\nCisco Router Simulation Platform (version 0.2.8-RC2-x86)\r\nCopyright (c) 2005-2007 Christophe Fillot.\r\nBuild date: Nov  9 2007 09:54:39\r\n\r\nNetwork device list:\r\n\r\n   rpcap:\/\/\\Device\\NPF_{3BF34483-23DF-4017-8074-54241CA2F0AF} : Network adapter 'VMware Virtual Ethernet Adapter' on local host\r\n   rpcap:\/\/\\Device\\NPF_{3C2C3A7B-FD7A-4153-9172-07555A309FE5} : Network adapter 'Intel(R) 82579LM Gigabit Network Connection' on local host\r\n   rpcap:\/\/\\Device\\NPF_{5E2E04F1-C1A0-48F9-B35A-38E097441E66} : Network adapter 'VMware Virtual Ethernet Adapter' on local host\r\n   rpcap:\/\/\\Device\\NPF_{9579D7BB-3CB7-4F91-959A-B188BD86FFA0} : Network adapter 'MS LoopBack Driver' on localhost\r\n   rpcap:\/\/\\Device\\NPF_{034085DF-3A99-4D0D-ABCE-ED36529F6068} : Network adapter 'Microsoft' on local host<\/code><\/pre>\n<p>We have five network adapters listed. Because we&#8217;re running <a href=\"http:\/\/www.vmware.com\/products\/workstation\">VMware Workstation<\/a> you see a couple entries created by the VMware virtual network control panel. You also see that we installed the <a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/cc708322(v=ws.10).aspx\">Microsoft Loopback Adapter<\/a>. And &#8211; duh! &#8211; you can can see the local 1GbE NIC connection from the local PC we&#8217;re running our lab on.<\/p>\n<p>The way that Dynamips network binding works is that you attach a network adapter to an emulated switch or router. At that point it is exactly the same as if you had a real NIC, a real switch or router, and you were running a real <a href=\"http:\/\/en.wikipedia.org\/wiki\/Modular_connector#8P8C\">RJ45<\/a> cable from that NIC to a port on the switch or router. Once you have that virtual connection created, you program the interface port on the switch or router just as if it was a physical entity. Tres Kewl.<\/p>\n<p>In the list above the possible choices for me to use are either of the two VMware Virtual Ethernet Adapters, or the Microsoft Loopback Adapter. Either could be used to <a href=\"http:\/\/www.cisco.com\/c\/en\/us\/support\/docs\/ip\/network-address-translation-nat\/26704-nat-faq-00.html\">NAT<\/a> a connection to the outside world, or for strictly internal connections between processes running on the local PC and the emulated switch or router. Normally we&#8217;d use the VMware Virtual Ethernet Adapter so we can spin up <a href=\"http:\/\/en.wikipedia.org\/wiki\/Virtual_machine\">Virtual Machines<\/a> and easily connect them to our test routing infrastructure. However, on this particular PC we don&#8217;t actually have Workstation installed (the list above came from a different PC); so, we shall use the loopback adapter and solve our problem. From our troubleshooting view, it&#8217;s irrelevant which network adapter we use.<\/p>\n<p>The final bit of useful information we&#8217;ll take with us is the <code>ipconfig \/all<\/code> results for the loopback adapter; here they are:<\/p>\n<pre><code>Ethernet adapter Local Area Connection 3:\r\n\r\n   Connection-specific DNS Suffix  . :\r\n   Description . . . . . . . . . . . : Microsoft Loopback Adapter\r\n   Physical Address. . . . . . . . . : 02-00-4C-4F-4F-50\r\n   DHCP Enabled. . . . . . . . . . . : Yes\r\n   Autoconfiguration Enabled . . . . : Yes\r\n   Link-local IPv6 Address . . . . . : fe80::8d08:4b31:be43:3b65%18(Preferred)\r\n   Autoconfiguration IPv4 Address. . : 169.254.59.101(Preferred)\r\n   Subnet Mask . . . . . . . . . . . : 255.255.0.0\r\n   Default Gateway . . . . . . . . . :\r\n   DHCPv6 IAID . . . . . . . . . . . : 570556492\r\n   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-16-2B-D1-94-00-26-6C-CC-40-EA\r\n   DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1\r\n                                       fec0:0:0:ffff::2%1\r\n                                       fec0:0:0:ffff::3%1\r\n   NetBIOS over Tcpip. . . . . . . . : Enabled<\/code><\/pre>\n<p>All this is pretty standard&#8230;we have the loopback adapter, it has a <a href=\"http:\/\/en.wikipedia.org\/wiki\/MAC_address\">MAC address<\/a>, it has an <a href=\"http:\/\/www.webopedia.com\/TERM\/A\/APIPA.html\">APIPA<\/a> address because we don&#8217;t have a <a href=\"http:\/\/en.wikipedia.org\/wiki\/Dynamic_Host_Configuration_Protocol\">DHCP<\/a> server locally installed, and it&#8217;s ready to be used within our Dynamips environment.<\/p>\n<h3>Let the Debugging Begin&#8230;<\/h3>\n<p>At this point we have Dynamips\/Dynagen installed, we have a .NET file created, and we have an error where we can&#8217;t bind to our selected virtual network adapter. Let&#8217;s follow this problem through as it is a great way to learn about Dynamips.<\/p>\n<h4>The WinPcap&#8217;ed Adapter Name and the Windows Registry<\/h4>\n<p>We&#8217;ll start with the results of <code>dynamips.exe -e<\/code> &#8211; the list of virtual network adapters. Dynamips actually uses the <a href=\"http:\/\/www.winpcap.org\/\">WinPcap<\/a> package to integrate with network adapters on the local machine. WinPcap, on the other hand, references network adapters via entries in the Windows Registry. So let&#8217;s take a sample output from <code>dynamips.exe -e<\/code> on the PC we&#8217;re writing on right now:<\/p>\n<pre><code>rpcap:\/\/\\Device\\NPF_{19C675BD-53DD-4F74-818B-D6902358DEE2} : Network adapter 'MS LoopBack Driver' on localhost<\/code><\/pre>\n<p>If we open the Registry Editor (<code>regedit<\/code> from an Administrator command prompt) then we can do a search for the loopback adapter ID <code>{19C675BD-53DD-4F74-818B-D6902358DEE2}<\/code> from above. It&#8217;s quite instructive! You will find the adapter ID all over the place within the <code>HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control<\/code> registry hive. Take a look at the following screenshot:<br \/>\n<a href=\"\/wordpress\/wp-content\/uploads\/2014\/04\/ccna-dynamips-010.png\"><img loading=\"lazy\" decoding=\"async\" src=\"\/wordpress\/wp-content\/uploads\/2014\/04\/ccna-dynamips-010.png\" alt=\"ccna-dynamips-010\" width=\"880\" height=\"604\" class=\"alignnone size-full wp-image-741\" \/><\/a><\/p>\n<p>So what this shows us is that the <code>dynamips.exe -e<\/code> output appears correct&#8230;the adapter ID <code>{19C675BD-53DD-4F74-818B-D6902358DEE2}<\/code> does match to the &#8220;Local Area Connection 3&#8221; Ethernet adapter from <code>ipconfig \/all<\/code> above. So it appears that WinPcap works just fine and that Dynamips is integrating with the WinPcap library just fine &#8211; at least to find the adapter. Let the journey continue!<\/p>\n<h4>Use the Source, Luke<\/h4>\n<p>If WinPcap is working OK and Dynamips is getting info from WinPcap OK, then perhaps the problem is one relating to 64-bit vice 32-bit. Remember the warning above that GNS3 integrated &#8220;best&#8221; with Windows XP? That usually is code indicating that software which used to work great in a 32-bit world no longer works with 64-bit operating systems. So &#8211; since Dynamips and Dynagen are opensource &#8211; let&#8217;s take a look at the source code and see if we can find anything odd.<\/p>\n<ul>\n<li><a href=\"http:\/\/www.ipflow.utc.fr\/dynamips\/dynamips-0.2.7.tar.gz\">Dynamips Source Code<\/a> &#8211; This is a C application that interfaces with the underlying OS to access network functions.<\/li>\n<li><a href=\"http:\/\/sourceforge.net\/projects\/dyna-gen\/files\/dynagen%20source%20_%20Linux\/dynagen%200.11.0\/dynagen-0.11.0.tar.gz\/download\">Dynagen Source Code<\/a> &#8211; This is a Python application that wraps over Dynamips to permit multiple emulated switches \/ routers to be managed easily.<\/li>\n<\/ul>\n<h4>Setup the Loopback Adapter<\/h4>\n<p>Let&#8217;s start by setting an IP address on our loopback adapter. From an Administrator command prompt, use the <code>netsh<\/code> command on the loopback network adapter from the <code>ipconfig \/all<\/code> command above:<\/p>\n<pre><code>netsh int ip set addr \"Local Area Connection 3\" static 10.0.0.1 255.255.255.0 none<\/code><\/pre>\n<p>Now rerun the <code>ipconfig \/all<\/code> command:<\/p>\n<pre><code>Ethernet adapter Local Area Connection 3:\r\n\r\n   Connection-specific DNS Suffix  . :\r\n   Description . . . . . . . . . . . : Microsoft Loopback Adapter\r\n   Physical Address. . . . . . . . . : 02-00-4C-4F-4F-50\r\n   DHCP Enabled. . . . . . . . . . . : No\r\n   Autoconfiguration Enabled . . . . : Yes\r\n   Link-local IPv6 Address . . . . . : fe80::b166:5f74:7afe:1b1f%27(Preferred)\r\n   IPv4 Address. . . . . . . . . . . : 10.0.0.1(Preferred)\r\n   Subnet Mask . . . . . . . . . . . : 255.255.255.0\r\n   Default Gateway . . . . . . . . . :\r\n   DHCPv6 IAID . . . . . . . . . . . : 822214732\r\n   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-19-CE-3F-F1-2C-59-E5-00-7E-FA\r\n   DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1\r\n                                       fec0:0:0:ffff::2%1\r\n                                       fec0:0:0:ffff::3%1\r\n   NetBIOS over Tcpip. . . . . . . . : Enabled<\/pre>\n<p><\/code><\/p>\n<p>Yup, we've got the IP address. So let's continue.<\/p>\n<h4>What about Just Dynamips?<\/h4>\n<p>Given the error message above, let's try the command without Dynagen and instead just use base Dynamips. Dynamips can be invoked directly using options as specified in the  <code>README<\/code> file included with the Dynamips download source from above. Let's try starting Dynamips to run a single emulated router session using one of our downloaded images and binding a network interface to the loopback adapter:<\/p>\n<pre><code>C:&gt;\"C:\\Program Files (x86)\\Dynamips\\dynamips.exe\" -P 3600 -t 3640 -p 0:NM-4E -s 0:0:gen_eth:\"\\Device\\NPF_{9579D7BB-3CB7-4F91-959A-B188BD86FFA0}\" \"C:\\foo\\Dynamips\\c3640-ik9o3s-mz.124-25b.image\"<\/pre>\n<p><\/code><\/p>\n<p>We won't cover every Dynamips command line parameter except for the ones we use:<\/p>\n<ul>\n<li><code>-P 3600<\/code> - Emulate a platform, in this case the 3600-series of routers. Dynamips supports a number of router\/switch series: 7200, 3600, 2691, 3725, and 3745. The one you use depends on the image you have available. We have the 3640 router image (version 12.4, release 25(b)).<\/li>\n<li><code>-t 3640<\/code> - Emulate a specific chassis type, in this case the Cisco 3640 router.<\/li>\n<li><code>-p 0:NM-4E<\/code> - Define a network module, in this case a 4-port <a href=\"http:\/\/en.wikipedia.org\/wiki\/IEEE_802.3\">802.3 Ethernet<\/a> running at 10Mb, half-duplex. Dynamips supports up the following network modules:\n<ul>\n<li><code>NM-1E<\/code> - Ethernet (10Mb, half-duplex), 1 port.<\/li>\n<li><code>NM-4E<\/code> - Ethernet (10Mb, half-duplex), 4 ports.  This is what we are using for our debug test.<\/li>\n<li><code>NM-1FE-TX<\/code> - FastEthernet (100Mb, full-dupex, 1 port.<\/li>\n<li><code>NM-4T<\/code> - Serial, 4 ports. Normally serial connections are used only for router-to-router connections.<\/li>\n<li><code>NM-16ESW<\/code> - Ethernet (10Mb, half-duplex) switch module, 16 ports.<\/li>\n<li><code>Leopard-2FE<\/code> - Cisco 3660 FastEthernet in slot 0, automatically used.<\/li>\n<\/ul>\n<li><code>-s 0:0:gen_eth:\"<em>device_name<\/em>\"<\/code> - Bind a network IO interface to a network module; in this case we are binding the loopback adapter to the single Ethernet interface we defined above.<\/li>\n<\/ul>\n<p>Here's what we get:<\/p>\n<pre><code>Cisco Router Simulation Platform (version 0.2.8-RC2-x86)\r\nCopyright (c) 2005-2007 Christophe Fillot.\r\nBuild date: Nov  9 2007 09:54:39\r\n\r\nIOS image file: c:\\foo\\Dynamips\\c3640-ik9o3s-mz.124-25b.image\r\n\r\nILT: loaded table \"mips64j\" from cache.\r\nILT: loaded table \"mips64e\" from cache.\r\nILT: loaded table \"ppc32j\" from cache.\r\nILT: loaded table \"ppc32e\" from cache.\r\nCPU0: carved JIT exec zone of 16 Mb into 512 pages of 32 Kb.\r\nC3600 instance 'default' (id 0):\r\n  VM Status  : 0\r\n  RAM size   : 128 Mb\r\n  NVRAM size : 128 Kb\r\n  Chassis    : 3640\r\n  IOS image  : c:\\foo\\Dynamips\\c3640-ik9o3s-mz.124-25b.image\r\n\r\nLoading ELF file 'c:\\foo\\Dynamips\\c3640-ik9o3s-mz.124-25b.image'...\r\n\r\n<em>[...output cut...]<\/em>\r\n\r\nCisco 3640 (R4700) processor (revision 0xFF) with 124928K\/6144K bytes of memory.\r\nProcessor board ID 00000000\r\nR4700 CPU at 100MHz, Implementation 33, Rev 1.2\r\n4 Ethernet interfaces\r\nDRAM configuration is 64 bits wide with parity enabled.\r\n125K bytes of NVRAM.\r\n8192K bytes of processor board System flash (Read\/Write)\r\n\r\n\r\n         --- System Configuration Dialog ---\r\n\r\nWould you like to enter the initial configuration dialog? [yes\/no]:<\/code><\/pre>\n<p>Look at that - no error reported and we are running just as if we booted a fresh start on a 3640 router! Moreover, we can check out our interfaces:<\/p>\n<pre><code>Router&gt;<strong>en<\/strong>\r\nRouter#<strong>sh run | section include Ethernet<\/strong>\r\ninterface Ethernet0\/0\r\n no ip address\r\n shutdown\r\n half-duplex\r\nRouter#<\/code><\/pre>\n<p>Let's now assign an IP address and see if all works:<\/p>\n<p>We won't<\/p>\n<h4>Use the Source, Luke<\/h4>\n<p>If WinPcap is working OK and Dynamips is getting info from WinPcap OK, then perhaps the problem is one relating to 64-bit vice 32-bit. Remember the warning above that GNS3 integrated \"best\" with Windows XP? That usually is code indicating that software which used to work great in a 32-bit world no longer works with 64-bit operating systems. So - since Dynamips and Dynagen are opensource - let's take a look at the source code and see if we can find anything odd.<\/p>\n<ul>\n<li><a href=\"http:\/\/www.ipflow.utc.fr\/dynamips\/dynamips-0.2.7.tar.gz\">Dynamips Source Code<\/a> - This is a C application that interfaces with the underlying OS to access network functions.<\/li>\n<li><a href=\"http:\/\/sourceforge.net\/projects\/dyna-gen\/files\/dynagen%20source%20_%20Linux\/dynagen%200.11.0\/dynagen-0.11.0.tar.gz\/download\">Dynagen Source Code<\/a> - This is a Python application that wraps over Dynamips to permit multiple emulated switches \/ routers to be managed easily.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Having trouble with Dynagen on Windows 7 and getting external network access to your routers? Read on for information on how we solved the problem.<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35,36,1],"tags":[83,37],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>CCNA - Dynagen\/Dynamips, Windows 7, Network Access - softwareab<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.softwareab.net\/wordpress\/ccna-dynagendynamips-windows-7-network-access\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CCNA - Dynagen\/Dynamips, Windows 7, Network Access - softwareab\" \/>\n<meta property=\"og:description\" content=\"Having trouble with Dynagen on Windows 7 and getting external network access to your routers? Read on for information on how we solved the problem.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.softwareab.net\/wordpress\/ccna-dynagendynamips-windows-7-network-access\/\" \/>\n<meta property=\"og:site_name\" content=\"softwareab\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/cloudraticsolutions\/\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/cloudraticsolutions\/\" \/>\n<meta property=\"article:published_time\" content=\"2014-04-05T18:32:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-04-07T17:53:29+00:00\" \/>\n<meta name=\"author\" content=\"Andrew Bruce\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@realcloudratics\" \/>\n<meta name=\"twitter:site\" content=\"@realcloudratics\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Andrew Bruce\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/ccna-dynagendynamips-windows-7-network-access\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/ccna-dynagendynamips-windows-7-network-access\/\"},\"author\":{\"name\":\"Andrew Bruce\",\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/1337443eaeb75104e0410b508e67f600\"},\"headline\":\"CCNA &#8211; Dynagen\/Dynamips, Windows 7, Network Access\",\"datePublished\":\"2014-04-05T18:32:26+00:00\",\"dateModified\":\"2014-04-07T17:53:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/ccna-dynagendynamips-windows-7-network-access\/\"},\"wordCount\":156,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/1337443eaeb75104e0410b508e67f600\"},\"keywords\":[\"ccna\",\"dynagen\/dynamips\"],\"articleSection\":[\"ccna\",\"Dynagen\/Dynamips\",\"Teknocratica\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.softwareab.net\/wordpress\/ccna-dynagendynamips-windows-7-network-access\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/ccna-dynagendynamips-windows-7-network-access\/\",\"url\":\"https:\/\/www.softwareab.net\/wordpress\/ccna-dynagendynamips-windows-7-network-access\/\",\"name\":\"CCNA - Dynagen\/Dynamips, Windows 7, Network Access - softwareab\",\"isPartOf\":{\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/#website\"},\"datePublished\":\"2014-04-05T18:32:26+00:00\",\"dateModified\":\"2014-04-07T17:53:29+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/ccna-dynagendynamips-windows-7-network-access\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.softwareab.net\/wordpress\/ccna-dynagendynamips-windows-7-network-access\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/ccna-dynagendynamips-windows-7-network-access\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.softwareab.net\/wordpress\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ccna\",\"item\":\"https:\/\/www.softwareab.net\/wordpress\/tag\/ccna\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"CCNA &#8211; Dynagen\/Dynamips, Windows 7, Network Access\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/#website\",\"url\":\"https:\/\/www.softwareab.net\/wordpress\/\",\"name\":\"softwareab\",\"description\":\"Technocratica, Technopolitik, Technophobia\",\"publisher\":{\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/1337443eaeb75104e0410b508e67f600\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.softwareab.net\/wordpress\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/1337443eaeb75104e0410b508e67f600\",\"name\":\"Andrew Bruce\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.softwareab.net\/wordpress\/wp-content\/uploads\/2024\/03\/andy-cartoon.jpg\",\"contentUrl\":\"https:\/\/www.softwareab.net\/wordpress\/wp-content\/uploads\/2024\/03\/andy-cartoon.jpg\",\"width\":400,\"height\":330,\"caption\":\"Andrew Bruce\"},\"logo\":{\"@id\":\"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/image\/\"},\"description\":\"Team-oriented systems mentor with deep knowledge of numerous software methodologies, technologies, languages, and operating systems. Excited about turning emerging technology into working production-ready systems. Focused on moving software teams to a higher level of world-class application development. Specialties:Software analysis and development...Product management through the entire lifecycle...Discrete product integration specialist!\",\"sameAs\":[\"http:\/\/cloudraticsolutions.net\/\",\"https:\/\/www.facebook.com\/cloudraticsolutions\/\",\"https:\/\/twitter.com\/realcloudratics\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"CCNA - Dynagen\/Dynamips, Windows 7, Network Access - softwareab","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.softwareab.net\/wordpress\/ccna-dynagendynamips-windows-7-network-access\/","og_locale":"en_US","og_type":"article","og_title":"CCNA - Dynagen\/Dynamips, Windows 7, Network Access - softwareab","og_description":"Having trouble with Dynagen on Windows 7 and getting external network access to your routers? Read on for information on how we solved the problem.","og_url":"https:\/\/www.softwareab.net\/wordpress\/ccna-dynagendynamips-windows-7-network-access\/","og_site_name":"softwareab","article_publisher":"https:\/\/www.facebook.com\/cloudraticsolutions\/","article_author":"https:\/\/www.facebook.com\/cloudraticsolutions\/","article_published_time":"2014-04-05T18:32:26+00:00","article_modified_time":"2014-04-07T17:53:29+00:00","author":"Andrew Bruce","twitter_card":"summary_large_image","twitter_creator":"@realcloudratics","twitter_site":"@realcloudratics","twitter_misc":{"Written by":"Andrew Bruce","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.softwareab.net\/wordpress\/ccna-dynagendynamips-windows-7-network-access\/#article","isPartOf":{"@id":"https:\/\/www.softwareab.net\/wordpress\/ccna-dynagendynamips-windows-7-network-access\/"},"author":{"name":"Andrew Bruce","@id":"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/1337443eaeb75104e0410b508e67f600"},"headline":"CCNA &#8211; Dynagen\/Dynamips, Windows 7, Network Access","datePublished":"2014-04-05T18:32:26+00:00","dateModified":"2014-04-07T17:53:29+00:00","mainEntityOfPage":{"@id":"https:\/\/www.softwareab.net\/wordpress\/ccna-dynagendynamips-windows-7-network-access\/"},"wordCount":156,"commentCount":0,"publisher":{"@id":"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/1337443eaeb75104e0410b508e67f600"},"keywords":["ccna","dynagen\/dynamips"],"articleSection":["ccna","Dynagen\/Dynamips","Teknocratica"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.softwareab.net\/wordpress\/ccna-dynagendynamips-windows-7-network-access\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.softwareab.net\/wordpress\/ccna-dynagendynamips-windows-7-network-access\/","url":"https:\/\/www.softwareab.net\/wordpress\/ccna-dynagendynamips-windows-7-network-access\/","name":"CCNA - Dynagen\/Dynamips, Windows 7, Network Access - softwareab","isPartOf":{"@id":"https:\/\/www.softwareab.net\/wordpress\/#website"},"datePublished":"2014-04-05T18:32:26+00:00","dateModified":"2014-04-07T17:53:29+00:00","breadcrumb":{"@id":"https:\/\/www.softwareab.net\/wordpress\/ccna-dynagendynamips-windows-7-network-access\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.softwareab.net\/wordpress\/ccna-dynagendynamips-windows-7-network-access\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.softwareab.net\/wordpress\/ccna-dynagendynamips-windows-7-network-access\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.softwareab.net\/wordpress\/"},{"@type":"ListItem","position":2,"name":"ccna","item":"https:\/\/www.softwareab.net\/wordpress\/tag\/ccna\/"},{"@type":"ListItem","position":3,"name":"CCNA &#8211; Dynagen\/Dynamips, Windows 7, Network Access"}]},{"@type":"WebSite","@id":"https:\/\/www.softwareab.net\/wordpress\/#website","url":"https:\/\/www.softwareab.net\/wordpress\/","name":"softwareab","description":"Technocratica, Technopolitik, Technophobia","publisher":{"@id":"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/1337443eaeb75104e0410b508e67f600"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.softwareab.net\/wordpress\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/1337443eaeb75104e0410b508e67f600","name":"Andrew Bruce","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/image\/","url":"https:\/\/www.softwareab.net\/wordpress\/wp-content\/uploads\/2024\/03\/andy-cartoon.jpg","contentUrl":"https:\/\/www.softwareab.net\/wordpress\/wp-content\/uploads\/2024\/03\/andy-cartoon.jpg","width":400,"height":330,"caption":"Andrew Bruce"},"logo":{"@id":"https:\/\/www.softwareab.net\/wordpress\/#\/schema\/person\/image\/"},"description":"Team-oriented systems mentor with deep knowledge of numerous software methodologies, technologies, languages, and operating systems. Excited about turning emerging technology into working production-ready systems. Focused on moving software teams to a higher level of world-class application development. Specialties:Software analysis and development...Product management through the entire lifecycle...Discrete product integration specialist!","sameAs":["http:\/\/cloudraticsolutions.net\/","https:\/\/www.facebook.com\/cloudraticsolutions\/","https:\/\/twitter.com\/realcloudratics"]}]}},"_links":{"self":[{"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/posts\/731"}],"collection":[{"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/comments?post=731"}],"version-history":[{"count":9,"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/posts\/731\/revisions"}],"predecessor-version":[{"id":746,"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/posts\/731\/revisions\/746"}],"wp:attachment":[{"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/media?parent=731"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/categories?post=731"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.softwareab.net\/wordpress\/wp-json\/wp\/v2\/tags?post=731"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}