Вы находитесь на странице: 1из 6

Network Laboratory #3 Student’s Manual

CISCO IOS Router and 5500 Switch Configuration


Objectives:
This lab will address the following:

1. The functions of Router’s console port and connection through it

2. Using HyperTerminal to connect from Windows workstations and tip from Sun
workstations

3. Basics of IOS configuration commands

4. Interrogating the configuration of a Router and of the Cat5500

Equipment:
1. PC with monitor, keyboard, mouse, and power cords

2. Windows or SUN Solaris operating system on workstation.

3. NIC card and console cable connected to the console port and Cat5 patch cable to
LAN

4. HyperTerminal or VI/PICO/NEDIT for touch console directly

Background:

During this lab you will configure a Router using CISCO IOS commands. You will first
configure the device through the connection to its console ports. Then you will access
your router by the Ethernet connection and set up the routing table.

3-1
Lab 3 Configuration

10.0.10.10 10.0.20.10 10.0.30.10


PC SUN PC SUN PC SUN
10.0.10.20 10.0.20.20 10.0.30.20

LAN-Switch1 LAN-Switch2 LAN-Switch3

(E0/1) 10.0.10.1 (E0/1) 10.0.20.1 (E0/1) 10.0.30.1

Router1 Router2 Router3

(E0/0) 10.0.100.1 (E0/0) 10.0.100.2 (E0/0) 10.0.100.3

CAT5500 RSM
10.0.100.254
10.0.100.100

(E0/0) 10.0.100.4 (E0/0) 10.0.100.5 E0/0) 10.0.100.6


Router4 Router5 Router6

(E0/1) 10.0.40.1 (E0/1) 10.0.50.1 (E0/1) 10.0.60.1

LAN-Switch4 LAN-Switch5 LAN-Switch6

10.0.40.10 10.0.50.10 10.0.60.10


PC SUN PC SUN PC SUN
10.0.40.20 10.0.50.20 10.0.60.20

The switch supervisor module is the “brain” of the 5500 switch. It acts as a virtual host
for all switches on the backbone network. Its IP address is 10.0.100.254.

3-2
Task1: Direct connection to router via console port for initial configuration

Direction: in order to reach the router before it is configured, you have to use the
router’s console port with terminal tools.

Instructions for connecting from Windows2000:

1. Click StartÆProgramsÆAccessoriesÆCommunicationÆHyperTerminal
see: a HyperTerminal window and its setup dialog

2. Set a name for this connection: routerX, where X is the number of your segment

3. Set connection port: COM1

4. Set connection speed: 9600

5. Click OK, and hit Enter


see: the router console connected and prompting for a password

Task2: IOS commands to interrogate and change router configuration


parameters

Direction: Now we have logged on to the router. The next step is to assign IP
addresses to router’s network interfaces, or the router won’t work for the Ethernet
network.

1. Stay in the HyperTerminal window, and type the command:


$ routerX>enable
see: “Enter password: _” on the screen
note: command “enable” let you go into the user mode, in which you can
check the router’s parameters.

2. Input password and type Enter again


$password: netlab
see: “routerX#_” on the screen

3. To interrogate:
$ routerX# show config
See: the whole configuration on the screen

4. To modify:
$ routerX# config t
See: “routerX (config)#” on the screen
Note: Now you are in the general configuration mode

3-3
5. $ router1 (config)# ip routing
Note: Enabling routing function

6. $ router1 (config)# interface fastEthernet0/0


See: “routerX (config-if)#” on the screen
Note: Now you are in the interface configuration mode

7. $ routerX (config-if)# ip address 10.0.100.X 255.255.255.0


Note: X is the number of your segment

8. $ routerX (config-if)# exit


See: “routerX (config)#” on the screen
Note: exiting the interface configuration mode

9. $ routerX (config)# interface fastEthernet0/1


See: “routerX (config-if)#” on the screen

10. $ routerX (config-if)# ip address 10.0.X0.1 255.255.255.0

11. $ routerX (config-if)# exit


See: “routerX (config)#” on the screen

12. $routerX (config)# exit


See: “router1#” on the screen
Note: exiting the general configuration mode

13. $routerX# write


See: “Building configuration…”
“[OK]” on the screen
Note: save the configuration to file

14. $routerX# exit

15. Close HyperTerminal program.

Task3: Telnet to router and switches when available

Direction: Now that the router’s IP addresses are configured, and it becomes
active on the Ethernet network. Thus, we can reach it using the telnet command.

1. Open a DOS prompt window in Windows PC, or a terminal window in SUN


workstation

3-4
2. At the command prompt type:
$telnet 10.0.X0.1 (or 10.0.100.X)
see: “Enter password: _ “ on the screen
note: X is the number of your segment

3. Input password and type Enter


$password: netlab
see: “routerX>_” on the screen

4. $ routerX>enable
see: “Enter password: _” on the screen
note: always use command “enable” first, if you want to see something

5. Input password and type Enter again


$password: netlab
see: “routerX#_” on the screen

6. At this point you have entered routerX

Task4: Manual build of routing tables

Direction: routing table is the key part of the router’s configuration. It must be
built before workstations can communicate from one sub-network to another
through the router.

1. Stay in your DOS prompt window or terminal window, and continue


following steps.
Note: the following configuration is only for the router1 and serves as
an example. If you are working with a router other than router1, you
must modify the configuration.

The format of an entry in the routing table is:


ip route 10.0.X0.0 255.255.255.0 10.0.100.X
where
10.0.X0.0 Destination prefix
255.255.255.0 Destination prefix mask
10.0.100.X Forwarding router's address

One line of such entry means: forward all packets addressed to the network
“10.0.X0.0 255.255.255.0” to the next router represented by the IP address
“10.0.100.X”

Example for router1:


2. $router1#config terminal

3-5
3. $router1 (config)# ip route 10.0.60.0 255.255.255.0 10.0.100.6
4. $router1 (config)# ip route 10.0.50.0 255.255.255.0 10.0.100.5
5. $router1 (config)# ip route 10.0.40.0 255.255.255.0 10.0.100.4
6. $router1 (config)# ip route 10.0.30.0 255.255.255.0 10.0.100.3
7. $router1 (config)# ip route 10.0.20.0 255.255.255.0 10.0.100.2
8. $router1 (config)# exit
9. $router1# write

To achieve inter-connectivity between different subnets, we also need the help of


the backbone switch: Catalyst 5500. The ip routing table on Catalyst 5500 has
been set up and is as the follows:

ip route 10.0.10.0 255.255.255.0 10.0.100.1


ip route 10.0.20.0 255.255.255.0 10.0.100.2
ip route 10.0.30.0 255.255.255.0 10.0.100.3
ip route 10.0.40.0 255.255.255.0 10.0.100.4
ip route 10.0.50.0 255.255.255.0 10.0.100.5
ip route 10.0.60.0 255.255.255.0 10.0.100.6

Worksheet - Test connectivity

Open a local terminal window, execute commands in the following table, and
record the results.

Note: command “tracert” is for Windows PC, and “traceroute” is for SUN
workstation. You need only run one of them, depending on which kind of
computer you are using.
X is the number of your segment; Y is the number of another segment.

ping 10.0.X0.1
ping 10.0.100.X
ping 10.0.Y0.20
tracert 10.0.Y0.20 or
traceroute 10.0.Y0.20

ping 10.0.100.254

3-6

Вам также может понравиться