Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

48
Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York

Transcript of Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

Page 1: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

Special Project Group 03Chintan ShahNisharg PatelCynthia York

Page 2: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

AIM

• Download the graphical network simulator application GNS3 (http://www.gns3.net ) to your notebook computer and configure GNS3 to simulate a network containing the following items connected in series: computer, switch, router, router, switch, and computer. Show that you have network connectivity by running tracert between the two computers at opposite ends of the network.

Page 3: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

OverviewThis presentation describes all you need to know to simulate an internetwork on your own PC. We will cover the following topics: • The software required and where to get it• The installation and configuration of each piece of software

and helpful hints along the way.• The integration of the software• The creation of an internetwork• Live demonstration of a GNS3 internetwork

Page 4: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

Required Software

• GNS3• VPCS and cygwin.dll• Cisco IOS Image• Cisco Image Unpacker

Page 5: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

GNS3

• Download both the GNS3 all-in-one package from http://www.gns3.net/download/:

Page 6: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

VPCS (Virtual PC Simulator)• Download a host simulator to create your two computers in GNS3• If you only need ping and trace route capabilities, download VPCS

(Virtual PC simulator) from: http://sourceforge.net/projects/vpcs/files/0.5/beta/.

• Note: You may also need the cygwin1.dll file saved to your Windows/System 32 directory.

Page 7: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

Cisco IOS Image

• Retrieve the Cisco IOS bin file from professor Gean’s web site: http://www.calstatela.edu/faculty/egean/cs447/cisco-bin-files/.

Page 8: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

Download Cisco Image Unpacker• Down load the Cisco image unpacker from http://

sourceforge.net/projects/gns-3/files/Cisco%20Image%20Unpacker/v0.1/Unpack-0.1_win.zip/download

Page 9: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

Helpful Hint - Unpack Cisco IOS Image• Unpack the Cisco IOS bin file using the Unpacker

software. The command is as follows:unpack.exe --format IOS path and bin file to unpack

• Why? Your routers will boot more quickly.

Page 10: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

Software Installation & Configuration

• GNS3 Installation• GNS3 Configuration• GNS3 Helpful Hints• VPCS Configuration• VPCS Helpful Hints

Page 11: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

GNS3 Installation

• Launch the GNS3 executable and follow the instructions in the Setup Wizard

Page 12: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

GNS3 Installation - continued

Page 13: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

GNS3 Installation - continued

Page 14: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

GNS3 Installation - continued

Page 15: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

GNS3 Configuration

• When you launch GNS3 for the first time a setup window appears:

Page 16: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

GNS3 Configuration Step-1

• When you press Step 1 the Preferences window appears. On the General page enter your Images directory path and move your unpacked image file to that directory. Press OK.

Page 17: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

GNS3 Configuration Step-2• When you press Step 2 the Preferences window appears again. On

the Dynamips page press the Test Settings button and wait a few seconds. You should receive the successful message shown below then press OK.

Page 18: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

GNS3 Configuration Step-3

• When you press the Step 3 button the IOS images and hypervisors window appears. Set your Image file by navigating to the unpacked IOS image file that you placed in your Images directory. Press the Save button – we will configure the Idle PC a little later. Press the Close button.

Page 19: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

GNS3 Helpful Hint – Check for Router Availability

You should now be able to drag a router over to start building your network.• Select the router icon on the left rail and choose your router type:

Page 20: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

GNS3 Helpful Hint - Set IDLE PC ValueWhy? This will reduce the resource burden placed on your PC when GNS3 is doing nothing.• Right click on your Router and select Idle PC. When the Idle PC values

window comes up select a value with an asterisk next to it then click the OK button.

• You can also rename the router by right clicking and selecting Change the hostname.

Page 21: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

GNS3 Helpful Hint - SaveBe sure to save your work! Why? So that you can load your project the next time you launch GNS3• Before exiting GNS3 press the Save button at the top left 3rd over. • Then give your project a name and check the Save boxes. Press OK

button then close GNS3.

Page 22: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

VPCS Configuration

• Always be sure GNS3 is shutdown before launching VPCS. • Then run the VPCS executable (in this case

vpcs_0.5b0.exe).

Page 23: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

VPCS Configuration - Continued• Steps : 1. Switch to VPCS5 by entering the number 5. Configure VPCS5’s IP

address, subnet mask and default gateway using syntax below:

Syntax : ip [IP address] [/mask] [Default gateway]

Page 24: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

VPCS Configuration - Continued2. Switch to VPCS7 by entering the number 7. Configure VPCS7’s IP

address, default gateway and subnet mask as you did for VPCS5.

Page 25: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

VPCS Helpful Hints - ? command

• To view all the commands available in VPCS enter the ? command at the prompt:

Page 26: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

VPCS Helpful Hints – show command

• To see the configuration of all virtual PCs enter the show command:

Page 27: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

4. To save your configuration use the save command and the name of the file to save it to. This will allow you to load your configuration the next time you launch VPCS.

VPCS Helpful Hints – save/load commands

Page 28: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

Integrating VPCS with GNS3• Create & Use PC Symbols• Configure PC Symbols

Page 29: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

Create & Use PC Symbols• Launch GNS3 and select Edit>Symbol manager. Under available

symbols select Computer then press the right arrow (>). Once the computer is in the Customized nodes change the Name to PC and select Cloud for Type. Press Apply then OK buttons.

Page 30: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

Create & Use PC Symbols - Continued• In the GNS3 Node Types column select Browse all devices. In the all

devices column select the PC symbol you just created and drag two PCs to your network builder panel. You can right click the devices to change their host names.

Page 31: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

Configure PC Symbols• Right click on PC5 and select Configure. In the Node configurator window

select PC5 under Clouds then the NIO UDP tab. Under Settings set Local port to 30004, Remote host to 127.0.0.1 and Remote port to 20004 and press the Add button then OK.

Page 32: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

Configure PC Symbols - Continued

• Perform the same procedure for PC7 as described for PC5 except set Local port to 30006, Remote host to 127.0.0.1 and Remote port to 20006.

Page 33: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

Building an Internetwork

You already have a router and two PCs in your topology, but there is still more to do. In this section we will perform the following tasks:• Add Switches• Add/Configure Routers• Link Routers, Switches & PCs

Page 34: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

Add Switches• Add two Ethernet switches to your topology by selecting the

Switch icon on the left rail and choosing Ethernet switch from the list of Switches and dragging it to your topology.

Page 35: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

Add/Configure Routers• Add another router by selecting the Router icon on the left rail then

dragging your router type to your topology • Start your router by right clicking on it and selecting Start.

Page 36: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

Add/Configure Routers - Continued• Configure router interface modules.

o Configure your slots by right clicking on your router and selecting Configure. o Click on your router under Routers and select the Slots tab. Note: NM-4E is

Network Module 4 port Ethernet module and WIC-2T is WAN Interface Card 2 port Serial module. Perform this same procedure for your other router.

Page 37: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

Add/Configure Routers – Continued• Configure router ports by right clicking on the router and selecting

Console

Page 38: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

o Add the serial interface address, set the clock rate and prevent the line from shutting down so as to connect the two routers together:

o Add the serial interface for your other router except using address 192.168.20.2 and do not set the clock rate.

o Add Ethernet interface address and IP route for Router 3 to the network of the remote PC :

Add/Configure Routers – Continued

Page 39: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

o Add Ethernet interface address and IP route for Router 4 to the network of the remote PC :

Add/Configure Routers – Continued

Page 40: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

Link Routers, Switches & PCs• Add a link between your routers by right clicking one of them and

selecting Add a link. Next left click on your router and select the s0/0 interface from the dropdown. Now drag the link to your other router, click on that router and select the s0/0 interface from that dropdown. Perform this on your other components.

Page 41: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

Live Demonstration

Verify ConnectionsPing Packet Capture

Page 42: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

Verify Connections• Verify the connection between the routers by pinging one from the other

in their respective consoles.o Router3 > Router4

o Router4 > Router3

Page 43: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

Verify Connections - Continued• Verify the connection between the PCs by pinging and tracing one from

the other in their respective consoles.o PC5 > PC7

Page 44: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

Verify Connections - Continuedo PC7 > PC5

Page 45: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

Ping Packet Capture

• Right click on a link and select Start capturing. In the Capture window select HDLC.

Page 46: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

Ping Packet Capture - Continued• WireShark will launch. Open Router3’s console and ping

Router4.

Page 47: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.

Ping Packet Capture - Continued

• You will see the ping requests and responses in WireShark.

Page 48: Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.