Introduction to lab assignments with GNS3

Similar documents
Politecnico di Torino TSR/CNTS, PRL, PAR. Tutorial. User guide and helpful tips. Fulvio Risso and Marco Leogrande

IPv6 on routers. Computer Network Technologies and Services (CNTS) Tecnologie e Servizi di Rete (TSR)

Basic Cisco Router Configuration: Multiple Routers

LAB THREE STATIC ROUTING

Packet Tracer - Connect a Router to a LAN (Instructor Version)

Lab 4.2.5a Connectivity Tests Ping

NETWORK LAB 2 Configuring Switch Desktop

Lab Troubleshooting Using traceroute Instructor Version 2500

Using Packet Tracer to Build a Network

Exercises on IP Addressing

Chapter 2: Configure a Network Operating System. Every computer requires an operating system to function, including computerbased

MPLS router configuration

Lab 5.6b Configuring AAA and RADIUS

Lab Configure Cisco IOS Firewall CBAC

Basics of GNS3 and Cisco IOS

Chapter 10 - Configure ASA Basic Settings and Firewall using ASDM

Network Security Laboratory 23 rd May STATEFUL FIREWALL LAB

CCNA 1 Chapter 2 v5.0 Exam Answers %

Lab Catalyst 2950 and 3550 Series Intra-VLAN Security

Enter your answers to the questions in this lab using Canvas Quiz Ch.5 Global Unicast Address + Lab. Additional questions are included in the quiz.

Packet Tracer Mini-Lab 08: Supplement Configuring 2 LANs/2 Routers using Config, CLI, & RIPv2

Router Configuration. Router Fundamentals Connecting to the Console Port Router Modes -- User EXEC Router Modes -- Privileged EXEC Lab #9 Goals

Installing the Server Operating System or Hypervisor

Lab 9: VPNs IPSec Remote Access VPN

CCNA 1 Chapter 2 v5.0 Exam Answers 2013

kurguide Documentation

Implement Static Routes for IPv6 Configuration Example

Chapter 8 Lab 8-3, Configuring 6to4 Tunnels

Lab Configuring and Verifying Standard IPv4 ACLs Topology

Configuration and management of Networks LAB 1 Introduction to packet tracer

Starting the KVM Console

Access Switch VLAN Y Y.1 /24

Classful Address Subnet Mask Number of Hosts per Subnet (2 x 2)

Lab - Troubleshooting Connectivity Issues

Lab 1. CLI Navigation. Scenario. Initial Configuration for R1

Lab Configuring and Verifying Standard ACLs Topology

Lab - Using Wireshark to Examine TCP and UDP Captures

Lab Capturing and Analyzing Network Traffic

BSc Year 2 Data Communications Lab - Using Wireshark to View Network Traffic. Topology. Objectives. Background / Scenario

Lab Configuring and Verifying Standard IPv4 ACLs (Instructor Version Optional Lab)

ICND1. Switch Configuration Lab. All configurations have been set to factory defaults for these labs

Lab - Examining Telnet and SSH in Wireshark

Packet Tracer Mini-Lab 05: Supplement Configuring 2 LANs with 2 Routers using CLI in Packet Tracer

How to make a Work Profile for Windows 10

Remote Desktop How to guide

CCNA Discovery Server Live CD v2.0

FACULTY OF ENGINEERING. Lab Experiment

Lab 5. Spanning Tree. Overview. JNCIS-ENT Bootcamp

Installing the Operating System or Hypervisor

Lab 5: Basic VLAN Configuration

King Fahd University of Petroleum & Minerals. Configuration of Routers and Establishing Routed Networks

This document is exclusive property of Cisco Systems, Inc. Permission is granted to print and copy this document for non-commercial distribution and

Lab 7 Configuring Basic Router Settings with IOS CLI

Chapter 8 Lab 8-2, Using Manual IPv6 Tunnels with EIGRP for IPv6

How to set up an Amazon Work Profile for Windows 8

MiPDF.COM. 3. Which procedure is used to access a Cisco 2960 switch when performing an initial configuration in a secure environment?

GAME100 Lab 5. Before beginning the lab, please download and install Cisco Packet Trace

CHAPTER 2 ACTIVITY

Chapter 10 Lab 10-2, Securing VLANs INSTRUCTOR VERSION

Lab Troubleshooting LAN Connectivity

Packet Tracer Create a Simple Network Using Packet Tracer

Packet Tracer Mini-Lab 04: Supplement Configuring 2 LANs and 2 Routers with Config in Packet Tracer

Lab Using Wireshark to Examine Ethernet Frames

Gns3 You Must Use 'manual Mode' To Connect A Link

Lab 2. Spanning Tree Protocols. Overview. JNCIS-ENT++ Bootcamp

Lab - Remote Desktop in Windows 8

Lab 8: Firewalls ASA Firewall Device

Lab Catalyst 2950T and 3550 Series Basic Setup

CCNA Semester 1 labs. Part 2 of 2 Labs for chapters 8 11

