Lab 2 - Basic Router Configuration



Similar documents
Lab Review of Basic Router Configuration with RIP. Objective. Background / Preparation. General Configuration Tips

Lab Advanced Telnet Operations

3.1 Connecting to a Router and Basic Configuration

Lab Load Balancing Across Multiple Paths

Lab Introductory Lab 1 - Getting Started and Building Start.txt

Lab 3 Routing Information Protocol (RIPv1) on a Cisco Router Network

Applicazioni Telematiche

Procedure: You can find the problem sheet on Drive D: of the lab PCs. Part 1: Router & Switch

Note: This case study utilizes Packet Tracer. Please see the Chapter 5 Packet Tracer file located in Supplemental Materials.

Connect the Host to attach to Fast Ethernet switch port Fa0/2. Configure the host as shown in the topology diagram above.

Lab Introductory Lab 1 Getting Started and Building Start.txt

Configuring the Switch with the CLI Setup Program

CS 326e F2002 Lab 1. Basic Network Setup & Ethereal Time: 2 hrs

Objectives. Router as a Computer. Router components and their functions. Router components and their functions

This techno knowledge paper can help you if: You need to setup a WAN connection between a Patton Router and a NetGuardian.

Lab Load Balancing Across Multiple Paths Instructor Version 2500

LAB THREE STATIC ROUTING

Lab Diagramming External Traffic Flows

Lab Diagramming Intranet Traffic Flows

Lab Creating a Logical Network Diagram

To perform Ethernet setup and communication verification, first perform RS232 setup and communication verification:

Introduction to Routing and Packet Forwarding. Routing Protocols and Concepts Chapter 1

Chapter 8 Lab B: Configuring a Remote Access VPN Server and Client

Prestige 324. Prestige 324. Intelligent Broadband Sharing Gateway. Version 3.60 January 2003 Quick Start Guide

Connecting the DG-102S VoIP Gateway to your network

Lab: Basic Router Configuration

[HOW TO RECOVER AN INFINITI/EVOLUTION MODEM IDX ] 1

Prestige 324 Quick Start Guide. Prestige 324. Intelligent Broadband Sharing Gateway. Version V3.61(JF.0) May 2004 Quick Start Guide

ZyWALL 5. Internet Security Appliance. Quick Start Guide Version 3.62 (XD.0) May 2004

School of Information Technology and Engineering (SITE) CEG 4395: Computer Network Management. Lab 4: Remote Monitoring (RMON) Operations

Lab Configuring Basic Router Settings with the Cisco IOS CLI

NXT Controller Manual IP Assignment in WAN Environments Application Note

Prestige 202H Plus. Quick Start Guide. ISDN Internet Access Router. Version /2004

LAB MANUAL for Computer Network

Lab Configuring Access Policies and DMZ Settings

1 Basic Configuration of Cisco 2600 Router. Basic Configuration Cisco 2600 Router

Prestige 314 Read Me First

Skills Assessment Student Training Exam

Prestige 650R-31/33 Read Me First

Deploying Secure Internet Connectivity

Configuring the Switch with the CLI-Based Setup Program

Angelos Stavrou. OF COURSE there is no Magic so lets see show things work in practice...

Guideline for setting up a functional VPN

Lab 5.3.9b Managing Router Configuration Files Using TFTP

Deploying Windows Streaming Media Servers NLB Cluster and metasan

Lab 8.4.3a Managing Cisco IOS Images with TFTP

IST 220 Honors Project. Subnets with Variable Length Subnet Masks

Lab Configuring PAT with SDM and Static NAT using Cisco IOS Commands

EDGE FX Network configuration

Lab Configuring Access Policies and DMZ Settings

Objectives. Background. Required Resources. CCNA Security

LAB Configuring NAT. Objective. Background/Preparation

1 PC to WX64 direction connection with crossover cable or hub/switch

Firewall VPN Router. Quick Installation Guide M73-APO09-380

Cisco Router Configuration Tutorial

Chapter 4 Customizing Your Network Settings

How To Understand and Configure Your Network for IntraVUE

Building a Network in GNS3

Configuring IP Load Sharing in AOS Quick Configuration Guide

Router Lab Reference Guide

Pre-lab and In-class Laboratory Exercise 10 (L10)

