Sie sind auf Seite 1von 23

9/13/2017 Connect GNS3 to the Internet (GNS3 VM) - GNS3

DOWNLOAD DOCUMENTATION COMMUNITY MARKETPLACE ACADEMY

DOCUMENTATION   /   CONNECT GNS3 TO THE INTERNET (GNS3 VM)  Search Documentation

Last updated
August 3, 2017
INTRODUCTION
Contributors
David Bombal
Julien Duponchelle
DOWNLOAD THE INTERNET
APPLIANCE FROM THE GNS3
WEBSITE
EDIT THIS ARTICLE


IMPORT GNS3 APPLIANCE

Connect GNS3 to the Internet (GNS3 VM)


CONFIGURE THE GNS3
NETWORK:

Last updated
INTRODUCTION
August 3, 2017

Contributors
David Bombal
ThisJulien
document explains how to connect GNS3 topologies to the Internet.
Duponchelle

This document explains how to connect GNS3 topologies to the Internet when using the GNS3 VM.
EDIT THIS ARTICLE

Note If you are using a local install of GNS3, refer to this document.

The topology created in this document looks as follows:

WARNING
 Ensure that your PC rewall is not blocking GNS3 tra c. If necessary, turn off your PC’s rewall.

DOWNLOAD THE INTERNET APPLIANCE FROM THE GNS3 WEBSITE


https://docs.gns3.com/1EjaCJlcM0RYIyyE_MbJOYNatEBnffOX5tcnJShR_KfY/index.html 1/23
9/13/2017 Connect GNS3 to the Internet (GNS3 VM) - GNS3

1. Using a web browser, browse to https://gns3.com and click the MARKETPLACE menu item:

2. Click Appliances:

https://docs.gns3.com/1EjaCJlcM0RYIyyE_MbJOYNatEBnffOX5tcnJShR_KfY/index.html 2/23
9/13/2017 Connect GNS3 to the Internet (GNS3 VM) - GNS3

3. Select the Internet for GNS3 VM appliance:        

https://docs.gns3.com/1EjaCJlcM0RYIyyE_MbJOYNatEBnffOX5tcnJShR_KfY/index.html 3/23
9/13/2017 Connect GNS3 to the Internet (GNS3 VM) - GNS3

4. An appliance description is displayed. Con rm details of the appliance and then click Download Template:

https://docs.gns3.com/1EjaCJlcM0RYIyyE_MbJOYNatEBnffOX5tcnJShR_KfY/index.html 4/23
9/13/2017 Connect GNS3 to the Internet (GNS3 VM) - GNS3

5. The appliance is downloaded to your local PC:

IMPORT GNS3 APPLIANCE

NOTE
This document assumes that you already have both the GNS3 Graphical User Interface installed (GNS3-all-in-one) and the GNS3 VM integrated with GNS3. Please refer t
on how to install the GNS3 all-in-one package and how to download and con gure the GNS3 VM.

1. Create a new GNS3 topology:

        

https://docs.gns3.com/1EjaCJlcM0RYIyyE_MbJOYNatEBnffOX5tcnJShR_KfY/index.html 5/23
9/13/2017 Connect GNS3 to the Internet (GNS3 VM) - GNS3

2. Name the project and click OK:. In this example, the name GNS3-VM-Internet is used:

        

        

3. In the GNS3 user interface, click File and then Import appliance:

4. Navigate to your Downloads folder, select the internet.gns3a appliance and then click Open:

https://docs.gns3.com/1EjaCJlcM0RYIyyE_MbJOYNatEBnffOX5tcnJShR_KfY/index.html 6/23
9/13/2017 Connect GNS3 to the Internet (GNS3 VM) - GNS3

5. The Internet window displays. Review the summary information: “This appliance simulates a domestic modem. It provides IP addresses using
connections to the Internet without you having to use a cloud interface in your GNS3 topologies. The IP subnets used are in the 172.16.0.0/16
be con gured and will have different IP address ranges from 172.16.1.0/24 to 172.16.2.0/24”

Click Next >:

6. Select the Run the appliance on the GNS VM (recommend) Server type because the GNS3 VM is required for this server type.

Click Next > :

https://docs.gns3.com/1EjaCJlcM0RYIyyE_MbJOYNatEBnffOX5tcnJShR_KfY/index.html 7/23
9/13/2017 Connect GNS3 to the Internet (GNS3 VM) - GNS3

7. An operating system is bundled with the Internet new appliance. Click Next >:

8. A con rmation prompt is displayed. Click Yes to install the appliance:

9. A Summary of settings are displayed. Click Next > to continue:

https://docs.gns3.com/1EjaCJlcM0RYIyyE_MbJOYNatEBnffOX5tcnJShR_KfY/index.html 8/23
9/13/2017 Connect GNS3 to the Internet (GNS3 VM) - GNS3

10. A Usage screen is displayed. Click Finish to complete the appliance addition

11. The appliance is added to GNS3 and a success message displayed. Click OK:

12. Click the Browse all Devices menu option to view the newly imported GNS3 appliance:

