Sei sulla pagina 1di 2

Laboratory 1: Basics of Router Configuration

In this session you will learn how to examine a Cisco router and perform a basic configuration. At the end of this section
you will learn various show commands, interface configuration, and protocol configuration. Before starting configuration,
find out what the following are: DCE, DTE, serial and
Procedure
Use Packet Tracer in achieving the following. Check the configuration files after each step
1.

Create a diagram with two routers (2811) and one switch (2950-24) for each router. Add serial interfaces (NM 4-A/S)
each router. Switch on the routers. Add an end device (generic PC) to each switch. Add one console (PC) for each
router. Connect all devices (serial cable router-to-router, straight through cable router-to-switch and switch-to-PC, rollover (console cable) console-to-router). Skip set-up mode. Note the prompt you obtain. In which mode are you?

Answer:
2.
3.

Type ? to list all available commands in this mode.


What does the command sh? give?

Answer:
4.

What does show ? give?

Answer:
5.

Obtain hardware/software version information (Router> show version). What information is available?

Answer:
6.

Configure the following:


Enter privileged exec mode
Enter global configuration mode
Stop domain lookup
Hostname
Configure message of the day
All interfaces (use private IP addresses with
the subnet mask 255.255.255.0)

Router> enable
Router# configure terminal:
Router# no ip domain-lookup
Router(config)# hostname anyName
anyName(config)# banner motd #Hello etc.#
anyName(config)# int s1/0
anyName(config-if)# ip address 192.168.0.1 255.255.255.0
anyName(config-if)# no shut
anyName(config-if)# clockrate 64000
anyName(config-if)# exit
anyName(config)# int fa0/1
anyName(config-if)# ip address 192.168.1.1 255.255.255.0
anyName(config-if)# no shut
anyName(config-if)# exit
Description for each interface
anyName(config-if)# description Router LAB-1-s1/0
Console password
anyName(config)# line console 0
anyName(config)# login
anyName(config)# password cisco
Enable secret
anyName(config)# enable secret class
Passwords for virtual terminals
anyName(config)# line vty 0 5
anyName(config)# login
anyName(config)# password class
Routing protocol RIP
anyName(config)# router rip
anyName(config-router)# version 2
anyName(config-router)# network 192.168.0.0
anyName(config-router)# network 192.168.1.0
ip host
anyName(config)# ip host anyHostname 192.169.0.1
7. Check the running and start-up configuration files. How do they compare?
anyName# sh run
anyName# sh start
8. Copy running configuration to start-up configuration (anyName# copy run start). Check the running and start-up
configuration files again. How do they compare?
9. Configure one host for each router (IP address and subnet mask).
10. Try the following
Ping from host to host
Trace route from host to host
Telnet from a remote host to a router.
anyName# show interfaces
anyName# show cdp neighbors
anyName# show cdp neighbors detail

anyName# show ip protocol


anyName# show ip route
Telnet using hostname
11. Once configuration and testing is successful, reload router (anyHostName# reload). This will delete your configuration
for a fresh start.
12. Reconfigure interfaces using a class B address (e.g. 172.168.0.0) and an 8-bit subnet mask.
13. Repeat step 11
14. Reconfigure interfaces using class C addresses and VLSM
15. Repeat step 11
16. Reconfigure interfaces using class B addresses and VLSM
Some commands/syntax for commands to use:
Router> enable
Router# erase start
Router# reload
Router# configure terminal
Router(config)# hostname hostname
Router(config)# banner motd #the message#
Router(config)# interface interface type interface no
Router(config-if)# ip address ip-address subnet-mask
Router(config-if)# no shutdown
Router(config-if)# clockrate 56000
Router(config-if)# bandwidth 56
Router(config-if)# description description
Router(config)# ip host hostname ip-address
Router# show run
Router# copy running-config startup-config
Router(config)# router protocol
Router(config-router)# network network-address
Router(config)# line console 0
Router(config-line)# login
Router(config)# password cisco
Router(config)# line vty 0 4
Router(config-line)# login
Router(config)# password cisco
Router(config)# enable secret class
Router# ping ip-address
Router# telnet ip-address
Router# telnet ip-host-name
Router# show ip route
Router# debug ip route
Router# undebug all
Save your configuration on a removable media for later use.
Note: This exercise will take 3-4 weeks

Change to privileged exec mode


Change to global configuration mode
Change to interface configuration mode
Reload router
Set hostname to hostname
Message of the day
Change to interface configuration mode
Set interface ip address & subnet mask
DCE only
optional

Configuring a routing protocol


Setting line console password
Setting password for virtual lines
Setting secret password

Potrebbero piacerti anche