connect gns3 to the internet (gns3 vm)

49
Connect GNS3 to the Internet (GNS3 VM)

Upload: others

Post on 17-May-2022

84 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Connect GNS3 to the Internet (GNS3 VM)

Connect GNS3 to the Internet (GNS3 VM)

Page 2: Connect GNS3 to the Internet (GNS3 VM)

1. The topology created in this document looks as follows:

Page 3: Connect GNS3 to the Internet (GNS3 VM)

The topology created in this document looks as follows:

Page 4: Connect GNS3 to the Internet (GNS3 VM)

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

DOWNLOAD THE INTERNET APPLIANCE FROM THE GNS3 WEBSITE

Page 5: Connect GNS3 to the Internet (GNS3 VM)

2. Click Appliances:

Page 6: Connect GNS3 to the Internet (GNS3 VM)

3. Select the Internet for GNS3 VM appliance:

Page 7: Connect GNS3 to the Internet (GNS3 VM)

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

Page 8: Connect GNS3 to the Internet (GNS3 VM)

5. The appliance is downloaded to your local PC:

Page 9: Connect GNS3 to the Internet (GNS3 VM)

1. Create a new GNS3 topology:

IMPORT GNS3 APPLIANCE

Page 10: Connect GNS3 to the Internet (GNS3 VM)

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

Page 11: Connect GNS3 to the Internet (GNS3 VM)

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

Page 12: Connect GNS3 to the Internet (GNS3 VM)

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

Page 13: Connect GNS3 to the Internet (GNS3 VM)

5. The Internet window displays. Review the summary information: “This appliance simulates a domestic modem. It provides IP addresses using DHCP and will NAT all 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 range. Multiple internets can be configured and will have different IP address ranges from 172.16.1.0/24 to 172.16.2.0/24”

Click Next >:

Page 14: Connect GNS3 to the Internet (GNS3 VM)

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 >:

Page 15: Connect GNS3 to the Internet (GNS3 VM)

7. An operating system is bundled with the Internet new appliance.

Click Next >:

Page 16: Connect GNS3 to the Internet (GNS3 VM)

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

Page 17: Connect GNS3 to the Internet (GNS3 VM)

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

Page 18: Connect GNS3 to the Internet (GNS3 VM)

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

Page 19: Connect GNS3 to the Internet (GNS3 VM)

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

Page 20: Connect GNS3 to the Internet (GNS3 VM)

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

Page 21: Connect GNS3 to the Internet (GNS3 VM)

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

Page 22: Connect GNS3 to the Internet (GNS3 VM)

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

Page 23: Connect GNS3 to the Internet (GNS3 VM)

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

Page 24: Connect GNS3 to the Internet (GNS3 VM)

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

Page 25: Connect GNS3 to the Internet (GNS3 VM)

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

Page 26: Connect GNS3 to the Internet (GNS3 VM)

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

Page 27: Connect GNS3 to the Internet (GNS3 VM)

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

Page 28: Connect GNS3 to the Internet (GNS3 VM)

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

Page 29: Connect GNS3 to the Internet (GNS3 VM)

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:

Page 30: Connect GNS3 to the Internet (GNS3 VM)

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

Page 31: Connect GNS3 to the Internet (GNS3 VM)

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 and the link was joined to the cloud Internet_0.1-1

Page 32: Connect GNS3 to the Internet (GNS3 VM)

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

Page 33: Connect GNS3 to the Internet (GNS3 VM)

26. Add another link between R2 and R1:

Page 34: Connect GNS3 to the Internet (GNS3 VM)

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:

Page 35: Connect GNS3 to the Internet (GNS3 VM)

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

Page 36: Connect GNS3 to the Internet (GNS3 VM)

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:

Page 37: Connect GNS3 to the Internet (GNS3 VM)

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

Page 38: Connect GNS3 to the Internet (GNS3 VM)

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

Page 39: Connect GNS3 to the Internet (GNS3 VM)

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:~$

Page 40: Connect GNS3 to the Internet (GNS3 VM)

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.

Page 41: Connect GNS3 to the Internet (GNS3 VM)

3. Configure 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#

Page 42: Connect GNS3 to the Internet (GNS3 VM)

4. Ensure that the router is configured 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#

Page 43: Connect GNS3 to the Internet (GNS3 VM)

5. Ping google.com:

R1# ping google.com

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.

Page 44: Connect GNS3 to the Internet (GNS3 VM)

6. Configure IP addressing on the Internal GNS3 network:

Page 45: Connect GNS3 to the Internet (GNS3 VM)

Configuration 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# configure terminal

R2(config)# interface FastEthernet 0/0

R2(config-if)# ip address 10.1.1.2 255.255.255.0

R2(config-if)# no shutdown

R2(config-if)# exit

R2(config)#

Page 46: Connect GNS3 to the Internet (GNS3 VM)

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

R1R1(config)# router ospf 1

R1(config-router)# network 10.0.0.0 0.255.255.255 area 0

R1(config-router)# default-information originate

R1(config-router)# end

R1#

R2R2(config)# router ospf 1

R2(config-router)# network 10.0.0.0 0.255.255.255 area 0

R2(config-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

Page 47: Connect GNS3 to the Internet (GNS3 VM)

8. Configure 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#

Page 48: Connect GNS3 to the Internet (GNS3 VM)

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

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

Page 49: Connect GNS3 to the Internet (GNS3 VM)

10. Test R2 connectivity to the Internet:

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 configured Internet connectivity from GNS3 VM devices.