Prestige 310. Cable/xDSL Modem Sharing Router. User's Guide Supplement

Lab Creating a Network Map using CDP Instructor Version 2500

CREATING AN IKE IPSEC TUNNEL BETWEEN AN INTERNET SECURITY ROUTER AND A WINDOWS 2000/XP PC

Lab Configuring DHCP with SDM and the Cisco IOS CLI

Figure 1 - T1/E1 Internet Access

How To Set Up A Netvanta For A Pc Or Ipad (Netvanta) With A Network Card (Netvina) With An Ipa (Net Vanta) And A Ppl (Netvi) (Netva)

Lab Configure Basic AP Security through IOS CLI

Lab Exercise Configure the PIX Firewall and a Cisco Router

Basic Software Configuration Using the Cisco IOS Command-Line Interface

CCT vs. CCENT Skill Set Comparison

MAX T1/E1. Quick Start Guide. VoIP Gateway. Version 1.0

Multi-Homing Dual WAN Firewall Router

Cisco Certified Network Associate Exam. Operation of IP Data Networks. LAN Switching Technologies. IP addressing (IPv4 / IPv6)

1. MOXA NPort Express TCP/IP to RS-232 server

Lab - Using IOS CLI with Switch MAC Address Tables

iboss Enterprise Deployment Guide iboss Web Filters

1. Hardware Installation

Lab Configure Cisco IOS Firewall CBAC

Lab Configuring Basic Router Settings with the Cisco IOS CLI

Cisco Configuration Professional Quick Start Guide

Lab 8.4.3b Managing Cisco IOS images with ROMMON and TFTP

PC/POLL SYSTEMS Version 7 Polling SPS2000 Cash Register TCP/IP Communications

Effect of Windows XP Firewall on Network Simulation and Testing

Connecting and Setting Up Your Laptop Computer

Quick Installation Guide Network Management Card

Debugging Network Communications. 1 Check the Network Cabling

DSL-2600U. User Manual V 1.0

Configuring Voice over IP

PRILINK PRI Management System

Packet Tracer 3 Lab VLSM 2 Solution

Routing Protocols and Concepts Chapter 2 Conceitos de protocolos de Encaminhamento Cap 2

: Interconnecting Cisco Networking Devices Part 1 v2.0 (ICND1)

Chapter 7 Troubleshooting

Broadband Router ESG-103. User s Guide

Device Interface IP Address Subnet Mask Default Gateway

Lab Developing ACLs to Implement Firewall Rule Sets

Setting up VPN Access for Remote Diagnostics Support

AutoDownload: SQL Server and Network Trouble Shooting

Dominion KX II-101-V2

Transcription:

CS326 Fall 2001 Room: PAI 5.48 Name: Lab 2 - Basic Router Configuration In this lab you will learn: the various configuration modes of Cisco 2621 routers how to set up IP addresses for such routers how to connect two networks with routers by setting up static routing tables the firewall functions of a router by setting up access lists You need to turn in: 1. your pre-lab at the beginning of your session 2. your completed Lab 2 handout at the end of your session Each group of 2 students will use the following equipment for this experiment. 2 computers with Microsoft Windows 2000 Professional 1 Cisco Systems Catalyst 2900 Series Switch 1 Cisco 2621 Router 1 rollover cable (null modem) 1 DB9m adapter 3 Ethernet cables 1 Ethernet crossover cable Every two groups share an additional Ethernet crossover cable Recap & Introduction: In Lab #1, you learned how to construct a TCP/IP network of four hosts via switches by assigning IP addresses and subnet masks to the hosts. You also learned how subnetting affects a network. In this lab, we will be implementing the network topology in Figure 1 on the last page where two networks in different subnets are physically separated. There is no legend in the figure because you are required to add them in the pre-lab exercise. Our goal is to connect these two networks together. They could be on different floors in the same building. They could be in nearby buildings. Or they could be in different cities. To this end, you will first be introduced to the basics of the Cisco Internetwork Operating System (IOS). You will, then, assign IP addresses to the routers. The router acts as the gateway to its own network. Then, you will use an Ethernet crossover cable to simulate the cloud. Finally, you will set up static routing tables in the gateways and test the connection. Cisco Router Configuration Introduction to Cisco Internetwork Operating System (IOS) Cisco routers are powered by the Cisco IOS which allows the routers to be configured to perform specific tasks. Before you start configuration of a Cisco Router, you must understand the two EXEC modes available on a router: user EXEC mode and privileged EXEC mode. User mode allows you to perform basic trouble shooting tests, telnet to remote hosts, and list router system information. You know that the router is in this mode if the prompt is the router name followed by the greater than sign: RouterName>. Privileged mode, sometimes called enable mode, allows Page 1