The Internet Ecosystem and Evolution. Lab 1

Security Management System Central Monitoring Station with Push Mode Connectivity

Lab 3.3 Configuring Wireshark and SPAN

Configuring HSRP. Global Knowledge Training LLC L5-1

Lab 5.6.2: Challenge RIP Configuration

OpenFlow Configuration Lab

CCNA Semester 2 labs. Labs for chapters 2 10

Introduction, and Connecting to and Using the Remote Lab Environment

Lab Using Wireshark to Examine Ethernet Frames

TxEIS on Internet Explorer 8

Lab Student Lab Orientation

Lab Configuring Static Routes Instructor Version 2500

Lab Configuring Switch Security Features Topology

Lab 2.8.1: Basic Static Route Configuration

Creating a Windows Server 2012 R2 virtual instance Maher Saad, Chestnut Residence, University of Toronto

Lab - Building a Switch and Router Network

AT&T Digital Subscriber Line Service

How to Configure a Cisco Router Behind a Non-Cisco Cable Modem

Emulator Virtual Appliance Installation and Configuration Guide

Lab - Configure the Firewall in Windows 8

Lab I: Using tcpdump and Wireshark

Computer Security II Lab Network Security

Lab - Designing and Implementing a Subnetted IPv4 Addressing Scheme

KVM Console. KVM Console

Configuring Cisco Prime NAM

FusionHub. SpeedFusion Virtual Appliance. Installation Guide Version Peplink

Step 2. Manual configuration of global unicast and link-local addresses

NetBrain OE System Quick Start Guide

IT Essentials v6.0 Windows 10 Software Labs

PT Activity: Configure AAA Authentication on Cisco Routers

Lab - Configuring a Site-to-Site VPN Using Cisco IOS and CCP

Transcription:

Politecnico di Torino TSR/CNTS, PRL, PAR Introduction to lab assignments with GNS3 User guide and helpful tips Roberto Bonafiglia, Fulvio Risso October 27, 2017

Contents 1 Requirements 4 2 Access to GNS3 5 3 Using GNS3 6 4 Simulate your first topology 7 4.1 Verify that the network operates correctly..................... 9 4.2 Navigating Cisco Router Command Line Interface................. 9 4.3 Make your first capture................................ 10 2

License This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. You are free: to Share: to copy, distribute and transmit the work to Remix: to adapt the work Under the following conditions: Attribution: you must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work). Noncommercial: you may not use this work for commercial purposes. Share Alike: if you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one. More information on the Creative Commons website. Acknowledgments The authors would like to thank all the people who contributed to this document. 3

1 Requirements GNS3 is a network emulator that emulates a complex network actually running the operating system of real network devices to accurately reproduce the behavior of network nodes. As a consequence, it is also a valuable tool to experiment with and learn from the behavior of such devices. In order to facilitate the deployment of the software, we provide a pre-installed virtual machine (VM) that can be either directly executed in your VM manager, or converted and transferred on an USB stick in order to create a bootable disk with the pre-installed software. Particularly, the VM for the networking labs @ Politecnico di Torino requires the Virtual Box software running on your PC. This software is available for most operating systems; downloading instructions are available at https://www.virtualbox.org/wiki/downloads. Additional tools can be used to convert the VM in another format, e.g., for Linux KVM or to make it an ISO-bootable image. 4

2 Access to GNS3 GNS3 is pre-installed on the PC in LADISPE. In order to access it: 1. Access to the PC using Windows (s<studentid>@polito.it your password) 2. Launch VirtualBox and run the PAR VM virtual machine 3. The VM is based on an Ubuntu 16.04; the login username is gns3 and the password is coursevm Note that all the files that you may save in the virtual machine will be deleted at shutdown. In case you want to work on the lab experience not in LADISPE, you can use a similar network emulator with a web-based interface that is called Dyn@NG. Instructions on how to access it can be found at http://netgroup.polito.it/images/didattica/cnts-tsr_slide/ Dynng-Tutorial.pdf 5

Figure 1: Main GNS3 window when opening an existing project or creating a new one. 3 Using GNS3 1. Start the VM and wait until the main Ubuntu screen appears. 2. Open the terminal and type gns3. 3. From the new window you can either create a new project or open an existing one, as shown in Figure 1. GNS3 projects are used to define different network topologies, so if it its the first time you execute the VM, you should create a new project. 4. The icon allows to browse all the available routers. However, please note that all the exercises will require only: a Cisco 2691 router, when an L3 device is needed 1 ; the Ethernet switch that emulates a LAN. 1 Note that any other router model will not work because the corresponding IOS image has not been saved in the VM. 6

