CS312 LAB 3 - CONFIGURING A ROUTER

Similar documents
LAB THREE STATIC ROUTING

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

Lab Load Balancing Across Multiple Paths

Lab 1: Introduction to the network lab

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

LAB Configuring NAT. Objective. Background/Preparation

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

Lab Advanced Telnet Operations

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

3.1 Connecting to a Router and Basic Configuration

Lab 2 - Basic Router Configuration

Lab Creating a Logical Network Diagram

Lab - Using IOS CLI with Switch MAC Address Tables

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

Lab Configuring OSPF with Loopback Addresses

Computer Networks Administration Help Manual Sana Saadaoui Jemai Oliver Wellnitz

LAB FOUR Dynamic Routing Protocols

Lab Characterizing Network Applications

Computer Networks I Laboratory Exercise 1

Lab Configuring Basic Router Settings with the Cisco IOS CLI

Router Lab Reference Guide

Lab: Basic Router Configuration

Lab Load Balancing Across Multiple Paths Instructor Version 2500

Applicazioni Telematiche

Lab Diagramming Intranet Traffic Flows

Sample Configuration Using the ip nat outside source list C

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

Exercise 4 MPLS router configuration

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

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

Configuring a Leased Line

IP Addressing and Subnetting. 2002, Cisco Systems, Inc. All rights reserved.

Lab Diagramming External Traffic Flows

Lab 8.4.3a Managing Cisco IOS Images with TFTP

Configure ISDN Backup and VPN Connection

Configuring a Load-Balancing Scheme

Packet Tracer 3 Lab VLSM 2 Solution

Cisco - Configure the 1721 Router for VLANs Using a Switch Module (WIC-4ESW)

Lab 5.3.9b Managing Router Configuration Files Using TFTP

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

Configuration of Cisco Routers. Mario Baldi

Configuring a Load-Balancing Scheme

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

NetFlow Subinterface Support

Building a Network in GNS3

Debugging Network Communications. 1 Check the Network Cabling

Lab Configuring DHCP with SDM and the Cisco IOS CLI

Sample Configuration Using the ip nat outside source static

Lab Creating a Network Map using CDP Instructor Version 2500

Lab assignment #1 Firewall operation and Access Control Lists

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

Configuring the Switch with the CLI-Based Setup Program

Lab 8.3.3b Configuring a Remote Router Using SSH

BRI to PRI Connection Using Data Over Voice

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

Cisco Configuration Professional Quick Start Guide

CHAPTER 3 STATIC ROUTING

GLBP - Gateway Load Balancing Protocol

Setting up VPN connection: DI-824VUP+ with Windows PPTP client

DHCP Server Port-Based Address Allocation

IST 220 Honors Project. Subnets with Variable Length Subnet Masks

Procedure: You can find the problem sheet on Drive D: of the lab PCs. 1. IP address for this host computer 2. Subnet mask 3. Default gateway address

1 crossover cable. the PCs. network

Configuring a Load-Balancing Scheme

LAB MANUAL for Computer Network

USER GUIDE. Ethernet Configuration Guide (Lantronix) P/N: Rev 6

Device Interface IP Address Subnet Mask Default Gateway

During this lab time you will configure the routing protocol OSPF with IPv4 addresses.

Cisco Router Configuration Basics. Scalable Infrastructure Workshop

- Basic Router Security -

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)

Configuring WAN Failover with a Cisco 881 Router and an AirLink ES440

Deployment Guide: Transparent Mode

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

Lab Developing ACLs to Implement Firewall Rule Sets

Savvius Insight Initial Configuration

Configuring DHCP. DHCP Server Overview

Flow-Based per Port-Channel Load Balancing

NETWORK ADMINISTRATION

Chapter 2 Lab 2-2, EIGRP Load Balancing

VLSM Static routing. Computer networks. Seminar 5

CCNA Discovery Networking for Homes and Small Businesses Student Packet Tracer Lab Manual

Lab Configuring the PIX Firewall as a DHCP Server

Instructor Notes for Lab 3

AutoQoS. Prerequisites for AutoQoS CHAPTER

Lab assignment #2 IPSec and VPN Tunnels (Document version 1.1)