for full router configuration and advanced troubleshooting. RouterName# is an example of the privileged mode prompt. If you log into a router via a console or telnet connection, you enter user mode. To enter privileged mode requires that you issue the enable command. Before you actually configure a Cisco router, you must understand the two main configuration modes: global configuration mode and interface configuration mode. Each of the routers we use has two Ethernet interfaces. Settings made in global configuration mode affect overall router operations. You can use the command configure to enter this mode after you are in the privileged mode. If you wish to configure a particular interface, you must use interface configuration mode. To enter this mode, you need to be in the global configuration mode. You then enter the interface command followed by the name and number of the interface you wish to enter. If the router is in global configuration mode, the prompt will be RouterName (config)# while in interface configuration mode it will be RouterName(config-if)#. THE BIG PICTURE: Task 1 is the groundwork. In task 2 and 3, group A will configure LAN A and Group B will configure LAN B. Task 4 will require the two groups work together to interconnect the two LANs. This lab requires two groups of two to work together as a team. For each group, there will be one designated router and switch. The routers provided are Cisco 2621 models. Cisco 12.0(7) IOS is loaded on them. The switch is a Cisco 2900 model with 12 ports. Initial Setup 1. Plug one end of the rollover cable (null modem) into the console port of the router 2. Locate the computer with a DB9m adapter connected to its serial port. This serial port is already configured as COM1 in Windows 2000. 3. Plug the other end of the cable to the DB9m adapter. 4. Verify that each of the two PCs is physically connected to the dedicated switch with Ethernet cables. Task 1 Log on to the router using HyperTerminal We will use a Windows program called HyperTerminal to log on to your router from one of your PCs. 1. Verify the router is turned off. 2. Launch HyperTerminal at Start Programs Accessories Communication HyperTerminal. You will now need to configure HyperTerminal so that it communicates with the router on COM1. 3. Type router for the Connection Description Name. 4. In the Connect To window the fourth field is titled "Connect Using:" Scroll down to select COM1, and then click OK 5. Confirm and change if necessary the following settings in the COM1 Properties window popped up. Page 2

Bits Per Second: 9600 Data Bits: 8 Parity: None Stop Bits: 1 Flow Control: Xon/Xoff 6. Click OK. At the bottom left of the window, it should say "Connected" along with a connection timer. 7. Turn on the router. Observe the boot-up procedure being displayed. This lists information about the hardware, as well as the initial configuration. We will be modifying this configuration during this lab. Be patient during this step, the router can take up to 3 minutes to boot. 8. Note that there are two Ethernet interfaces at the back of the router. An IP address should already be assigned to each of these interfaces. 9. Type show interfaces to see their current state. 10. Record the MAC address, the speed of the interface, the Maximum Transfer Unit (MTU), and IP address for each interface in the table below. This information is the details about each interface. MAC address Speed MTU 11. When the router boots up initially, it is in the User EXEC mode. This has limited capabilities, which can be seen with the "?" command. Type?. Fill in the table below with the description given for the following commands. Also observe other commands available. Enable Show Traceroute Ping TIP: You can type the? command at any time to receive context sensitive help. Task 2 Clear router configuration Because we are unsure of the validity of the current configuration, we need to re-configure it by ourselves. First we need to clear the current configuration. To this end, we must be in Privileged EXEC Mode. 1. Type enable to enter Privileged EXEC Mode. Page 3