https://docs.gns3.com/1EjaCJlcM0RYIyyE_MbJOYNatEBnffOX5tcnJShR_KfY/index.html 9/23
9/13/2017 Connect GNS3 to the Internet (GNS3 VM) - GNS3

13. OptionalYou can view the appliance settings by clicking Edit and then Preferences:

14. Optional Click on the appliance type (will vary) to view the appliance details:

https://docs.gns3.com/1EjaCJlcM0RYIyyE_MbJOYNatEBnffOX5tcnJShR_KfY/index.html 10/23
9/13/2017 Connect GNS3 to the Internet (GNS3 VM) - GNS3

15. Once you have imported the new appliance into GNS3, you can create topologies which include the new appliance. Drag and drop the Internet
Toolbar to the GNS3 Workspace. You may be prompted to upload the appliance operating system to the GNS3 VM. Click Yes to upload the app

16. The appliance operating system is uploaded to the GNS3 VM

17. To add a router to the GNS3 topology, clickn the Routers button on the Devices_Toolbar

https://docs.gns3.com/1EjaCJlcM0RYIyyE_MbJOYNatEBnffOX5tcnJShR_KfY/index.html 11/23
9/13/2017 Connect GNS3 to the Internet (GNS3 VM) - GNS3

18. The routers available will depend on your GNS3 con guration. In this example both a local router and GNS3 VM router are available.

19. Drag and drop a GNS3 VM router to the GNS3 Workspace. An instance of the node becomes available in the Workspace:

https://docs.gns3.com/1EjaCJlcM0RYIyyE_MbJOYNatEBnffOX5tcnJShR_KfY/index.html 12/23
9/13/2017 Connect GNS3 to the Internet (GNS3 VM) - GNS3

20. Drag and drop another local router to the GNS3 Workspace:

21. Click the Toolbar Device button again to collapse the group:

https://docs.gns3.com/1EjaCJlcM0RYIyyE_MbJOYNatEBnffOX5tcnJShR_KfY/index.html 13/23
9/13/2017 Connect GNS3 to the Internet (GNS3 VM) - GNS3

22. Click the Add a Link button to start adding links to your topology. The mouse cursor will change to indicate that links can be added:

23. Click on the rst router topology to display available interfaces (this is device dependant):

https://docs.gns3.com/1EjaCJlcM0RYIyyE_MbJOYNatEBnffOX5tcnJShR_KfY/index.html 14/23
9/13/2017 Connect GNS3 to the Internet (GNS3 VM) - GNS3

24. Click the interface and then select the cloud in the topology to connect the interface to. In this example FastEthernet 0/0 on R1 was selected a
cloud Internet_0.1-1

25. Select an interface on the cloud to complete the connection. In this example, Ethernet0 on cloud Internet 0.1-1 was selected:

https://docs.gns3.com/1EjaCJlcM0RYIyyE_MbJOYNatEBnffOX5tcnJShR_KfY/index.html 15/23
9/13/2017 Connect GNS3 to the Internet (GNS3 VM) - GNS3

26. Add another link between R2 and R1:

27. Click the Add a Link button to stop adding links. The mouse cursor will change back to normal to indicate that you have stopped adding links:

https://docs.gns3.com/1EjaCJlcM0RYIyyE_MbJOYNatEBnffOX5tcnJShR_KfY/index.html 16/23
9/13/2017 Connect GNS3 to the Internet (GNS3 VM) - GNS3

28. If not already done, click the Show/Hide interface labels button on the GNS3 Toolbar to display interface labels in your topology:

29. You are now ready to power on your network devices. Click the Start/Resume button on the GNS3 Toolbar to start up your network devices:

https://docs.gns3.com/1EjaCJlcM0RYIyyE_MbJOYNatEBnffOX5tcnJShR_KfY/index.html 17/23
9/13/2017 Connect GNS3 to the Internet (GNS3 VM) - GNS3

30. Click the Console connect to all devices button on the GNS3 Toolbar to open a connection to every device in the topology:

31. A console connection is opened to each router in the topology:

https://docs.gns3.com/1EjaCJlcM0RYIyyE_MbJOYNatEBnffOX5tcnJShR_KfY/index.html 18/23
9/13/2017 Connect GNS3 to the Internet (GNS3 VM) - GNS3

CONFIGURE THE GNS3 NETWORK:


1. Login to the GNS3 Internet appliance:

        Username: gns3

        Password: gns3

username 'gns3', password 'gns3'