Skills Assessment Student Training Exam

ICS 351: Today's plan

Lab Exercise Configure the PIX Firewall and a Cisco Router

How to Configure Cisco 2600 Routers

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

Configuring the Switch with the CLI Setup Program

Lab Managing the MAC Address Table

Sampled NetFlow. Feature Overview. Benefits

Lab Configuring Access Policies and DMZ Settings

How To Configure InterVLAN Routing on Layer 3 Switches

O /27 [110/129] via , 00:00:05, Serial0/0/1

Smart Web Manager for VoIP Gateway Series

Lab Configuring Basic Router Settings with the Cisco IOS CLI

Transcription:

CS312 LAB 3 - CONFIGURING A ROUTER Be sure to leave the lab connected in the same way that you found it. If you change the configuration of the network, it may be difficult for the next person to complete the lab. After completing this lab, you should be able to: 1. Understand the capabilities of a router 2. Set up and configure a router 3. Be able to set TCP/IP parameters on a Linux system or PC Background Information In this lab you are going to do the setup and configuration of three routers and the establishment of IP addresses for the Linux workstations in the lab. Design: In this lab, you are going to connect three networks together via a backbone that connects three routers. There are four Linux machines. Using the hubs available, connect PC1 and PC2 into one hub, PC3 into a second hub and PC4 into a third. Be sure to use hubs, not switches! You will define new network numbers for the three segments using the class A private network numbers defined in RFC 1918. We will subnet the network using a mask of 255.255.255.0. Use the range of class A private subnetworks: 10.2.0.0 to 10.2.200.0. Randomly choose 4 of these network numbers to use. There are three routers in the lab. One network is to be to be connected to each router. A fourth network will connect the routers(using a hub) and thus will have no other hosts on it (hence you need four networks). EXERCISE1: Network diagram 1. Draw a diagram of how you intend to interconnect the machines 2. For each network, list the network address, set of machines and router interfaces : Network Network Addreess Machines/ Router interfaces in network N1 10.2.0.0/24 PC1, PC2, R1(FastEthernet0/1) N2..

EXERCISE2: PC IP Address Selection 1. Identifying the network addresses of each of the machines. PC IP Address chosen PC1 PC2 PC3 PC4 2. Identify which ports you will be using on the routers and the IP addresses of those ports. Router port/interface Network associated IP Address chosen R1 FastEthernet0/0 R1 FastEthernet0/1 R2 FastEthernet0/0 R2 FastEthernet0/1 R3 FastEthernet0/0 R3 FastEthernet0/1 R4 FastEthernet0/0 R4 FastEthernet0/1 Update your drawing to incude ip addresses of all PCS and router interfaces. ***************************************************************** Be very careful to follow the directions in this writeup. Do not change any of the passwords for any of the devices! For all of the machines, MAKE NOTE OF THE CURRENT SETTINGS SO THAT AT THE END OF THE LAB YOU CAN RECONFIGURE THE MACHINES TO THEIR ORIGINAL VALUES! ***************************************************************** EXERCISE3: Manual Wiring according to diagram Physically hook up your network according to the diagram that you have drawn. EXERCISE4: Configure PCs Assign PC ip addresses Assign proper IP addresses you chose to all PCS. On the Linux boxes: You can log into any of the Linux boxes as netlab (password netlab). Do not change the password!

Use su to become root. netlab@lab1% su - (Remember the -) To configure the network interfaces for the Linux workstations, the following must be done. 1. Identify the name of the network interfaces. There may multiple interfaces and they are known by different names on different systems. To find the network interfaces available you can use the command: netstat -ain (Look at the man pages for netstat to determine what the options do) One interface that is listed will be lo, which is the virtual interface for what is called local loopback (a way for a machine to treat itself as one of the machines on the net just like any other) and should have an address of 127.0.0.1. Any others should be names of physical network interfaces and should show an ethernet address. Set up the interfaces by using the /sbin/ip addr add <address/mask> dev <int> Set default routes In addition, we need to set the default route for each Linux box so that it knows what address to send packets that are destined for other networks. Since each box is attached to only one router, we can simply set a default route in the Linux box to send messages to the router address that is on its network. To do this, you use the route command (do a man route to see details). The command is used as: ip route add default via <router_address> If we have a network of 10.1.1.0, and the router that is attached to that network has the address 10.1.1.254, then we use the command : ip route add default via 10.1.1.254 ip route add 10.40.0.0/16 via 10.72.75.254 To delete a route that has been set up, use ip route del <route> <router_address> ip route del 10.38.0.0/16 via 192.168.100.1 dev eth3