2. Type the password given on the chalkboard and press enter when prompt. The prompt should now end with #. 3. Type erase startup-config to clear the current configuration residing on the router. 4. Confirm that you wish to erase nvram filesystem and wait till it completes (up to 30 seconds). 5. Type reload and confirm. This reboots the router and allows the changes to take effect. 6. Type no if asked to save changes. TIP: One of the nice things about the Cisco IOS is that it does auto complete of commands, if you type a significant part of the command and press tab, the rest of the command will be added automatically. Another feature is the ability to abbreviate commands. Yet another and most useful feature is the ability to query for command syntax. For example if you don t know what arguments are accepted for the show command, type show? and a list of possible arguments is printed. Feel free to explore this command. Task 3 Configure an IP address to the router Once the router has finished booting up, the previous configuration will be erased and the IOS will be in the System Configuration Dialog. Task 3A Configure FastInterface0/0 (i.e. the Router s LAN interface) Using the System Configuration Dialog 1. Type yes to enter. 2. Type no to skip the basic management setup. 3. Type yes to see the current interface summary. 4. Type in the name of your group for the host name. 5. Type in the password given on the chalkboard for the enable secret. This password provides access to privileged EXEC mode. 6. Type in the same password for the enable password. It will tell you not to use the same password, but it is okay. Just type it in again. 7. Type in the same password for the virtual terminal password. 8. Type no to configuring the SNMP Network Management. 9. Type yes to configure IP. 10. Type no to IGRP and RIP routing, as well as bridging and configuring Async lines. 11. Type yes to configure the FastEthernet0/0 interface. 12. Type yes to use the RJ-45 connector. 13. Type yes to full duplex mode. 14. Type yes to configure IP on the interface. 15. Use the following Table 1 for the next prompt. Group A Group B Subnet Mask Address FastEtherernet0/0 192.168.0.1 192.168.50.1 255.255.255.0 FastEthernet0/1 192.168.100.1 192.168.100.2 255.255.255.0 Table 1 16. Type no to configure the FastEthernet0/1 interface. We will do this later manually. 17. Type 2 and press Enter to save the newly created configuration. Page 4

Task 3B Configure FastInterface0/1 (i.e. the Router s WAN interface) Manually 18. Type enable to enter the Privileged mode. 19. Type in the password on the chalkboard when prompt. You can tell if this succeeded by the last character of the command prompt. If it has changed to #, then you are in the Privileged mode. 20. Type?. Observe the increased number of commands available. Write down two commands available in the Privileged EXEC mode that are not available in the User EXEC mode. 21. Type configure terminal to enter the Global Configuration mode. Note the difference in the command prompt. 22. Type? to see commands available. 23. Type interface?. Write down the names of two interfaces that can be configured on router. 24. Type interface FastEthernet0/1 to enter the Interface Configuration Mode for FastEthernet0/1. 25. View the help description for the ip command. 26. Type ip address XXX.XXX.XXX.XXX YYY.YYY.YYY.YYY where the X's are the place for the IP address, while the Y's is the place for the subnet address. In this lab, the subnet address will be 255.255.255.0. Refer again to Table 1 above. 27. Type no shutdown in the Interface Configuration Mode to change FastEthernet0/1 to administratively up from administratively down. 28. Type CTRL-Z (or type exit twice) to go back to the Privileged mode. 29. Type show ip interfaces brief. 30. Verify that the IP addresses have been correctly assigned. 31. Attach the router s FastEthernet0/0 interface to your switch with an Ethernet cable. 32. Set up the host machines with the following IP addresses and the correct gateway. Minimize the HyperTerminal Window. Group A IP Address: Subnet Mask Address: Gateway: Computer1 192.168.0.2 255.255.255.0 192.168.0.1 Computer2 192.168.0.3 255.255.255.0 192.168.0.1 Group B IP Address: Subnet Mask Address: Gateway: Computer1 192.168.50.2 255.255.255.0 192.168.50.1 Computer2 192.168.50.3 255.255.255.0 192.168.50.1 Task 4 Setting up static routing tables This task requires Group A and Group B to work together. If you are ahead of your partner group, feel free to explore other commands available on router. Now that each network has its gateway configured, we are ready to connect these two networks together. The remainder of the router configuration will be done across the network that you just built. Page 5

