Hi there, in my last articles we had covered Interfacing of GNS3 router to physical computer and Connect GNS3 to VirtualBox. Today I’m gonna to describe the sequential procedure to connect GNS3 to internet over host Wi-Fi adapter and over Ethernet adapter. There are many virtual networking tutorials available in the internet explaining the same. But all those describes with reference to Ethernet adapter. So I’m planning to connect GNS3 to internet via Wireless NIC adapter as well as Ethernet adapter. If you connect GNS3 router to internet over wireless adapter (Wi-Fi) it is very easy to realize virtual networks. GNS3 delivers a full featured virtual network simulator atmosphere for you.
The tutorial based on Windows platform since I’m a Windows user. So now let’s start our virtual network lab with GNS3.
Before You Begin
- You must know how to add and configure Microsoft Loopback adapter in Windows. Please check out Connecting GNS3 to Real Networks via Microsoft Loopback adapter.
- Basic understanding of virtual network software GNS3 and you should have Cisco IOS image.
Connect GNS3 to Internet via Host Wi-Fi (wireless) NIC Adapter
Actually we are creating a Microsoft loopback adapter (virtual network adapter) and sharing the internet from Wireless NIC to the newly created loopback adapter by NAT (Network Address Translation) for virtual network computing.
Here I renamed the adapter to ‘LoopBack_NAT’ for simple identification.
Step 2: Configure NAT in Windows Networking and Sharing Center
Open Networking and Sharing Center, then right click Wi-Fi adapter → Properties.
In the Sharing tab check ‘Allow other network users to connect through this computer’s internet connection’ and then select appropriate loopback adapter that you like to share internet. I selected LoopBack_NAT which is the Microsoft loopback adapter that I created in step 1.
Once you click OK, the loopback adapter IP will change automatically to a static IP and you will see Wi-Fi shared in the Wireless NIC.
Step 3: Configure Cloud in GNS3
Open GNS3, and drag a cloud to workspace.
Double click on the cloud to configure, then select the required loopback adapter. For this reason I renamed my loopback adapter.
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip address dhcp
*Jun 22 15:44:37.567: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed sta te to up
*Jun 22 15:44:38.567: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEt hernet0/0, changed state to up
*Jun 22 15:44:55.019: %DHCP-6-ADDRESS_ASSIGN: Interface FastEthernet0/0 assigned DHCP address 192.168.137.141, mask 255.255.255.0, hostname R1
*Jun 22 15:45:20.319: %SYS-5-CONFIG_I: Configured from console by console
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 22.214.171.124, timeout is 2 seconds:
Success rate is 100 percent (5/5), round-trip min/avg/max = 148/162/184 ms
In order to ping public IP/ domain you have to enable IP domain lookup in the router.
So I used R1(config)#ip domain-lookup command in the configuration. Otherwise you can’t ping a public domain.
Connect GNS3 to Internet via Host Ethernet NIC Adapter
This is really simple procedure, no more NAT and loopback adapter! Directly we are bypassing the host Ethernet NIC to GNS3.
That’s it; we have covered all basic stuffs in GNS3. Did you connect gns3 to internet windows 7?
My next article onwards I will share some advanced Cisco router configurations. Keep visiting SPT for more GNS3 and Cisco articles. If you liked this post please share to your friends and like our Facebook page to get more updates.