Connecting GNS3 to VMware Workstation

KB ID 0000996 

Problem

A while back I got an email “Here is a suggestion for an article. ‘How to link GNS3 with VMware Workstation'”. Sorry it’s taken me so long to get round to it, here you go Daniel Newton.

Solution

Before we start I’m assuming you have installed VMware Workstation, and you’ve installed and configured GNS3.

1. Launch VMware Workstation > Edit > Virtual Network Editor > By default there will be three networks, the one we are concerned with is the ‘NAT‘ one. I change the default IP range, (in the example below to 123.123.123.123 255.255.255.0) > Apply > OK.

GNS3 and VMware

2. NAT Settings > Set the default gateway for the network (Tip: Don’t choose .1, I’ve had problems with that in the past) > OK.

GNS3 and VMware

3. DHCP Settings > Even if you’re not going to use DHCP, enter a range of IP addresses on your network > OK.

GNS3 and VMware

4. Windows Key + R > ncpa.cpl {Enter} > Notice there’s two new network connections, one for the NAT network, and one for the ‘Host only’ network.

GNS3 and VMware

5. To avoid confusion, I rename them.

GNS3 and VMware

6. So they are easily identifiable, (you will see why later).

GNS3 and VMware

7. In GNS3 drag a ‘Cloud’ onto your workspace.

GNS3 and VMware

8. Right click > Configure > NIO Ethernet > Select the Network drop-down box > Select your VMware NAT interface.

GNS3 and VMware

9. Add > Apply > OK.

GNS3 and VMware

10. Note: If you are working with Cisco ASA firewalls, you cannot simply connect it to the cloud, you need to put a hub/switch or router in between them, or you will see this error message;

Dynamips error
Device does not support this type of NIO. Use an ETHSW or
hub to bridge the connection to the NIO instead.

Dynamips Error

11. With a switch in between you can connect them together.

GNS3 and VMware

12. Now if you give the outside of the firewall an IP on the correct network range (you configure in step 1), and set its default route to point to the gateway address, (you configured in step 2). You will have public Internet access, (assuming the host computer has Internet access).

GNS3 and VMware

13 Working with routers (and switches) you can connect them directly to the cloud.

GNS3 and VMware

14. Again set the interface IP correctly, and the default route, and you will have public Internet access.

GNS3 and VMware

 

Related Articles, References, Credits, or External Links

NA

Author: Migrated

Share This Post On