Home arrow Teaching arrow Lab Two - Configuring Cisco IP Routers
Lab Two - Configuring Cisco IP Routers Print

The main goal of this lab is to get you familiar with the configuration of commercial IP routers (Cisco 7000). You will learn how to configure the router to do perform routing using the RIP protocol.

Goal

The main goal of this lab is to get you familiar with the configuration of commercial IP routers (Cisco 7000). You will learn how to configure the router to do perform routing using the RIP protocol.

 

Prelab

  1. In this Lab you will work with Cisco 7000 routers. Go to Cisco's web page (www.cisco.com) and find out about the types and number of interfaces of Cisco 7000 router. Provide a brief description of the available interfaces.
  2. The Cisco routers in the IETL are running the IOS Version 11.2 operating system. Read about IOS 11.2 at http://www.cisco.com/univercd/cc/td/doc/product/software/ios112/index.htm.
  3. Use the web page to answer the following questions:
    • What are the routing protocols supported in IOS 11.2.
    • Briefly describe how the online help feature of the IOS 11.2 user interface works.
    • What is the command which disables IP forwarding at the Cisco router?
    • What is the command to change the MTU (maximum transmission unit) on a Cisco router?
  4. We will be using a LINUX utility called minicom in the lab to connect the PCs to the Cisco routers. In at most three sentences, describe what minicom is. List at least two major features of the minicom program. Use the linux man pages to answer these questions.
  5. What is the difference between a null-modem cable (also called cross-over or roll-over cable) and a straight through serial cable? How does one differentiate between the two? Cisco's web site has a wealth of information at: http://www.cisco.com/warp/public/701/

Setup

The setup of this lab is requires you to create two subnets using PC1 and PC2 in Network A and PC3 and PC4 in Network  B. Use the network diagram below to setup your network. Note that here are three separate subnets. Network A is connected to Router 1 and Network B is connected to Router 2 via Ethernet. Router 1 and Router 2 are connected via the Network C.

Lab Two Setup

PC Name

IP Address of Ethernet Interface eth0

Network A

PC1

192.168.2.10/24

PC3

192.168.2.30/24

Hub to Router 1

192.168.2.1/24

Network B

PC2

192.168.3.20/24

PC4

192.168.3.40/24

Hub to Router 2

192.168.3.1/24

Network C

Router 1

192.168.1.10/24

Router 2

192.168.1.20/24


Exercises

Section 1:  Logging in to the Router Console

Exercise 1.1
Identify the computer that is connected to the Router using a RS232 serial cable. The computer should also be marked as "Router Console PC". Make sure the serial cables are connected to the respective routers. The "Router Console PC" is not part of the Network setup, but is used to provide an interface to the Routers.

Exercise 1.2

Follow the guidelines below to establish a terminal connection with the console port of
the router. This gives you a terminal console to type in commands.
To access the console port of your directly connected router, run the minicom program
on your machine. At the command prompt on your PC, type
 > minicom router1 to log into router1
 > minicom router2 to log into router2 in a seperate window.

At this point please get your report checked off by the lab supervisor.

Section 2:  Command Modes of IOS

Brief Background
In this part, you will perform a number of simple exercises on the Cisco routers. The
goal of the exercises is to make you become familiar with the configuration commands
on Cisco 7000 series routers. Cisco uses the same operating system, the Cisco
Internetwork Operating System (IOS), on all of its routers, with some minor version
differences. There is not common standard command language for routing equipment.
If you work with routers from a different company, e.g., Nortel or Lucent, you need to
learn a new command language.
The IOS interface is similar to a UNIX or DOS command shell, that is, you type in
commands at a prompt. A notable difference is that IOS has a set of different
command modes. Certain functions, such as configuring a network interface can only
be performed in a specific command mode. This part of the lab presents to you the
different command modes in IOS. You learn how to enter and leave the various modes.

IOS Modes

Table 2-2: Command Modes Summary

Mode

Access Method

Prompt

