| Lab Two - Configuring Cisco IP Routers |
|
|
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. GoalThe 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
SetupThe 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.
ExercisesSection 1: Logging in to the Router Console Exercise 1.1Identify 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 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. ![]() Table 2-2: Command Modes Summary
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:
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.
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:
Section 3: Configuring the IP addresses 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 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 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 |
|---|


