Using GNS3 Task 1 - simple network Campus network topology Task 2 - example Campus network PA197 Lab03 GNS3 Martin Cihlar cihlarOics.muni.cz March 06, 2019 Martin Cihlar cihlar@ics.muni.cz PA197 Lab03 - GNS3 Using GNS3 Task 1 - simple network Campus network topology Task 2 - example Campus network • Using GNS3 • Task 1 - simple network • Campus network topology • Task 2 - example Campus network Martin Cihlář cihlar@ics.muni.cz PA197 Lab03 - GNS3 Using GNS3 Task 1 - simple network Campus network topology Task 2 - example Campus network • Graphical Network Simulator 3 • Simulates a computer network using a combination of physical, emulated or "dummy" devices • Supports a wide variety of devices from different vendors, used mostly for Cisco IOS devices o Free-and-open-source software • User has to provide her own device images for emulation due to licensing constraints, included are only dummy devices Martin Cihlar cihlar@ics.muni.cz PA197 Lab03 - GNS3 Using GNS3 Task 1 - simple network Campus network topology Task 2 - example Campus network cm Routers Switches End devices All devices Connect devices pa!97-gns3 CPU 1.8%, RA.. I GNS3 management console. I Running GNS3 version 2.1.14 on Linux (64-bit) with Python 3.5.2 Qt 5.5.1 and PyQt 5.5.1. I Copyright (c) 2006-2019 GNS3 Technologies. I Use Help -> GMS3 Doctor to detect common issues. 4 □ ► Martin Cihlar cihlar@ics.muni.cz PA197 Lab03 - GNS3 Using GNS3 Task 1 - simple network Campus network topology Task 2 - example Campus network GNS3 management console. Running GNS3 version 2.1.14 on Linux (64-bit) with Python 3.5.2 Qt 5.5.1 and PyQt 5.5.1. Copyright (c) 2006-2019 GNS3 Technologies. Use Help -> GMS3 Doctor to detect common issues. 4 □ ► Martin Cihlar cihlar@ics.muni.cz PA197 Lab03 - GNS3 Using GNS3 Task 1 - simple network Campus network topology Task 2 - example Campus network IP® Cloud 9 Ethernet hub Ethernet switch \ Frame Relay switch NAT " Tiny Core Linux 6.4—2 ■ VPCS pa!97-gns3 CPU 3.0%, R... 3NS3 management console, unning GNS3 version 2.1.14 on Linux (64-bit) with Python 3.5.2 Qt 5.5.1 and PyQt 5.5.1. I Copyright (c) 2006-2019 GNS3 Technologies. I Use Help -> GMS3 Doctor to detect common issues. Drag and drop devices from the list to add them into your topology Martin Cihlar cihlar@ics.muni.cz PA197 Lab03 - GNS3 Task Using GNS3 Task 1 - simple network Campus network topology 2 - example Campus network H Q *>)) 09:48 & » " © S3 >- ► ii ■ C 10 BJ □ O/QQfi I ATM switch c3745 Cloud Ethernet hub Ethernet switch Frame Relay switch NAT Tiny CoreL i ri 11 x 6.4 -1 Rl telnet 12 : TinyCoreLirux6.4-l telnet 12 pa!97-gns3 CPU 2.0%, RA.. GNS3 management console. Running GN53 version 2.1.14 on Linux (64-bit) with Python 3.5.2 Qt 5.5.1 and PyQt 5.5.1. Copyright (c) 2006-2019 GMS3 Technologies. Use Help -> GNS3 Doctor to detect common issues. To link devices: left-click on a node you wish to connect, choose an interface, choose another node to connect it to and choose its interface (don't use the built-in management FastEthernet 0/x ports) Martin Cihlar cihlar@ics.muni.cz PA197 Lab03 - GNS3 Task Using GNS3 Task 1 - simple network Campus network topology 2 - example Campus network » " © IS >- ► ii ■ C 10 BJ □ O/QQfi I ATM switch C3745 Cloud Ethernet hub Ethernet switch | Frame Relay switch NAT I u FastEthernetO/0 u FastEthernetO/1 □ FastEthernetl/O I J FastEfflernetl/1 H FastEthernetl/2 U FastEthernetl/3 U FastEthernetl/4 U FastEthernetl/5 H FastEthernetl/6 U FastEthernetl/7 U FastEthernetl/8 y FastEthernetl/9 i J FastEthernetl/10 u FastEthernetl/11 y FastEthernetl/12 y FastEthernetl/13 i J FastEthernetl/14 i J FastEthernetl/15 I GNS3 management console. I Running GN53 version 2.1.14 on Linux (64-bit) with Python 3.5.2 Qt 5.5.1 and PyQt 5.5.1. I Copyright (c) 2006-2019 GMS3 Technologies. I Use Help -> GNS3 Doctor to detect common issues. tjj. 0 Hfl) 09:49 # Rl telnet 12 TinyCoreLinux6.4-l telnet 12 pal97-gns3 CPU 14.8%. R.. To link devices: left-click on a node you wish to connect, choose an interface, choose another node to connect it to and choose its interface (don't use the built-in management FastEthernet 0/x ports) Martin Cihlar cihlar@ics.muni.cz PA197 Lab03 - GNS3 Task Using GNS3 Task 1 - simple network Campus network topology 2 - example Campus network H m 09:49 & » " © IS >- ► ii ■ C 10 BJ □ O/QQfi ATM switch c3745 Cloud Ethernet hub Ethernet switch Frame Relay switch NAT GNS3 management console. Running GN53 version 2.1.14 on Linux (64-bit) with Python 3.5.2 Qt 5.5.1 and PyQt 5.5.1. Copyright (c) 2006-2019 GMS3 Technologies. Use Help -> GNS3 Doctor to detect common issues. To link devices: left-click on a node you wish to connect, choose an interface, choose another node to connect it to and choose its interface (don't use the built-in management FastEthernet 0/x ports) Martin Cihlar cihlar@ics.muni.cz PA197 Lab03 - GNS3 Task Using GNS3 Task 1 - simple network Campus network topology 2 - example Campus network *4- 19 05:50 & » " © IS >- ► ii ■ C 10 BJ □ O/QQfi ATM switch c3745 Cloud Ethernet hub Ethernet switch Frame Relay switch NAT GNS3 management console. Running GN53 version 2.1.14 on Linux (64-bit) with Python 3.5.2 Qt 5.5.1 and PyQt 5.5.1. Copyright (c) 2006-2019 GMS3 Technologies. Use Help -> GNS3 Doctor to detect common issues. To link devices: left-click on a node you wish to connect, choose an interface, choose another node to connect it to and choose its interface (don't use the built-in management FastEthernet 0/x ports) Martin Cihlar cihlar@ics.muni.cz PA197 Lab03 - GNS3 Using GNS3 Task 1 - simple network Campus network topology Task 2 - example Campus network miiUBio■>_ ► iiic as " / o, All devices @g) ™ H IS *>>) 09:55 # gj ATM switch P c3745 Cloud Ethernet hub Ethernet switch Jj Frame Relay switch NAT Li mix 6.4-1 Rl telnet 12 TinyCoreLinux6.4-l telnet 12 pa!97-gns3 CPU 2.0%, RA.. GNS3 management console. IRunning GN53 version 2.1.14 on Linux (64-bit) with Python 3.5.2 Qt 5.5.1 and PyQt 5.5.1 Copyright (c) 2006-2019 GNS3 Technologies. Use Help -> GNS3 Doctor to detect common issues. To link devices: left-click on a node you wish to connect, choose an interface, choose another node to connect it to and choose its interface (don't use the built-in management FastEthernet 0/x ports) Martin Cihlar cihlar@ics.muni.cz PA197 Lab03 - GNS3 Using GNS3 Task 1 - simple network Campus network topology Task 2 - example Campus network cm Tiny Core I Configure Change hostname Change symbol Duplicate Show in file manager Console Custom console Auxiliary console Import config Export config ^ Edit config ■ Idle-PC H Auto Idle-PC r Start JJ Suspend Stop Reload B Command line |j Raise one layer S Lower one layer ^ Delete I GNS3 management console. I Running GNS3 version 2.1.14 on Linux (64-bit) with Python 3.5.2 Qt 5.5.1 and PyQt 5.5.1. I Copyright (c) 2006-2019 GNS3 Technologies. I Use Help -> GMS3 Doctor to detect common issues. □ Rl telnet 12 : TinyCoreLinux6.4-l telnet 12 pa!97-gns3 CPU 1.6%, RA.. Use right-click to open up the drop-down menu with options for the selected node vT) Martin Cihlar cihlar@ics.muni.cz PA197 Lab03 - GNS3 Using GNS3 Task 1 - simple network Campus network topology Task 2 - example Campus network R1 00:00:08.607: charged state 00:00:08,611: charged state 00:00:08.615: charged state 00:00:08.615: charged state 00:00:08.615: charged state 00:00:08.619: charged state 00:00:08.619: etl/9, charged state *Har 1 00:00:08.619: etl/8, charged state *Mar 1 00:00:08.623: etl/7, charged state *Mar 1 00:00:08.623: etl/6, charged state Rl# *Mar 1 00:00:37.979: rged state to up Rlffl_ *Mar 1 etl/15, *Mar 1 etl/14, *Mar 1 etl/13, *Mar 1 etl/12, *Mar 1 etl/11, *Mar 1 etl/10, *Mar 1 ^LINEPRDTD- to down WLINEPROTO to down WLINEPROTO to down 9SLINEPROTO to down KLINEPRDTD- to down WLINEPRDTD- to down WLINEPRDTD to down WLINEPROTO to down 9SLINEPR0T0-to down KLINEPRDTD-to down 9SLINEPR0T0 5- UPDOWN: Lire protocol on Interface FastEthern 5- UPDOWN: Lire protocol on Interface FastEthern 5- UPDOWN: Lire protocol on Interface FastEthern 5- UPDOWN: Lire protocol on Interface FastEtherr 5- UPDOWN: Lire protocol on Interface FastEthern 5- UPDOWN: Lire protocol on Interface FastEtherr 5- UPDOWN: Lire protocol on Interface FastEthern 5- UPDOWN: Lire protocol on Interface FastEtherr 5- UPDOWN: Lire protocol on Interface FastEthern 5- UPDOWN: Lire protocol on Interface FastEtherr 5- UPDOWN: Lire protocol on Interface Vlanl, cha Use the " Console" option from the drop-down to open up a CLI to the selected node Note: the device must be started prior to attempting to connect to the console Martin Cihlar cihlar@ics.muni.cz PA197 Lab03 - GNS3 Using GNS3 Task 1 - simple network Campus network topology Task 2 - example Campus network »4 Q H>)) 13:47 O n Rl telnet 12 " TinyCoreLinux6.4-l telnet 12 fl TinyCoreLinux6.4-2 telnet 12 pal97-gns3 CPU 3.4%, RA. You can capture packets sent through a link and view them using Wireshark by right-clicking a link and selecting "Start capture" (make sure you have checked the "Start the capture visualization program^ bo^) «•»!©■>_ ► iiIC 0omio / Gt QE] Ip TinyCorc iiuix6,4-l Start capture 7 Packet filters JJ Suspend _ Delete IGNS3 management console. Running GN53 version 2.1.14 on Linux (64-bit) with Python 3.5.2 Qt 5.5.1 and PyQt 5.5.1. Copyright (c) 2006-2019 GNS3 Technologies. Use Help -> GMS3 Doctor to detect common issues. Martin Cihlar cihlar@ics.muni.cz PA197 Lab03 - GNS3 Task Using GNS3 Task 1 - simple network Campus network topology 2 - example Campus network cm Ip TinyCore ti nu«6.4-1 TinyOpreLi nux6.4- 2 *** Packet capture Link type: Q File name: ^ ■'.Start the capture visualization program telnet 12 ^ TinyCorel_inux6.4-l telnet 12 fl TinyCorel_inux6.4-2 telnet 12 pa!97-gns3 CPU 3.4%, RA.. GNS3 management console. Running GN53 version 2.1.14 on Linux (64-bit) with Python 3.5.2 Qt 5.5.1 and PyQt 5.5.1. Copyright (c) 2006-2019 GNS3 Technologies. Use Help -> GMS3 Doctor to detect common issues. You can capture packets sent through a link and view them using Wireshark by right-clicking a link and selecting "Start capture" (make sure you have checked the "Start the capture visualization program^ bo^) Martin Cihlar cihlar@ics.muni.cz PA197 Lab03 - GNS3 Task Using GNS3 Task 1 - simple network Campus network topology 2 - example Campus network ® A ■ £ Q. Filter: | Destination >- * T 1 [H)(H] i*j a lsj Expression... Clear Apply Save Protocol Length Info 55 20.068749 56 21.B85157 57 21.085776 58 22.086643 59 22.087776 60 23.087193 61 23.088106 63 24.087834 64 24.088511 65 25.054496 66 25.095315 192 1 1.3 192 168 1.2 ICMP I CMP I CMP I CMP I CMP I CMP I CMP I CMP I CMP I CMP I CMP ! Echo Iping] ! Echo [ping] ! Echo [ping] i Echo Iping] ! Echo tping] ! Echo [ping] ! Echo [ping] eply equest eply equest eply equest eply 98 Echo [ping] request 98 Echo [ping] reply 98 Echo [ping] request 98 Echo [ping] reply id=0x2aO9, id=0x2aO9, id=0x2aQ9, id=0*2a09, id=0x2aO9, id=0x2aO9, id=0*2aO9, id=0x2aO9, id=0x2aQ9, id=0*2a09, id=0x2aO9, seq=116/29696 seq=117,'29952 seq=117/29952 seq=118/30208 seq=118/30208 seq=119/30464 seq-119/30464 seq=12O/30720 seq=12Q/30723 seq-121/30976 seq=121/30976 ttl=64 (r ttl=64 [r ttl=64 [r ttl=64 (r ttl=64 [r ttl=64 {r ttl=64 i - ttl=64 (r ttl=64 [r ttl=64 (r ttl=B4 [r iply ii ;ply ii >ply ii iply ii iply ii ►Frame 1: 98 bytes on wire (784 bits), 98 bytes captured [784 bits] on interface B ►Ethernet II, Src: 8c:23:57:82:d4:30 (0c:20:57:82:d4:GS], Dst: 0c:2G:57:b8:e3:33 [3c:23:57:b8:e3:03] ►Internet Protocol Version 4, Src: 192.168.1.2, Dst: 192.168.1.3 ► Internet Control Message Protocol ■0030 0C 20 57 b8 e3 00 0C 20 10010 00 54 ca 14 43 GS 43 01 10020 01 03 08 00 ae a6 2a 09 |oQ40 0G 30 30 33 33 63 03 03 10050 00 00 30 00 00 00 00 00 I 0060 00 00 57 82 d4 00 38 00 45 03 ed 3e cG aS 31 32 c3 a8 00 60 41 b8 dd 37 00 00 lO Ě? Standard input: 0°%O Martin Cihlar cihlar@ics.muni.cz PA197 Lab03 - GNS3 Using GNS3 Task 1 - simple network Campus network topology Task 2 - example Campus network Example Campus network design Dl D2 Host IP PI 192.168.1.lly /24 P2 192.168.1.12y /24 9 make Dl root bridge in the spanning tree topology O make D2 secondary root (in case the primary root, Dl, becomes unavailable, D2 will take over as the root bridge) 9 find out which ports are blocked by STP O find out the path of PING and PING REPLY packets ^ disconnect line L2 (shut down the interface to which L2 in connected to on Al), observe the recalculated path of PING packets □ rS1 ► < ► < = Martin Cihlär cihlar@ics.muni.cz PA197 Lab03 - GNS3 Task Using GNS3 Task 1 - simple network Campus network topology 2 - example Campus network • GNS3 • https://www.gns3.com/ • https://docs.gns3.com/ 9 Campus topology • http://www.ciscopress.com/articles/article.asp?p=2202410&seqNum=4 • http: //www. mcmcse. com/cisco/guid.es/hierarchical_model. shtml • https : //www. cisco. com/c/en/us/solutions/design-zone/networking-design-guides/ campus-wired-wireless.html • https : //networklessons . com/spanning-tree/introduction-to- spanning-tree Martin Cihlar cihlar@ics.muni.cz PA197 Lab03 - GNS3