Lab 2 - Basic Router Configuration: in This Lab You Will Learn
Lab 2 - Basic Router Configuration: in This Lab You Will Learn
Lab 2 - Basic Router Configuration: in This Lab You Will Learn
Name:_________________
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 of this lab) 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.
Page 1
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 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.
Page 2
8.
9.
10.
Flow Control: Xon/Xoff Click OK. At the bottom left of the window, it should say Connected along with a connection timer. 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. 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. Type show interfaces to see their current state. Record the MAC address, the speed of the interface, and the Maximum Transfer Unit (MTU) 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. Enable Show Traceroute Ping
12. Observe other commands available. You will need to use this information in Task 3.
Page 3
TIP: You can type the ? command at any time to receive context sensitive help.
1. Type enable to enter Privileged EXEC Mode. 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 dont 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 3A Configure FastInterface0/0 (i.e. the Routers 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.
Page 4
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.
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. Task 3B Configure FastInterface0/1 (i.e. the Routers 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 22. 23.
the command prompt. Type ? to see commands available. 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 Xs are the place for
the IP address, while the Ys 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 interface brief. 30. Verify that the IP addresses have been correctly assigned. 31. Attach the routers 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.
Page 5
Subnet Mask Address: 255.255.255.0 255.255.255.0 Subnet Mask Address: 255.255.255.0 255.255.255.0
Page 6
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 7
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.
Page 8
192.168.0.2
192.168.0.3
192.168.50.3
Pinging
Page 9
Figure 1
Page 10