4 Simulate your first topology Now we can try to create a simple network topology with two routers directly connected through a link, as depicted in the Figure. First of all we need to create our topology. Go to the Device Library and drag and drop the Cisco 2691 router to the network window. After inserting the routers we need to create a link that connects the two devices together. To do this select the button and select the first router as the source device and a pop-up appears like the one depicted on the Figure with the list of the network devices. Figure 2: Our first network topology Figure 3: Router Link Form Select a network adapter from the menu option (e.g., FastEthernet0/0 ). The red icon indicates that the interface is not used, while the green icon indicates that the interface is in use. After the interface selection, click on the second device to connect and follow the same operation. Now that the two routers are connected they will be linked and we just need to activate the virtual machines associated to the routers, which translates into the start topology command. Routers can be configured through the console only when they are active, i.e., their associated virtual machine is up and running. 7

For starting the topology (which is required in order to enable the console), we can press button. GNS3 uses different icons to show the status of the router. For instance, a router that is switched off is shown with a red icon, while an active router is shown with the green icon. When the router is active, we can open the associated console window and configure the device with a double click on the icon. To configure our topology, open the console of the router R1 and press the Enter key on your keyboard a couple of times; this is a known problem, as sometimes the router prompt does not appear if you do not press Enter. If everything is ok, after some seconds you should see the following prompt on the console: R1# You will configure the machines manually. You need now to: Enter in privileged-mode of the router using the command enable; Enter in configuration mode using the command configure terminal 2. Use exit to exit the configuration mode once done changing the configuration. Now we need to select the interface we want to configure. To do that we need to use the command interface FastEthernet x/y where x is the number of the slot you chose before, and y is the number of the interface (within that slot) you used. You can also use the shortcut in fa x/y. For instance, as we choose the slot 0 and interface 0, we write the command interface FastEthernet 0/0. This takes us to the interface configuration mode. Now we will configure the IP address with the following commands: Command ip address 192.168.0.1 255.255.255.0 no shutdown end Description Configure the IP address 192.168.0.1/24 on the selected interface. This address will become immediately active. Turn on the interface. Some interfaces of the router are turned off by default, hence it is always better to type this command although this may not be always needed. Exit from the interface configuration mode. Obviously, a similar configuration must be repeated on the second router. On the console of R1 you can apply do the same commands, just changing the IP address into 192.168.0.2. Here a brief summary of all the commands you typed in order to configure the address on the router, where the last digit of the IP address (written as z ) will be the actual IP address of the router: 2 Notice that you can also use shortcuts such ena and conf t for those commands. 8

enable configure terminal interface FastEthernet0/0 ip address 192.168.0.Z 255.255.255.0 no shutdown end You have now configured the interfaces on the link. 4.1 Verify that the network operates correctly Now that you finished your configuration you can use the ping command in order to generate a stream of 5 ICMP Echo Request and ICMP Echo Reply to verify that the network topology works and that routers can exchange traffic between them. Open the console of the router R1. Assuming that the configuration of the router is the one suggested in previous section, you just need to use the command below to ping the router R2. ping 192.168.0.2 You should see a similar text appearing on each console: Router# ping 192.168.0.2 Sending 5, 100-byte ICMP Echos to 192.168.0.2, timeout is 2 seconds:.!!!! Success rate is 80 percent (4/5), round-trip min/avg/max = 4/4/20 ms Router# Please note that Cisco routers tend to miss the first reply to the ping command, while the remaining four are received correctly. A missing answer is shown with the dot sign., while a successful answer is shown with the exclamation mark (! ). Therefore, if you type the ping command for the first time and the first (or, in some cases, the first two) answers are missing, nothing is wrong on your side. Vice versa, if all the five answers are negative, something is wrong in your configuration. 4.2 Navigating Cisco Router Command Line Interface This section contains a few tips that can help using the Command Line Interface (CLI) of Cisco routers. The CLI offers a help function. By typing? at any point, the router will show all possible options. If? is typed on an empty line, all accepted commands in the current mode are shown. If? is typed after the name of a command (or a command and one or more of its parameters), the next accepted parameter or keyword is shown. 9

Typing the Tab key after partially typing a command or keyword completes it. For example, if tab is pressed after typing sho the router will complete the keyword into show. Also, commands do not need to be typed completely, as long as they are unambiguous. For example, typing conf term is equivalent to typing configure terminal. One important command that enables visualizing useful information is show. Use show? to get a list of all possible information that can be shown by the router. For example, show interface FastEthernet0/0 visualizes the status and configuration of that particular interface. show running configuration visualizes the current router configuration. Remember that the current configuration must be saved in order to make it persistent across reboots of the router. In order to achieve that use the command write terminal 4.3 Make your first capture Now we can try to capture the traffic generated by the ping command. Right click on the link and select from which interface you start the capture and press ok. This will start capturing the traffic generated on that link opening a new wireshark window. Now come back to the router R1 and type again the ping command as we saw before. On the Wireshark window you will see the stream of packet generated between the two routers, i.e., most likely 5 ICMP Echo Requests and 5 ICMP Echo Replies. Some additional traffic may be present, which is generated by some protocols active on the router and that are used to exchange some data on the network. For instance, the Cisco Discovery Protocol (CDP) is active by default on a Cisco device and it is used to discovery the capabilities (e.g., installed hardware, software version, etc.) of the devices present on the network. 10