ip route del default via 192.168.100.1 You can also use ip route show to display the current routing table. To delete a route that has been set up, use ip route del default gw <router_address> List the default gateway ip chosen for each PC PC Default Gateway IP PC1 PC2 PC3 PC4 EXERCISE5: Configure Routers CISCO IOS basics: The command line interface of IOS has a rich syntax. There are hundreds of configuration commands and some commands have numerous options. The command line interface runs in different modes and each command requires a certain mode. Each command mode has a different prompt and you can tell which mode you are in by looking at the prompt. Typing a question mark at any prompt will give you a list of available commands for that mode. If a command requires parameters, you can get an idea of the parameters required b typing the command followed by a question mark. Note: When making selection within the router configuration application, you can abbreviate entries as long a they are not ambiguous (e.g. "int" for "interface") Physically connect the serial cable (blue flat cable) from the serial port on the back of a Linux box (use PC1) to the router jack labeled console on Router1. This is a communications link that allows you to configure the router. On the Linux box, open up a terminal emulator program by typing minicom on the command line. This should open a connection to the router and you should see a prompt of Router1> This is in the user EXEC mode. To see the commands that are possible in this mode, enter a question mark: Router1>? To view and change system parameters, you need to enter the Privileged EXEC mode. To do this, type the word enable and then the password to the enable mode: netlab

Router1> enable Password: netlab Router1# Notice that the prompt has changed indicating that you are in the Privileged EXEC mode. As before, you can enter a question mark to see what commands are available. To modify system wide configuration parameters, you need to enter the global configuration mode. This mode is entered by typing Router1# configure terminal Router1(config)# The routers we are configuring have two ports or interfaces. Note the names of the two ports on the back of the router. To make changes to a network interface, enter the configuration mode by using the keyword interface along with the name of the interface you want to configure. Router1(config)# interface FastEthernet0/0 Router1(config-if)# To return from the interface configuration to the global configuration or from the global configuration to the Privileged EXEC mode, use the exit command. Router1(config-if)# exit Router1(config)# exit Router1# Each time you enter exit, it will take you one more step up the hierarchy. To directly return to the Privileged EXEC mode from any configuration mode, type end Router1(config-if)# end Router1# To return from the Privileged EXEC mode to the user EXEC mode, type the command disable Router1#disable

Router1> To terminate the console session from the user EXEC mode, type logout. Router1> logout Router1 con0 is now available Press Return to get started Alternatively, you can type logout or exit from the Privileged EXEC mode. Configuring an Interface 1.To assign address 10.2.0.254 to interface/port FastEthernet0/0 of Router1: Router1> enable Password: netlab Router1# configure terminal Router1(config)# no ip routing Router1(config)# ip routing Router1(config)# interface FastEthernet0/0 Router1(config-if)# ip address 10.2.0.254 255.255.255.0 Router1(config-if)# no shutdown Router1(config-if)# end The no ip routing disables IP forwarding and resets the contents of the routing table. The ip routing command enables ip forwarding on the router. The end command enables the interface. The command shutdown would disable an interface. When you have finished, use the commands to verify ip addresses are setup and interface is up: Router1# show interfaces Router1# show running-config 2. Do same for FastEthernet0/1 port of Router 1 to assign the ip address you selected in Exercise2 for it. Repeat steps 1,2 for Router2 and Router3 to assign ip addresses you chose in Exercise2 for each port: i.e Do the same with Router2 and Router3 (you need to Physically connect the serial cable (blue flat cable) from the serial port on the back of PC1 to the router jack labeled console on Router2 (or Router3))

