ICS 432 Lab 6
ICS 432 Lab 6
الوولكتالعربيتالسعوديت
Ministry of Education وزارةالتعلين
University of Hail جاهعتحائل
College of Computer Science and Engineering كليتعلن وهندستالحاسب اآللي
Department of Computer Science and قسن علوم الحاسب وهندستالبرهجياث
Software Engineering
Lab 6
Routers (Part 1)
Objectives:
This lab will introduce the Cisco Internetwork Operating System (IOS) command line user interface.
You will login to the router and use different levels of access to enter commands in "User Mode" and
"Privileged Mode". You will become familiar with the commands available in each mode (User or
Privileged). The IOS command interface is the most common method of configuring a Cisco router.
You will see many commands available, especially in privileged mode. Do not be overwhelmed. As
with many things, the 80/20 rule applies. You can do 80% of what you need to do on a daily basis
with 20% of the commands available.
Tools / Preparation:
You will need to become familiar with these commands:
1. Enable
2. Config terminal
3. Interface
4. Ip address
5. No shutdown
6. Pressing the keys Cntrl‐Z on the keyboard.
7. Copy running start‐up
Step 1: Open Packet tracer and design a network as shown in figure below. Use the same type of
devices as shown in the figure, for router choose Cisco 2811, for switches choose 2960. In this step
only assign IP addresses to the PCs and also assign gateway addresses on the PCs. In the following
steps you will assign IP addresses to the Router interfaces. Assign IP addresses as follows:
Device IP address Gateway Address
PC1 192.168.3.2 192.168.3.1
PC2 192.168.3.3 192.168.3.1
PC3 192.168.4.2 192.168.4.1
PC4 192.168.4.3 192.168.4.1
Router fastethernet0/0 192.168.3.1
Router fastethernet0/1 192.168.4.1
Note: It is extremely important you assign the gateway addresses on the PCs under config menu ‐>
global ‐> settings.
Step 2: Click on PC1 and from the Command Prompt use the ping command and ping the PCs on the
same switch. For example, ping 192.168.3.2 and ping 192.168.3.3. See figure below.
Step 3: From PC1 ping 192.168.4.2. What do you get? Request timed out, because router is not
configured yet.
Step 4: Click on PC3 and from Command prompt use Ping command. Ping 192.168.4.3 what do you
observe? There will be a reply, because PC3 and PC4 are on the same network.
Step 5: In order for pinging to work from one network to another network we need to configure the
router to perform routing. First of all click on router and let us see the physical device. Below is a
figure of router’s physical look, note if you click on the button 0/1 (green light), you will either turn
on (green light) or turn off (green light off) the router. Turning on the router will boot the router. So
make sure the router is turned on to do the configuration.
Step 6: Next click on CLI from Router0. You should see as in figure below.
To configure the fastethernet0/0 port on router0, type the following:
enable
config t
interface fastethernet0/0
iP address 192.168.3.1 255.255.255.0
no shutdown
(Press CNTRL-Z)
Note: at the start you see in the interface: router > this means the router is in user mode, when you
type “enable” at the prompt you will see router# note the # indicates router is in privilege mode. In
this mode you can do the configuring. The interface command is used to specify which interface to
configure, the ip address command is used to specify an address and subnet mask to assign the
interface chosen in
2. No shutdown is used to bring the interface up into operation. Last cntrl‐z is pressed to exit from
the mode and go back.
Similarly do the configuration for the 2nd port fastethernet0/1 on the router0. Type in the following
commands.
config t
interface fastethernet0/1
ip address 192.168.4.1 255.255.255.0
no shutdown
(press cntrl-z)
You must type the following command to save whatever configuration you have done on the router
otherwise you will lose the current configuration.
Router > copy running start see one of the figures below.
From the router interface you should be able to ping the router interfaces and the PCs on either
switches.
Do as shown in the figure below.
From any PC click on Command Prompt and do as below, ping 192.168.3.1 , ping 192.168.3.2, ping
192.168.3.3, ping 192.168.4.1, ping 192.168.4.2, ping 192.168.4.3, ping 192.168.4.9 . What do you
observe ?
There will be reply from each indicating there is connection except 192.168.4.9 which does not exist
on the network.
Questions:
1. Given 192.168.3.1 and subnet mask 255.255.255.0 what is the network address ?
2. Given 192.168.4.57 and subnet mask 255.255.255.0 what is the network address?
3. Why do we use switches?
4. Why do we use routers?
5. What is a gateway address?
6. What happens if you forget to assign a gateway address on a PC?
7. When you type (?) at the router prompt, what do you see?
8. When you type show interfaces, observe what you see.
9. When you type show ip route, observe what you see.
10. When you type show protocols, observe what you see.