Exit Method

About This Mode

User EXEC

Begin a session with your router.

RouterName>

Enter the logout command.

A subset of the commands available in this mode. Use this mode to:

  • Change terminal settings
  • Perform basic tests
  • Display system information

Privileged EXEC

Enter the enable command while in user EXEC mode.

RouterName#

To exit to user EXEC mode, enter the disable command.

To enter global configuration mode, enter the configure command.

Use this mode to:

  • Configure your router operating parameters.
  • Perform the verification steps shown in this guide.

To prevent unauthorized changes to your router configuration, access to this mode should be protected with a password .

Global configuration

Enter the configure command while in privileged EXEC mode.

RouterName(config)#

To exit to privileged EXEC mode, enter the exit or end command, or press Ctrl-Z.

To enter interface configuration mode, enter the interface command.

Use this mode to configure parameters that apply to your router as a whole.

Interface configuration

Enter the interface command (with a specific interface) while in the global configuration mode.

RouterName(config-i

f)#

To exit to global configuration mode, enter the end command.

To exit to privileged EXEC mode, enter the exit command, or press Ctrl-Z.

To enter subinterface configuration mode, specify a subinterface with the interface command.

Use this mode to configure parameters for the various LAN and WAN interfaces of your router, including the:

  • Ethernet interface
  • Serial interface
  • ISDN interface

Router configuration

Enter your router command followed by the appropriate keyword while in global configuration mode.

RouterName(config-r

outer)#

To exit to global configuration mode, enter the end command.

To exit to privileged EXEC mode, enter the exit command, or press Ctrl-Z.

Use this mode to configure an IP routing protocol.

Line configuration

Specify a line with the line vty command while in the global configuration mode.

RouterName(config-l

ine)#

To exit to global configuration mode, enter the exit command.

To enter privileged EXEC mode, enter the end command, or press Ctrl-Z.

Use this mode to configure parameters for the terminal.


1. User EXEC Mode ("user mode")
If you completed Section 1, you are now logged into the router in user mode. You see a command prompt, so-called User EXEC prompt:
    router-name>
Where router-name is the assigned name of the router. We will use the name Router1 as an example throughout this session.
You logoff by typing
    Router1>exit
There are only a few commands which you can execute in user mode prompt. You will
not be able to change any configuration parameters. You can run the following
commands, which are similar to the UNIX commands:
  • ping
  • telnet
  • trace
You get a complete list of command available in the user mode by typing:
       Router1>?

2. Privileged EXEC Mode ("enable mode")
In order to change the configuration of a router, you need to be in a system
administrator mode, similar to root on a Unix system. In Cisco IOS, this mode is called the privileged EXEC mode or enable mode. After connecting to the system, you change to the privileged mode by typing:
    Router1>enable
The system will ask for a password, the privileged mode password or enable secret or
enable password. The TA will provide you with the password. If the login is successful,
you will see a different command prompt:
    Router1#
In this state, you can query and set the operation and configuration of the router.
You leave the privileged EXEC mode by typing
    Router1#disable
Or you logoff completely, by typing
    Router1#exit
You get a complete list of commands by typing:
    Router1#?

Exercise 2.1 (a)
Run the following commands for displaying the configuration of your system.
Save the output.
  • Obtain a list of all interfaces of your system by typing
    write term
  • Display information on all interfaces on your system by typing
    show interfaces
  • Display the list of FDDI interfaces with the command:
    show interfaces fddi
  • Display information on a single interface of your router by typing the command:
    show interfaces eth2/1
  • Display the IP routing table with the command:
    show ip route
Exercise 2.1 (b)
Find the command to display (or show) IP protocol statistics. Save the output.
Exercise 2.1 (c)
Reboot the router with the command:
    reload
and observe the output when the router restarts.

3. Global Configuration mode
To modify system wide configuration parameters, such as IP addresses, routing
algorithms, routing table, you must be in the global configuration mode. You can enter the configuration mode only from the privileged EXEC mode, by typing:

    Router1#configure terminal