Run filetool.sh -b if you want to save your changes
box login: gns3
Password:
( '>')
/) TC (\ Core is distributed with ABSOLUTELY NO WARRANTY.
(/-_--_-\) www.tinycorelinux.net

gns3@box:~$

https://docs.gns3.com/1EjaCJlcM0RYIyyE_MbJOYNatEBnffOX5tcnJShR_KfY/index.html 19/23
9/13/2017 Connect GNS3 to the Internet (GNS3 VM) - GNS3

2. Ping google.com:

         gns3@box:~$ ping google.com

PING google.com (216.58.201.46): 56 data bytes


64 bytes from 216.58.201.46: seq=0 ttl=127 time=14.306 ms
64 bytes from 216.58.201.46: seq=1 ttl=127 time=13.987 ms
^C
--- google.com ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 13.987/14.146/14.306 ms
gns3@box:~$

        Result The GNS3 Internet appliance is able to ping Internet devices.

3. Con gure the IP address of R1 (connected to the cloud):

R1# configure terminal


R1(config)# interface FastEthernet 0/0
R1(config-if)# ip address dhcp
R1(config-if)# no shutdown
R1(config-if)# end
R1#

        

        Result An IP address is allocated to the router by the Cloud DHCP server:

R1#
*Mar 1 00:02:14.619: %DHCP-6-ADDRESS_ASSIGN: Interface FastEthernet0/0 assigned DHCP address 172.16.48.202, mask 255.255.255.0, hostname R1

R1#

4. Ensure that the router is con gured to use the correct DNS server:

         R1# configure terminal

R1(config)# ip domain-lookup
R1(config)# ip name-server 8.8.8.8
R1(config)# end
R1#

Note By default the DHCP server on the Internet cloud will advertise itself as the DNS server and will reply to DNS queries.

5. Ping google.com:

         R1# ping google.com

https://docs.gns3.com/1EjaCJlcM0RYIyyE_MbJOYNatEBnffOX5tcnJShR_KfY/index.html 20/23
9/13/2017 Connect GNS3 to the Internet (GNS3 VM) - GNS3

Translating "google.com"...domain server (172.16.48.1) [OK]

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 216.58.201.46, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/21/32 ms
R1#

        Result Pings succeed.

        

If your pings don’t succeed, ensure that you have connectivity to your default gateway and ensure that the default gateway is con gured for NAT to
to the GNS3 router. Also ensure that your rewalls are not blocking tra c.

6. Con gure IP addressing on the Internal GNS3 network:

        Con guration on the routers:

        R1         R1# configure terminal

R1(config)# interface FastEthernet 0/1


R1(config-if)# ip address 10.1.1.1 255.255.255.0
R1(config-if)# no shutdown
R1(config-if)# exit
R1(config)#

R2R2# con gure terminal


R2(con g)# interface FastEthernet 0/0
R2(con g-if)# ip address 10.1.1.2 255.255.255.0
R2(con g-if)# no shutdown

https://docs.gns3.com/1EjaCJlcM0RYIyyE_MbJOYNatEBnffOX5tcnJShR_KfY/index.html 21/23
9/13/2017 Connect GNS3 to the Internet (GNS3 VM) - GNS3

R2(con g-if)# exit


R2(con g)#

7. Con gure OSPF on R1 and R2 and advertise a default route:

R1R1(con g)# router ospf 1


R1(con g-router)# network 10.0.0.0 0.255.255.255 area 0
R1(con g-router)# default-information originate
R1(con g-router)# end
R1#

R2R2(con g)# router ospf 1


R2(con g-router)# network 10.0.0.0 0.255.255.255 area 0
R2(con g-router)# end
R2#

        Result OSPF neighbor relationships are established:

        

        R1*Mar  1 00:10:30.275: %OSPF-5-ADJCHG: Process 1, Nbr 10.1.1.2 on FastEthernet0/1 from LOADING to FULL, Loading Done

R2*Mar  1 00:10:30.307: %OSPF-5-ADJCHG: Process 1, Nbr 172.16.48.202 on FastEthernet0/0 from LOADING to FULL, Loading Done

        

Note If the OSPF relationships are not formed, wait 30 seconds and check your con guration. Make sure you have con gured IP addresses correctl
cabled the GNS3 network correctly.

8. Con gure DNS settings on R2:

         R2# configure terminal

R2(config)# ip domain-lookup
R2(config)# ip name-server 8.8.8.8
R2(config)# end
R2#

9. R2 will not be able to ping Internet devices until you con gure NAT on R1. In this example, the Internet gateway does not support routing, so NA

R1# configure terminal


R1(config)# interface FastEthernet 0/0
R1(config-if)# ip nat outside
R1(config-if)# interface FastEthernet 0/1
R1(config-if)# ip nat inside
R1(config)# ip nat inside source list 1 interface FastEthernet 0/0 overload
R1(config)# access-list 1 permit 10.0.0.0 0.255.255.255
R1(config)# end
R1# wr

10. Test R2 connectivity to the Internet:

https://docs.gns3.com/1EjaCJlcM0RYIyyE_MbJOYNatEBnffOX5tcnJShR_KfY/index.html 22/23
9/13/2017 Connect GNS3 to the Internet (GNS3 VM) - GNS3

R2# ping google.com

Translating "google.com"...domain server (8.8.8.8) [OK]

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 74.125.140.138, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 36/40/44 ms
R2# wr

        Result R2 is able to ping devices on the Internet.

11. Congratulations! You have con gured Internet connectivity from GNS3 VM devices.

https://docs.gns3.com/1EjaCJlcM0RYIyyE_MbJOYNatEBnffOX5tcnJShR_KfY/index.html 23/23

Das könnte Ihnen auch gefallen