Lab01-Managing An Internetwork
Lab01-Managing An Internetwork
Lab01-Managing An Internetwork
Introduction
In this lab, you will learn the process of connecting and configuring PCs, servers, and routers in
an Ethernet LAN using Packet Tracer. You will learn and experience the basic configuration
procedures for Cisco network devices. These procedures require the use of Cisco Internetwork
Operating System (IOS) and the related commands. An understanding of the configuration
process using the IOS is essential for network administrator and network engineers.
1. Drag a Cisco 1841 router and a PC into the Packet Tracer workspace.
3. During the connection, select RS 232 when you click on PC0. Select Console (means
the console port of the router) when you click on the Router0. (Note: In the real world,
configuration of Cisco Router is done using this blue cable called rollover cable, as
shown in the following diagram).
1. Double click on Router0. First, click on Physical tab. Then click on the WIC-
1ENET. Click on the switch to off it. (Note: WIC-1ENET provides an extra
Ethernet port for the router, which has a bandwidth of 10Mbps. Fast Ethernet has a
bandwidth of 100Mbps)
1
2. Click on the module located at the bottom right corner and drag it into the left slot. Then
click on the switch to on router again.
1. Double click on PC0, click on Desktop tab, and then click on Terminal. (Note: In real
life you can use HyperTerminal or PuTTY for Windows XP.)
2
3. From now on, use the Terminal of PC0 to configure the router instead of using the CLI
in router. (Note: Terminal is how a router is configured in the real world. CLI is just
a convenience in Packet Tracer. CLI does not exist in the real world.)
4. Wait for the booting up of the router. Type no (as shown in the above screen).
Router>
3
Exercise 2: Some Basic Commands
1. Type enable to get into privileged mode. The pound sign (#) indicates you are now in
privileged mode. Type disable to return to user mode or exit from privileged mode.
Type en again to get into privileged mode again.
Router>enable
Router#disable
Router>en
Router#
2. Type ? to list all commands available in the current command mode (or prompt). If the
list is too long, hit space bar to continue.
Router#?
3. Type c? to list all the possible commands that start with the letter c.
Router#c?
4. Type cl? to list all the possible commands that start with the letters cl.
Router#cl?
clear clock
5. Type clock. After you hit enter the % Incomplete command tells you that more
parameters need to be entered.
Router#clock
% Incomplete command.
6. Type clock ?. This will show all subcommands for this command (in this case, Set,
which sets the time and date).
Router#clock ?
set Set the time and date
7. Type show clock to check the time and date.
Router#show clock
8. Type clock set 12:14:01 25 Dec 2010 to check the time and date.
Router#clock set 12:14:01 25 Dec 2010
9. Type show clock again to check for the new time and date.
Router#show clock
10. Type show version to display the information about the current Cisco IOS software.
Router#show version
11. Type show flash to display the information about the flash memory.
Router#show flash
12. Type show history to list all commands in the history buffer.
Router#show history
13. Type show ip interface brief to display a summary of all interfaces.
Router1#show ip interface brief
14. Type show interfaces to display detailed information on each interface. (Hit space bar
to continue when you see more--)
Router1#show interfaces
15. Type configure terminal or conf t to move to global configuration mode. This prompt
indicates that you can start making changes and configuration in the router.
Router#conf t
Router(config)#
16. Type hostname ueen2013 to change the prompt name.
Router(config)#hostname ueen2013
ueen2013(config)#
4
Exercise 3: Password Setup
1. Configure a password of nice for console mode. (Note: Whenever a user tries to enter
into the console command line, a password is required.)
ueen2013(config)#line console 0
ueen2013(config-line)#password nice
ueen2013(config-line)#login
4. Try the passwords: When you hit enter (into console command line) and being asked for
a password, type nice. When you type enable and being asked for a password, type
good.
User Access Verification
Password:
ueen2013>enable
Password:
ueen2013#
6. Test the banner and console password by logging out of the router and logging back in.
Get into enable mode after successfully logging into the console.
ueen2013#logout
<Enter>
(Try to notice this part)
5
Exercise 4: Setting up LANs
1. Add extra switch, PCs and server in order to form the above network. Configure the IP
address of the fa0/0 and fa0/1 port according to the following commands. MAKE SURE
that fa0/0 of Router0 is connected to switch0 fa0/1, and fa0/1 is connected to the server.
Use Connection Copper straight-through to perform the connection between
Router0 and Switch0. Use Connection Copper cross-over to perform the connection
between Router0 and Server0. <tab> in the command stands for tab key.
ueen2013#conf<tab>
ueen2013#configure t<tab>
ueen2013#configure terminal
ueen2013(config)#int fa0/0
ueen2013(config-if)#ip address 192.168.15.254 255.255.255.0
ueen2013(config-if)#no shutdown
ueen2013(config-if)#exit
ueen2013(config)#int fa0/1
ueen2013(config-if)#ip address 192.168.10.254 255.255.255.0
ueen2013(config-if)#no shutdown
2. You may exit configuration mode by keying ctrl-z. This will bring you back to the
privileged mode prompt. You could also accomplish the same thing by keying exit
twice. The exit command moves you back one level. Or keying end to achieve what
can be done with <ctrl-z> (Press crtl key and z key, dont type it).
ueen2013(config-if)#<ctrl-z>
ueen2013#
OR
ueen2013(config-if)#exit
ueen2013(config)#exit
ueen2013#
OR
ueen2013(config-if)#end
ueen2013#
6
3. Display the active configuration in DRAM by typing:
ueen2013#show running-config
4. Display the saved configuration in NVRAM. Is there anything after you have typed
the command?
ueen2013#show startup-config
6. Now display the contents of NVRAM again. This time, you should see the active
configuration saved in NVRAM.
7. Issue the command to show which Layer 3 protocols are currently running on the router.
ueen2013#show protocols
1. Use the following commands to set up the DHCP for the LAN, in Router0. It is Router0
that will act as a DHCP server. (Note: Besides a DHCP server, Cisco router can also
provide DHCP service.)
ueen2013#conf t
ueen2013(config)#ip dhcp pool internal
ueen2013(dhcp-config)#network 192.168.15.0 255.255.255.0
ueen2013(dhcp-config)#default-router 192.168.15.254
ueen2013(dhcp-config)#dns-server 192.168.10.1
ueen2013(dhcp-config)#end
2. Type ipconfig /renew to obtain the dynamic IP addresses from Router0 for PC1, PC2
and PC3.
7
1. Configure a password of baik on Router0 that will enable remote users (the PCs) to
Telnet into it:
ueen2013#conf t
ueen2013(config)#line vty 0 4
ueen2013(config-line)#password baik
ueen2013(config-line)#login
ueen2013(config-line)#end
2. Go to PC1, open the command prompt and type telnet 192.168.15.254. There are 3
passwords now: the console password, the enable password, and the telnet password.
3. Instead of using the terminal CLI, we can now continue to use the telnet CLI to
perform the configuration of the router.
ueen2013(config)#ip host dns_server 192.168.10.1
ueen2013(config)#end
4. Verify that the name dns_server is in Router0s host table with the show hosts
command.
ueen2013#show hosts
6. Go to PC2 and telnet to Router0. Do the same to PC3, telnet to Router0 too.
2. Go to Server0, config tab, and click on TFTP. You should find the file ueen2013-
confg there.
3. You may restore the configuration you saved on the TFTP server to NVRAM on Router0.
ueen2013#copy tftp run
Address or name of remote host []? 192.168.10.1
Source filename []? ueen2013-confg
Destination filename [running-config]? {Press Enter}