(The argument terminal tells the router that you will be entering configuration
commands from the terminal console. Alternatives are configure network or
configure memory). The command prompt in the global configuration mode is:
    Router1(config)#

You leave the global configuration mode by typing CTRL-z:

Router1(config)#^Z
From this mode you can go into specific interfaces or configure router wire configurations.

Exercise 2.2
Find the command to configure RIP as the routing protocol of the router.


4. Interface configuration mode
To modify the configuration parameters of a specific interface, you must enter the
interface configuration mode. You must be in the (global) configuration mode to enter
this mode.
The Cisco 7000 routers may have the following interfaces:
·  FDDI - Fiber Distributed Data Interface
·  ATM - Asynchronous Transfer Mode
·  HSSI - High-Speed Serial Interface
·  FSI - Fast Serial Interface
·  Fast Ethernet (Ethernet) - 100 Mbps (10 Mbps) Ethernet
When you configure an interface of On the 7000 routers, you have to specify the slot
and port number in addition to the name of the interface, since the 7000 routers support different types of interfaces (one per slot) and multiple interfaces of the same type per slot (specified as port numbers).

A note on interface names:
On the Cisco 7000 routers, interfaces have the structure:
<type> <slot>/<port>
Examples:
ethernet 2/1, atm 3/0, hssi 2/0

Interpretation: The interface ethernet 2/1 indicates that this is an Ethernet
interface, which is on an interface card. The interface card is inserted in slot number
2 of the router. The interface card has several Ethernet interfaces, which are
identified by a port number. The interface ethernet 2/1 indicates that this
interface is on port 1.

To enter the interface configuration mode for an interface, you have to enter the
keyword interface followed by the interface name. For the 7000 routers, to enter the configuration mode of Ethernet port 1 of slot 2 type:
    Router1(config)#interface Ethernet 2/1

Once in interface configuration mode, you will see the following prompt::
    Router1(config-if)#

Now you can type commands to configure the interface. You get a complete list of
commands by typing:
    Router1(config-if)#?

You enable and disable interfaces as follows.
    Router1(config-if)#no shutdown

enables an interface and

    Router1(config-if)#shutdown

disables an interface.

You return to the global configuration mode by typing:
Router1(config-if)#exit


Exercise 2.2
In Exercise 2.1, you displayed the list of all interfaces on your router using the
show interfaces. Go back to that list and verify that you are able to
identify the names and the locations (slot and port number) of the interfaces of
your router.

Refer to the topology shown in Figure 2. Your task is to identify the interfaces
which are connected by point-to-point links, as shown in the figure. Ask the lab
instructor to help if necessary. Write down the names of the interfaces that will
be connected. All groups need to have a consistent view:

  • Interface __________ of Router1 connects to Interface __________ of Router2
  • Interface __________ of  Router1 connects to Network A
  • Interface __________ of  Router2 connects to Network B

Section 3:  Configuring the IP addresses

Exercise 3.1
To set or change the IP address of an interface, you must enter the interface
configuration mode for this interface. For example, to configure a Ethernet interface on the 7000 routers:

Enable -> configure term -> interface ethernet <interface>/<port>

Then you can set the IP address using the following syntax:
ip address 192.168.x.x 255.255.255.0

Set the ip addresses as per the network diagram of Figure 2. Make sure to tabulate this in your report.

Section 4:  Configuring RIP as the routing protocol

Exercise 4.1
To enable RIP as the routing protocol. Do the following
Enable -> configure term -> router rip.

Then you need to add the networks that RIP will be handling.


Section 5:  Demo

Exercise 5.1
Show the working of your network to the lab instructor and log the routing tables created by RIP for your lab report.



Last Updated ( Monday, 18 October 2004 )
< Prev
Copyright 2004 - 2004 Department of Computer Science, Kent State University, Kent, OH- 44240.
Mambo is Free Software released under the GNU/GPL License.