1. We will use an Ethernet cable to act as the connection in the cloud. Find the Ethernet crossover cable and connect it between the FastEthernet 0/1 ports on both routers. 2. Click Start, choose Run, type telnet XXX.XXX.XXX.XXX where the X's are the place for the IP address of the router interface connected to your switch. Click OK. A telnet session is now open. 3. Type the password given on the board when prompt. We will now set up a static routing table in each of the two routers. The idea is for the table to indicate that the other group's network can be reached via the 0/1 interfaces of both routers. To create a static entry in the routing table of the router, you must be in Configuration Mode. 4. Enter the Privileged EXEC Mode. 5. Type config terminal. 6. Wait until the other group finishes Step 6. 7. Use the command ip route to set up the static routing table. This command requires three parameters: 1) destination network/subnet number, 2) its subnet mask and 3) The IP address of the next hop that can reach the destination network. As an example, Group A should issue the command: "ip route 192.168.50.0 255.255.255.0 192.168.100.2". Pre-lab Question 4: What command should Group B issue to set up an entry in the routing table so that machines in LAN2 can access machines in LAN1? 8. By pinging a host from the other group, verify that the static routing table has been created, and hosts from both groups are able to communicate with each other. Note that you need to use the command prompt to run ping. 9. Type exit to return to Privileged EXEC mode. 10. To view the routing table, type show ip route. List the entries in the routing table. Indicate the line of the table that represents the entry that you just placed into the table. 11. Gaining information about the topology of our network. tracert, short for traceroute, responds back with information on the route that was to the destination host, for example the number of hops between the two hosts. To some degree, this information can be even used to see physical distances between two hops by looking at the time delay between the two hops. In a command prompt, type tracert on a host within your group's network. Record the information returned. Now execute a tracert command on a host in the other group. Record this information. Page 6

Extra Tasks Access Lists (Firewall Packet Filtering) I. Introduction: The Access list is one of the most important control mechanisms to control access to both the internal and external network. Access lists consist of permit or deny statements that filter traffic based on the source address/port, destination address/port, and protocol type of the packet. In this lab, you have a chance to set up a Cisco router access list from scratch. Access-list format access-list [list #] [permit deny] [source address] [source wildcard mask] [source port] [destination address] [destination wildcard] [destination port] [precedence precedence#] [tos tos] [log] [established] where [list #] : Standard IP access-lists are represented by a number in range 1-99 [permit deny]: Either allow or deny access to certain source [source address]: The IP address of the source [source wildcard mask]: A wildcard mask, or inverse mask, applied to determine which bits of the source are significant.. Unlike subnet masks, 0 s are placed in bit positions deemed significant, and 1 s are placed in positions that are not significant. Wildcard mask examples. 172.22.5.2 0.0.0.0 All bit positions must match exactly. Access list will be applied only to the host 172.22.5.2 172.22.5.0 0.0.0.255 Bit positions in the first three octets must match exactly, but the last octet can be any valid number. The access list will apply to all hosts in the 172.22.5.0 subnet. One of the most common problems with access list is the lack of planning. Since an access list is searched from top to bottom, the configuration and order of each entry must be precise to work correctly. Ex: The following access list is not correctly configured. Access-list 1 deny any Access-list 1 permit 168.243.32.0 0.0.0.255 Access-list 1 permit any According to the access-list above, none of the computers on the network will be able to get access to the router. This is because when a condition is satisfied by a rule in access-list, router will NOT continue to check any of remaining rules. Task 1 Reset Access List 1. Make sure you are in privileged mode. 2. Type configure terminal. 3. Verify that the router is able to communicate with both computers by using the ping command with the IP address of a machine in your group and one in the other group. Page 7

Task 2 Create new Access List Here you are going to configure the router so that one of the machines from the other group can talk with you, while the other cannot. 1. Verify that there are no access lists using show access-lists 2. access-list 1 deny 192.168.50.3 (GroupB use 192.168.0.2) 3. access-list 1 permit 192.168.50.2 (GroupB use 192.168.0.3) Task 3 Applying Access List to Interfaces 1. Enter the interface configuration mode to configure the 0/0 interface. Type 2. interface FastEthernet 0/0 3. Apply the above list (list 1) to the out side of the interface: ip access-group 1 out 4. Verify that the list has been entered, this time use the command show run. 5. And verify that the router correctly filters packets. Use ping from both hosts to verify. 6. Fill out the following table with the results of your verification. Pinging Success (Yes/No) 192.168.0.2 192.168.0.3 192.168.50.2 192.168.50.3 Pinged 192.168.0.2 192.168.0.3 192.168.50.2 192.168.50.3 Page 8

Figure 1 Page 9