According to your diagram, you should now configure all the appropriate interfaces of the three routers. Be sure that you match the network numbers and masks correctly on each of the interfaces according to what networks they are connected to according to your diagram. In your report, include the output from these commands (for Router3) along with a brief explanation of what it means. EXERCISE6: Test Connectivity From PC1, ping PC2, and both IP addresses of the router that is connected to the same network as PC1. Do the same thing from PC3. Finally, from Router1, try to ping each of the 4 devices along with both IP addresses of Router2. In your report, Include the result of your pings along with a brief explanation. You should also indicate which devices you can successfully reach and if this matches your expectations. EXERCISE7: Creating routing Tables Even though we have enabled ip routing on the routers, we have not created any routing tables! We will add static routes to begin. The following commands can be used: From the Privileged EXEC mode show ip route Displays the contents of the routing table clear ip route * deletes all routing table entries show ip cache shows the contents of the ip cache From the global configuration mode: ip route-cache Enables route caching. By default, route caching is enabled on a router no ip route-cache disables route caching ip route destination mask gw_address adds a static routing table entry to destination with netmask mask. Gw_address is the address of the next-hop router ip route destination mask iface adds a static routing table entry to destination with netmask mask. Here the next-hop information is the name of a network interface(e.g. FastEthernet0/0) no ip route destination mask gw_address no ip route destination mask iface deletes the route table entry with destination, mask, and next hop

Add static routing entries to routing table For each router now we need to add static routing entries to reach networks that it is not directly connected. E.g. Router1 need to add two static entries, one to reach network2(with PC3), and the other to reach network3(with PC4). E.g. add static route from Router1 to Network3 10.2.0.1 10.2.0.254 10.2.10.254 10.2.10.253 10.2.20.254 10.2.20.1 PC1------------------FE0/0-Router1-FE0/1-------------------FE0/0-Router2-FE0/1-------------------PC2 Router1(config)#ip route 10.2.20.0 255.255.0.0 10.2.10.253 Note that Router1 is directly connected to Network2. So, a static entry in routing table of Router1 for Network2 is not needed! Add default route to routing table: Router1(config)# ip route 0.0.0.0 0.0.0.0 10.2.0.4 This sets a default route so that any address that does not match one of the other entries will automatically be routed to 10.2.0.4 Remove static route from routing table: Router1(config)# no ip route 10.21.0.0 255.255.0.0 10.11.1.4 This removes this route from the table Display contents of routing table: show ip route Add the routing entries to each of the routers so that all the networks are reachable. In your report, copy output you got for following commands in Router1 with a brief explanation: show ip route show ip cache Network1 Network2 Network3

EXERCISE8: Test Connectivity At this point, all boxes should be able to communicate with each other. Send a ping command from PC1 to all the other interfaces (3 other linux boxes and 6 ports on the routers). If not all of the addresses are reachable, you will need to troubleshoot the network and try to determine where the problem is. When you have successfully debugged the network, repeat the ping from PC1 to the 3 other linux boxes and the four ports and save the output. Include it in your report with a brief explanation. In your report, copy output you got for ping from PC1 to other 3 PCS along with an explanation: EXERCISE9: Looking at forwarded packets Now move PC4 from its network to the network that connects the two routers. Note that its IP address must be changed to match the network that it will now be on. Start wireshark on PC4. Send a ping from PC3 to PC1. Look at the packets from the ping on wireshark. Carefully look at the MAC address and the IP address of the ping and the response. Check to see what the MAC addresses of PC1, PC3 and the two routers are. Attach your wireshark results to your report along with an explanation of what you have found. In your report, give a brief overview of what you have covered and learned. Include the appropriate output along with explanations for each portion of the lab. Be sure to have both an introduction and a conclusion to your report. Be sure to disconnect all wires and remove all files that you created. Finally, reset the tables for the routers and reboot the machines so the lab will be ready for the next group. Submitting Lab Report Submit only one lab report per group. The name of the report should be Lab3_Report_first_last.pdf where first and last represent the name of one member (selected at random) of the group(e.g. Lab2_Report_John_Doe.pdf). The list of names and emails of the group members should be included in the first page of the report. To submit, copy the file to /usr/people/handin/cs312 folder by the due date listed in the class website.