Data Communication and Networks
Data Communication and Networks
Data Communication and Networks
1 LAB NO. 01 1
1.1 MAKING STRAIGHT THROUGH CROSS OVER CABLE . . . . . . . . . . . . 1
2 LAB NO. 02 4
2.1 Installing and Configuring Network Card . . . . . . . . . . . . . . . . . . . . . . 4
3 LAB NO. 03 7
3.1 PC Network TCP/IP Configuration . . . . . . . . . . . . . . . . . . . . . . . . . 7
4 LAB NO. 04 13
4.1 Working on Star Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
5 LAB NO. 05 16
5.1 Introduction to Cisco IOS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
6 LAB NO. 06 20
6.1 To write the subnet, Broadcast address and valid host ranges for different IPs 20
7 LAB NO. 07 24
7.1 Basic Configuration of ROUTER 2621 . . . . . . . . . . . . . . . . . . . . . . . . 24
8 LAB NO. 08 29
8.1 Static Routing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
9 LAB NO. 09 34
9.1 Dynamic Routing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
10 LAB NO. 10 39
10.1 Distance Vector Routing Protocols RIP and IGRP . . . . . . . . . . . . . . . . . 39
11 LAB NO. 11 42
11.1 Introduction to Switch 2950 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
12 LAB NO. 12 45
12.1 Switch Basic Administrative Configurations . . . . . . . . . . . . . . . . . . . . 45
13 LAB NO. 13 49
13.1 Study of TPLINK Wireless Router . . . . . . . . . . . . . . . . . . . . . . . . . . 49
14 LAB NO. 14 55
14.1 Study of MAC Filtering Wireless Router . . . . . . . . . . . . . . . . . . . . . . . 55
ii
Chapter 1
LAB NO. 01
in pin assignments, not in uses of the various colors. The illustration above shows both stan-
dards. With the T-568B specification the orange and green pairs are located on pins 1, 2 and
3, 6 respectively. The T-568A specification reverses the orange and green connections, so that
the blue and orange pairs are on the center 4 pins, which makes it more compatible with
the telco voice connections. T-568A is supposed to be the standard for new installations, and
1
2 LAB NO. 01
T-568B is the alternative. However, most off-the-shelf data equipment and cables seem to be
wired to T568B.
Pin Number Designations
Here are the pin number designations for both standards: Note: Odd pin numbers are al-
Conclusion:
Summarize, in a paragraph or two, what you conclude from the results of your experiment
and whether they are what you expected them to be. Compare the results with theoretical
expectations and include percent error when appropriate. Don’t use terms such as "fairly
close" and "pretty good;" give explicit quantitative deviations from the expected result. Eval-
uate whether these deviations fall within your expected errors and state possible explanations
for unusual deviations. Discuss and comment on the results and conclusions drawn, includ-
ing the sources of the errors and the methods used for estimating them.
Chapter 2
LAB NO. 02
OBJECTIVE
Installing and configuring Network Card PREREQUISITES:
An NIC card
sA PC
DESCRIPTION:
Network card
A network card (also called network adapter, network interface card, NIC, etc.) is a piece of
computer hardware designed to allow computers to communicate over a computer network.
It is an OSI model layer 2 item because it has a MAC address.
A transitional network card with both BNC "Thinnet" (left) and Twisted pair (right) connec-
tors.
A transitional network card with both BNC "Thinnet" (left) and Twisted pair (right) con-
nectors.
Every network card in the world has a unique 48-bit serial number called a MAC address.
The IEEE allocates these numbers to network card manufacturers who encode them into the
firmware of their cards.
4
§2.1 Installing and Configuring Network Card 5
Whereas network cards used to be expansion cards to plug into a computer bus, most new
computers have a network interface built into the motherboard, so a separate network card
is not required unless multiple interfaces are needed or some other type of network is used.
The card implements the electronic circuitry required to communicate using a specific phys-
ical layer and data link layer standard such as ethernet or token ring. This provides a base
for a full network protocol stack, allowing communication among small groups of computers
on the same LAN and large-scale network communications through routable protocols, such
as IP. There are four techniques used for transfer of data; The NIC may use one or more of
these techniques. Polling is where the microprocessor examines the status of the peripheral
under program control Programmed I/O is where the microprocessor alerts the designated
peripheral by applying its address to the system’s address bus Interrupt-driven I/O is where
the peripheral alerts the microprocessor that its ready to transfer data DMA is where the in-
telligent peripheral assumes control of the system bus to access memory directly A network
card typically has a twisted pair, BNC, or AUI socket where the network cable is connected,
and a few LEDs to inform the user of whether the network is active, and whether or not there
is data being transmitted on it. The Network Cards are typically available in 10/100/1000
Mbit/s. This means they can support a transfer rate of 10 or 100 or 1000 Mbit/s. Notable
manufacturers:-
3Com Corporation
Broadcom
Intel
Novell
Realtek
Marvell
AMD
Digital Equipment Corporation
ASIX Electronics
National Semiconductor
VIA Networking
Silicon Integrated Systems
6 LAB NO. 02
Conclusion:
Summarize, in a paragraph or two, what you conclude from the results of your experiment
and whether they are what you expected them to be. Compare the results with theoretical
expectations and include percent error when appropriate. Don’t use terms such as "fairly
close" and "pretty good;" give explicit quantitative deviations from the expected result. Eval-
uate whether these deviations fall within your expected errors and state possible explanations
for unusual deviations. Discuss and comment on the results and conclusions drawn, includ-
ing the sources of the errors and the methods used for estimating them.
Chapter 3
LAB NO. 03
7
8 LAB NO. 03
f) 190.7.2.0
g) 127.1.1.1
h) 198.121.254.255
i) 255.255.255.255
Network Configuration
Step 1. Connect to the Internet.
Establish and verify connectivity to the Internet. This step ensures the computer has an IP
address.
Step 2. Gather TCP/IP configuration information.
a. Use the Start menu to open the command prompt
(Start>Programs>Accessories>Command Prompt or Start>Programs>Command Prompt).
b. Type ipconfig and press Enter key. The spelling of the ipconfig is critical, but the case is not.
c. The screen shows the IP address, subnet mask and the default gateway. The IP ad-
dress and the default gateway should be in the same network or subnet; otherwise this host
wouldn’t be able to communicate outside the network.
Step 3. Record the following TCP/IP information for this computer.
a. IP address:....................................................................
b. Subnet mask:..................................................................
c. Default gateway:.............................................................
Step 4. Compare this computer’s TCP/IP configuration to that of others on the LAN. If this
computer is on a LAN, compare the information of several machines (Hosts).
a. Are there any similarities? ..................................................................................
b. What is similar about the IP addresses? ..................................................................
c. What is similar about the default gateway? ..............................................................
d. Record a couple of the IP addresses (of your nearby hosts)
1...................................................................
2...................................................................
3...................................................................
Step 5. Check additional TCP/IP configuration information.
a. To see more information, type ipconfig/all and press Enter key. The figure shows the
detailed IP configuration of this computer on the screen.
b. You should see the following information: the host name (computer name), the Physical
address of this machine, IP address, subnet Mask, Default Gateway and DNS Servers.
c. In the LAN, compare your result with a few nearby computers. What similarities do you
see inthe physical (MAC) address?
...........................................................................
d. Write down the computer’s host name:..........................
10 LAB NO. 03
.........................................................................................
c. Ping the IP address of Default gateway and DNS servers. Was the result successful?
.......................................................................................................
d. Ping the computer loopback IP address. Type the following command: ping 127.0.0.1
e. The address 127.0.0.1 is reserved for loopback testing. If the ping is successful, then
TCP/IP is properly installed and functioning on this computer.
f. Was the ping successful for e................................................................
g. Ping the hostname of the computer that you recorded in lab 1.1.
§3.1 PC Network TCP/IP Configuration 11
Conclusion:
Summarize, in a paragraph or two, what you conclude from the results of your experiment
and whether they are what you expected them to be. Compare the results with theoretical
expectations and include percent error when appropriate. Don’t use terms such as "fairly
close" and "pretty good;" give explicit quantitative deviations from the expected result. Eval-
uate whether these deviations fall within your expected errors and state possible explanations
for unusual deviations. Discuss and comment on the results and conclusions drawn, includ-
ing the sources of the errors and the methods used for estimating them.
Chapter 4
LAB NO. 04
13
14 LAB NO. 04
Conclusion:
Summarize, in a paragraph or two, what you conclude from the results of your experiment
and whether they are what you expected them to be. Compare the results with theoretical
expectations and include percent error when appropriate. Don’t use terms such as "fairly
close" and "pretty good;" give explicit quantitative deviations from the expected result. Eval-
uate whether these deviations fall within your expected errors and state possible explanations
for unusual deviations. Discuss and comment on the results and conclusions drawn, includ-
ing the sources of the errors and the methods used for estimating them.
Chapter 5
LAB NO. 05
16
§5.1 Introduction to Cisco IOS 17
PROCEDURE:
When you first bring up a Cisco router, it will run a power-on self-test (POST). If it passes,
it will then look for and load the Cisco IOS from flash memory if an IOS file is present. (Just
in case you dont know, flash memory is an electronically erasable programmable read-only
memory an EEPROM.) After that, the IOS loads and looks for a valid configuration the
startup-config that is stored by default in nonvolatile RAM, or NVRAM. If there is not a
configuration in NVRAM, the router will go into setup mode a step-by-step process to help
you configure the router. You can also enter setup mode at any time from the command
line by typing the command setup from something called privileged mode, which I will
get to in a minute. Setup mode only covers some global commands. Setup Mode You
have two options when using setup mode: Basic Management and Extended Setup. Basic
Management only gives you enough configurations to allow connectivity to the router, but
Extended Setup gives you the power to configure some global parameters as well as interface
configuration parameters. To enter setup mode, just say yes or y to the following question:
— System Configuration Dialog — Would you like to enter the initial configuration dialog?
[yes/no]:y At any point you may enter a question mark ? for help. Use ctrl-c to abort
configuration dialog at any prompt. Default settings are in square brackets [ ]. Notice the
two lines above that say you can use Ctrl+ C to abort configuration dialog any prompt, and
that the default settings are in square brackets:[ ]. Basic Management setup configures only
enough connectivity for management of the system. But since you can do so much more
with Extended Setup, this mode will ask you to configure each interface on the system.
Command-Line Interface Because it is so much more flexible, the command-line interface
(CLI) truly is the best way to configure a router. I sometimes refer to the CLI as Cash Line
Interface because if you can create advanced configurations on Cisco routers and switches
using the CLI, then you will get the cash! To use the CLI, just say No to entering the initial
configuration dialog. After you do that, the router will respond with messages that tell you
all about the status of each and every one of the routers interfaces. Here is an example:
Would you like to enter the initial configuration dialog? [yes]:n Would you like to terminate
auto install? [yes]:[Enter]
prompt to log out: Router>en Router#logout Router con0 is now available Press RETURN to
get started. Overview of Router Modes
To configure from a CLI, you can make global changes to the router by typing con-
figure terminal (or config t for short), which puts you in global configuration mode and
changes what is known as the running-config. A global command (a command run from
global config) is set only once and affects the entire router. You can type config from the
privileged-mode prompt and then just press Enter to take the default of terminal, as seen
here: Router#config Configuring from terminal, memory, or network [terminal]? [Enter]
Enter configuration commands, one per line. End with CNTL/Z. Router(config)# At this
point, you make changes that affect the router as a whole (globally), hence the term global
configuration mode.
§5.1 Introduction to Cisco IOS 19
Conclusion:
Summarize, in a paragraph or two, what you conclude from the results of your experiment
and whether they are what you expected them to be. Compare the results with theoretical
expectations and include percent error when appropriate. Don’t use terms such as "fairly
close" and "pretty good;" give explicit quantitative deviations from the expected result. Eval-
uate whether these deviations fall within your expected errors and state possible explanations
for unusual deviations. Discuss and comment on the results and conclusions drawn, includ-
ing the sources of the errors and the methods used for estimating them.
Chapter 6
LAB NO. 06
192.168.10.0/28
Net addr 192.168.10.0
Netmask 255.255.255.240
First host 192.168.10.0
Last host 192.168.10.14
Broadcast 192.168.10.15
172.16.0.0/23
Net addr 172.16.0.0
Netmask 255.255.254.0
First host 172.16.0.0
Last host 172.16.0.254
Broadcast 172.16.0.255
172.16.10.5/25
HostAddr 172.16.10.5
NetMask 255.255.255.128
NetAddr 172.16.10.0/25
First Host 172.16.10.1
Last Host 172.16.10.126
Broadcast 172.16.10.127
N0. Of Hosts 126
172.16.10.33/27
HostAddr 172.16.10.33
NetMask 255.255.255.224
NetAddr 172.16.10.32/27
20
§6.1 To write the subnet, Broadcast address and valid host ranges for different IPs 21
172.16.10.65/26
HostAddr 172.16.10.65
NetMask 255.255.255.192
NetAddr 172.16.10.64/26
First Host 172.16.10.65
Last Host 172.16.10.126
Broadcast 172.16.10.127
N Hosts 62
172.16.10.17/30
HostAddr 172.16.10.17
NetMask 255.255.255.252
NetAddr 172.16.10.16/30
First Host 172.16.10.17
Last Host 172.16.10.18
Broadcast 172.16.10.19
N Hosts 2
192.168.100.25/30
HostAddr 192.168.100.25
NetMask 255.255.255.252
NetAddr 192.168.100.24/30
First Host 192.168.100.25
Last Host 192.168.100.26
Broadcast 192.168.100.27
No. Of Hosts 2
192.168.100.37/29
HostAddr 192.168.100.37
NetMask 255.255.255.248
NetAddr 192.168.100.32/29
First Host 192.168.100.33
Last Host 192.168.100.38
Broadcast 192.168.100.39
No. Of Hosts 6
192.168.100.66/27
HostAddr 192.168.100.66
NetMask 255.255.255.224
NetAddr 192.168.100.64/27
First Host 192.168.100.65
Last Host 192.168.100.94
Broadcast 192.168.100.95
N Hosts 30
192.168.100.17/29
22 LAB NO. 06
HostAddr 192.168.100.17
NetMask 255.255.255.248
NetAddr 192.168.100.16/29
First Host 192.168.100.17
Last Host 192.168.100.22
Broadcast 192.168.100.23
No. Of Hosts 6
10.10.10.5/20
HostAddr 10.10.10.5
NetMask 255.255.240.0
NetAddr 10.10.0.0/20
First Host 10.10.0.1
Last Host 10.10.15.254
Broadcast 10.10.15.255
No. Of Hosts 4094
§6.1 To write the subnet, Broadcast address and valid host ranges for different IPs 23
Conclusion:
Summarize, in a paragraph or two, what you conclude from the results of your experiment
and whether they are what you expected them to be. Compare the results with theoretical
expectations and include percent error when appropriate. Don’t use terms such as "fairly
close" and "pretty good;" give explicit quantitative deviations from the expected result. Eval-
uate whether these deviations fall within your expected errors and state possible explanations
for unusual deviations. Discuss and comment on the results and conclusions drawn, includ-
ing the sources of the errors and the methods used for estimating them.
Chapter 7
LAB NO. 07
OBJECTIVES:
1. To understand the Basic configuration of Router.
2. Lab 6.1: Logging into a RouteR
3. Lab 6.2: Using the Help and Editing Features
4. Lab 6.3: Saving a Router Configuration
5. Lab 6.4: Setting the Hostname, Descriptions, IP Address, and Clock Rate
PREREQUISITES:
Packet Tracer software
PROCEDURE:
Hands-on Lab 6.1: Logging into a Router:
1. Press Enter to connect to your router. This will put you into user mode.
2. At the Router> prompt, type a question mark (?).
3. Notice the more at the bottom of the screen.
4. Press the Enter key to view the commands line by line.
5. Press the spacebar to view the commands a full screen at a time.
6. You can type q at any time to quit.
7. Type enable or en and press Enter. This will put you into privileged mode where you can
change and view the router configuration.
8. At the Router# prompt, type a question mark (?). Notice how many options are available
to you in privileged mode.
9. Type q to quit.
10. Type config and press Enter.
11. Press Enter to configure your router using your terminal
. 12. At the Router(config)# prompt, type a question mark (?), then q to quit, or hit the
spacebar to view the commands.
13. Type interface e0 or int e0 (or even int fa0/0) and press Enter. This will allow you to
configure interface Ethernet 0.
14. At the Router(config-if)# prompt, type a question mark (?).
15. Type int s0 (int s0/0) or interface s0 (same as the interface serial 0 command)
and press Enter. This will allow you to configure interface serial 0. Notice that you can go
from interface to interface easily.
16. Type encapsulation ?.
24
§7.1 Basic Configuration of ROUTER 2621 25
17. Type exit. Notice how this brings you back one level.
18. Press Ctrl+Z. Notice how this brings you out of configuration mode and places you back
into privileged mode.
19. Type disable. This will put you into user mode.
20. Type exit, which will log you out of the router.
7. Type sh start, press Tab, then press Enter. You should get an error message.
8. Type reload, then press Enter. Acknowledge the reload by pressing Enter. Wait for the
router to reload.
9. Say No to entering setup mode, or just press Ctrl+C.
Hands-on Lab 9.4: Setting the Hostname, Descriptions, IPAddress, and Clock Rate
1. Log into the router and go into privileged mode by typing en or enable.
2. Set your hostname on your router by using the hostname command. Notice that it is one
word.
...................................... Here is an example of setting your hostname:
Router#config t
Router(config)#hostname RouterA
RouterA(config)#
Notice that the hostname of the router changed as soon as you pressed Enter.
3. Set a banner that the network administrators will see by using the banner command.
4. Type config t, then banner ?.
5. Notice that you can set four different banners. For this lab we are only interested in the
login and message of the day (MOTD) banners.
6. Set your MOTD banner, which will be displayed when a console, auxiliary, or Telnet con-
nection is made to the router, by typing config t
banner motd #
This is an motd banner
# 7. The preceding example used a # sign as a delimiting character. This tells the router when
the message is done. You cannot use the delimiting character in the message itself.
8. You can remove the MOTD banner by typing
config t
no banner motd
9. Set the login banner by typing
config t
banner login #
This is a login banner
# 10. The login banner will display immediately after the MOTD but before the user-mode
password prompt. Remember that you set your user-mode passwords by setting the console,
auxiliary, and VTY line passwords.
11. You can remove the login banner by typing
config t
no banner login
12. You can add an IP address to an interface with the ip address command. You need to get
into interface configuration mode first; here is an example of how you do that:
config t
int e0 (you can use int Ethernet 0 too)
ip address 1.1.1.1 255.255.0.0
no shutdown
Notice that the IP address (1.1.1.1) and subnet mask (255.255.0.0) are configured on one line.
The no shutdown (or no shut for short) command is used to enable the interface. All inter-
faces are shut down by default.
13. You can add identification to an interface by using the description command. This is
useful for adding information about the connection. Only administrators see this, not users.
Here is an example:
config t
§7.1 Basic Configuration of ROUTER 2621 27
int s0
ip address 1.1.1.2 255.255.0.0
no shut
description Wan link to Miami
14. You can add the bandwidth of a serial link as well as the clock rate when simulating a
DCE WAN link. Here is an example:
config t
int s0
bandwidth 64
clock rate 64000
28 LAB NO. 07
Conclusion:
Summarize, in a paragraph or two, what you conclude from the results of your experiment
and whether they are what you expected them to be. Compare the results with theoretical
expectations and include percent error when appropriate. Don’t use terms such as "fairly
close" and "pretty good;" give explicit quantitative deviations from the expected result. Eval-
uate whether these deviations fall within your expected errors and state possible explanations
for unusual deviations. Discuss and comment on the results and conclusions drawn, includ-
ing the sources of the errors and the methods used for estimating them.
Chapter 8
LAB NO. 08
DESCRIPTION:
Lab_A Configuration
To configure the Lab_A router, you just need to add an IP address to interface FastEthernet
0/0 as well as the serial 0/0. Configuring the hostnames of each router will make identifica-
tion easier. And why not set the interface descriptions, banner, and router passwords, too?
You really should get in the habit of configuring these commands on every router.
Here is how I did all that:
Router>en
Router#config t
29
30 LAB NO. 08
Router(config)#hostname Lab_A
Lab_A(config)#enable secret todd
Lab_A(config)#interface fa0/0
Lab_A(config-if)#ip address 192.168.10.1 255.255.255.0
Lab_A(config-if)#description Lab_A LAN Connection
Lab_A(config-if)#no shut
Lab_A(config-if)#interface serial 0/0
Lab_A(config-if)#ip address 192.168.20.1 255.255.255.0
Lab_A(config-if)#description WAN Connection to Lab_B
Lab_A(config-if)#no shut
Lab_A(config-if)#exit
Lab_A(config)#line console 0
Lab_A(config-line)#password ucet
Lab_A(config-line)#login
Lab_A(config-line)#line aux 0
Lab_A(config-line)#password ucet
Lab_A(config-line)#login
Lab_A(config-line)#line vty 0 4
Lab_A(config-line)#password ucet
Lab_A(config-line)#login
Lab_A(config-line)#exit
Lab_A(config)#banner motd #
This is the Lab_A router
#
Lab_A(config)#ip route 192.168.30.0 255.255.255.0
192.168.20.2
Lab_A(config)#ip route 192.168.40.0 255.255.255.0
192.168.20.2
Lab_A(config)#ip route 192.168.50.0 255.255.255.0
192.168.20.2
Lab_A(config)#ẑ
Lab_A#copy running-config startup-config
Destination filename [startup-config]? [Enter]
Lab_A#
Lab_B Configuration
It’s now time to configure the next router. To configure Lab_B, we have three interfaces to
deal with: Fast Ethernet 0/0, serial 0/0, and serial 0/1. Both serial interfaces are DCE. What
that means to us is that we’ll have to add the clock rate command to each interface.
Router>en
Router#config t
Router(config)#hostname Lab_B
Lab_B(config)#enable secret todd
Lab_B(config)#interface fa0/0
Lab_B(config-if)#ip address 192.168.30.1 255.255.255.0
Lab_B(config-if)#description Lab_B LAN Connection
Lab_B(config-if)#no shut
Lab_B(config-if)#interface serial 0/0
Lab_B(config-if)#ip address 192.168.20.2 255.255.255.0
Lab_B(config-if)#description WAN Connection to Lab_A
§8.1 Static Routing 31
Lab_B(config-if)#no shut
Lab_B(config-if)#exit
Lab_B(config)#line console 0
Lab_B(config-line)#password ucet
Lab_B(config-line)#login
Lab_B(config-line)#line aux 0
Lab_B(config-line)#password ucet
Lab_B(config-line)#login
Lab_B(config-line)#line vty 0 4
Lab_B(config-line)#password ucet
Lab_B(config-line)#login
Lab_B(config-line)#exit
Lab_B(config)#banner motd #
This is the Lab_B router
#
Lab_B(config)#ip route 192.168.10.0 255.255.255.0
192.168.20.1
Lab_B(config)#ip route 192.168.50.0 255.255.255.0
192.168.40.2
Lab_B(config)#ẑ
Lab_B#copy running-config startup-config
Destination filename [startup-config]? [Enter]
Lab_B#
Lab_C Configuration
The configuration of Lab_C is similar to the other two routers (make sure we remember to
add
passwords, interface descriptions, and a banner to the router configuration):
Router>en
Router#config t
Router(config)#hostname Lab_C
Lab_C(config)#enable secret todd
Lab_C(config)#interface fa0/0
Lab_C(config-if)#ip address 192.168.50.1 255.255.255.0
Lab_C(config-if)#description Lab_C LAN Connection
Lab_C(config-if)#no shut
Lab_C(config-if)#interface serial 0/0
Lab_C(config-if)#ip address 192.168.40.2 255.255.255.0
Lab_C(config-if)#description WAN Connection to Lab_B
Lab_C(config-if)#no shut
Lab_C(config-if)#exit
Lab_C(config)#line console 0
Lab_C(config-line)#password ucet
32 LAB NO. 08
Lab_C(config-line)#login
Lab_C(config-line)#line aux 0
Lab_C(config-line)#password ucet
Lab_C(config-line)#login
Lab_C(config-line)#line vty 0 4
Lab_C(config-line)#password ucet
Lab_C(config-line)#login
Lab_C(config-line)#exit
Lab_C(config)#banner motd #
This is the Lab_C router
#
Lab_C(config)#ip route 192.168.30.0 255.255.255.0
192.168.40.1
Lab_C(config)#ip route 192.168.20.0 255.255.255.0
192.16.40.1
Lab_C(config)#ip route 192.168.10.0 255.255.255.0
192.168.40.1
Lab_C(config)# ẑ
Lab_C#copy running-config startup-config
Destination filename [startup-config]? [Enter]
Lab_C#
§8.1 Static Routing 33
Conclusion:
Summarize, in a paragraph or two, what you conclude from the results of your experiment
and whether they are what you expected them to be. Compare the results with theoretical
expectations and include percent error when appropriate. Don’t use terms such as "fairly
close" and "pretty good;" give explicit quantitative deviations from the expected result. Eval-
uate whether these deviations fall within your expected errors and state possible explanations
for unusual deviations. Discuss and comment on the results and conclusions drawn, includ-
ing the sources of the errors and the methods used for estimating them.
Chapter 9
LAB NO. 09
OBJECTIVES:
To accomplish Dynamic routing using Packet Tracer.
PREREQUISITES:
Packet Tracer software
DESCRIPTION:
PROCEDURE:
Lab_A Configuration To configure the Lab_A router, you just need to add an IP address to
interface FastEthernet 0/0 as well as the serial 0/0. Configuring the hostnames of each router
will make identification easier. And why not set the interface descriptions, banner, and router
passwords, too? You really should get in the habit of configuring these commands on every
router.
Router>en
Router#config t
34
§9.1 Dynamic Routing 35
Router(config)#hostname Lab_A
Lab_A(config)#enable password ucet
Lab_A(config)#interface fa0/0
Lab_A(config-if)#ip address 192.168.10.1 255.255.255.0
Lab_A(config-if)#description Lab_A LAN Connection
Lab_A(config-if)#no shut
Lab_A(config-if)#interface serial 0/0
Lab_A(config-if)#ip address 192.168.20.1 255.255.255.0
Lab_A(config-if)#description WAN Connection to Lab_B
Lab_B(config-if)#encapsulation ppp
Lab_A(config-if)#no shut
Lab_A(config-if)#exit
Lab_A(config)#line console 0
Lab_A(config-line)#password ucet
Lab_A(config-line)#login
Lab_A(config-line)#line aux 0
Lab_A(config-line)#password ucet
Lab_A(config-line)#login
Lab_A(config-line)#line vty 0 4
Lab_A(config-line)#password ucet
Lab_A(config-line)#login
Lab_A(config-line)#exit
Lab_A(config)#banner motd #
This is the Lab_A router
#
Lab_A(config)#router rip
Lab_A(config-router)#network 192.168.10.0
Lab_A(config-router)#network 192.168.20.0
Lab_A(config-router)#Ẑ
Lab_A#
Lab_A#copy running-config startup-config
Destination filename [startup-config]? [Enter]
Lab_A#
Lab_B Configuration
It’s now time to configure the next router. To configure Lab_B, we have three interfaces to
deal with: Fast Ethernet 0/0, serial 0/0, and serial 0/1. Both serial interfaces are DCE. What
that means to us is that we’ll have to add the clock rate command to each interface.
Router>en
Router#config t
Router(config)#hostname Lab_B
Lab_B(config)#enable password ucet
Lab_B(config)#interface fa0/0
Lab_B(config-if)#ip address 192.168.30.1 255.255.255.0
Lab_B(config-if)#description Lab_B LAN Connection
Lab_B(config-if)#no shut
Lab_B(config-if)#interface serial 0/0
Lab_B(config-if)#ip address 192.168.20.2 255.255.255.0
Lab_B(config-if)#description WAN Connection to Lab_A
Lab_B(config-if)#clock rate 64000
Lab_B(config-if)#no shut
36 LAB NO. 09
Lab_B(config-if)#encapsulation ppp
Lab_B(config-if)#interface serial 0/1
Lab_B(config-if)#ip address 192.168.40.1 255.255.255.0
Lab_B(config-if)#description WAN Connection to Lab_C
Lab_B(config-if)#clock rate 64000
Lab_B(config-if)#encapsulation ppp
Lab_B(config-if)#no shut
Lab_B(config-if)#exit
Lab_B(config)#line console 0
Lab_B(config-line)#password ucet
Lab_B(config-line)#login
Lab_B(config-line)#line aux 0
Lab_B(config-line)#password ucet
Lab_B(config-line)#login
Lab_B(config-line)#line vty 0 4
Lab_B(config-line)#password ucet
Lab_B(config-line)#login
Lab_B(config-line)#exit
Lab_B(config)#banner motd #
This is the Lab_B router
#
Lab_B(config)#router rip
Lab_B(config-router)#network 192.168.20.0
Lab_B(config-router)#network 192.168.30.0
Lab_B(config-router)#network 192.168.40.0
Lab_B(config-router)#Ẑ
Lab_B#
Lab_B#copy running-config startup-config
Destination filename [startup-config]? [Enter]
Lab_B#
Lab_C Configuration
The configuration of Lab_C is similar to the other two routers (make sure we remember to
add passwords, interface descriptions, and a banner to the router configuration):
Router>en
Router#config t
Router(config)#hostname Lab_C
Lab_C(config)#enable password ucet
Lab_C(config)#interface fa0/0
Lab_C(config-if)#ip address 192.168.50.1 255.255.255.0
Lab_C(config-if)#description Lab_C LAN Connection
Lab_C(config-if)#no shut
Lab_C(config-if)#interface serial 0/0
Lab_C(config-if)#ip address 192.168.40.2 255.255.255.0
Lab_C(config-if)#description WAN Connection to Lab_B
Lab_B(config-if)#encapsulation ppp
Lab_C(config-if)#no shut
Lab_C(config-if)#exit
Lab_C(config)#line console 0
Lab_C(config-line)#password ucet
Lab_C(config-line)#login
§9.1 Dynamic Routing 37
Lab_C(config-line)#line aux 0
Lab_C(config-line)#password ucet
Lab_C(config-line)#login
Lab_C(config-line)#line vty 0 4
Lab_C(config-line)#password ucet
Lab_C(config-line)#login
Lab_C(config-line)#exit
Lab_C(config)#banner motd #
This is the Lab_C router
#
Lab_C(config)#router rip
Lab_C(config-router)#network 192.168.40.0
Lab_C(config-router)#network 192.168.50.0
Lab_C(config-router)#Ẑ
Lab_C#
Lab_C#copy running-config startup-config
Destination filename [startup-config]? [Enter]
Lab_C#
38 LAB NO. 09
Conclusion:
Summarize, in a paragraph or two, what you conclude from the results of your experiment
and whether they are what you expected them to be. Compare the results with theoretical
expectations and include percent error when appropriate. Don’t use terms such as "fairly
close" and "pretty good;" give explicit quantitative deviations from the expected result. Eval-
uate whether these deviations fall within your expected errors and state possible explanations
for unusual deviations. Discuss and comment on the results and conclusions drawn, includ-
ing the sources of the errors and the methods used for estimating them.
Chapter 10
LAB NO. 10
OBJECTIVES:
To accomplish Dynamic routing using Packet Tracer.
PREREQUISITES:
Packet Tracer software
DESCRIPTION:
39
40 LAB NO. 10
Lab_B(config-router)#network 192.168.20.0
Lab_B(config-router)#network 192.168.30.0
Lab_B(config-router)#network 192.168.40.0
Lab_B(config-router)#Ẑ
Lab_B#
Lab_C
Lab_C#config t
Enter configuration commands, one per line. End with CNTL/Z.
Lab_C(config)#no ip route 0.0.0.0 0.0.0.0 192.168.40.1
Lab_C(config)#router rip
Lab_C(config-router)#network 192.168.40.0
Lab_C(config-router)#network 192.168.50.0
Lab_C(config-router)#Ẑ
Lab_C#
Configuring IGRP Routing
Lab_A
The AS number, as shown in the router output below, can be any number from 1 to 65,535.
A router can be a member of as many ASes as you need it to be.
Lab_A#config t
Enter configuration commands, one per line. End with CNTL/Z.
Lab_A(config)#router igrp ?
<1-65535> Autonomous system number
Lab_A(config)#router igrp 10
Lab_A(config-router)#netw 192.168.10.0
Lab_A(config-router)#netw 192.168.20.0
Lab_A(config-router)#Ẑ
Lab_A#
Lab_B
To configure the Lab_B router, all you need to do is turn on IGRP routing using AS 10 and
then
add the network numbers, as shown next:
Lab_B#config t
Enter configuration commands, one per line. End with CNTL/Z.
Lab_B(config)#router igrp 10
Lab_B(config-router)#netw 192.168.20.0
Lab_B(config-router)#netw 192.168.30.0
Lab_B(config-router)#netw 192.168.40.0
Lab_B(config-router)#Ẑ
Lab_B#
Lab_C
To configure Lab_C, once again you need to turn on IGRP using AS 10:
Lab_C#config t
Enter configuration commands, one per line. End with CNTL/Z.
Lab_C(config)#router igrp 10
Lab_C(config-router)#netw 192.168.40.0
Lab_C(config-router)#netw 192.168.50.0
Lab_C(config-router)#Ẑ
Lab_C#
§10.1 Distance Vector Routing Protocols RIP and IGRP 41
Conclusion:
Summarize, in a paragraph or two, what you conclude from the results of your experiment
and whether they are what you expected them to be. Compare the results with theoretical
expectations and include percent error when appropriate. Don’t use terms such as "fairly
close" and "pretty good;" give explicit quantitative deviations from the expected result. Eval-
uate whether these deviations fall within your expected errors and state possible explanations
for unusual deviations. Discuss and comment on the results and conclusions drawn, includ-
ing the sources of the errors and the methods used for estimating them.
Chapter 11
LAB NO. 11
OBJECTIVES:
To be familiar with the 2950 switch
PREREQUISITES:
2950 switch
DESCRIPTION:
2950 Series Features and Functions
Cisco produces a wide variety of switch families. Inside each family are several specific mod-
els of switches. Cisco positions the 2950 series of switches as a full-featured, low-cost wiring
closet switch. That means that you would expect to use this switch as the connection point
for end-user devices, with cabling running from desks to the wiring closet. You would also
use a couple of Ethernet ports to connect to other switches to provide connectivity between
the wiring closet and the rest of the network. Figure shows one model of a 2950 switch, the
2950-24-EI switch, which provides 24 10/100 Ethernet interfaces and two Gigabit interfaces.
This particular model comes with 24 built-in 10/100 ports using RJ-45 connectors. Any of
the ports can be used to connect to end-user devices or to other switches. This switch also
includes two Gigabit Ethernet slots, on the right side of the figure, into which you can put
the appropriate Gigabit Interface Converter (GBIC).
Switch commands refer to the physical RJ-45 Ethernet connectors on a 2950 as Each interface
has a number in the style x/y, where x and y are two different numbers. On a 2950, the
number before the / is always 0. The first interface is numbered 0/1, the second is 0/2, and
so on.
Accessing the Cisco 2950 Switch CLI
The 2950 CLI works just like the router IOS CLI. Some of the commands you use are
different because switches perform different tasks than routers, but the process and the look
42
§11.1 Introduction to Switch 2950 43
router. The only other big difference between the CLI in a router and a 2950 switch is that
the commands listed when you ask for help are different. The process is the same, type a?
Whenever you need help, and commands and parameters are listed, depending on where
you are when you type?
Power-On Self Test (POST) defines the series of steps that a device goes through to test the
hardware and find out what is working before moving on to loading the operating system.
POST processing is performed by boot code that is loaded into ROM.
During POST, the switch varies the lights on the LEDs to imply what is happening.
44 LAB NO. 11
Conclusion:
Summarize, in a paragraph or two, what you conclude from the results of your experiment
and whether they are what you expected them to be. Compare the results with theoretical
expectations and include percent error when appropriate. Don’t use terms such as "fairly
close" and "pretty good;" give explicit quantitative deviations from the expected result. Eval-
uate whether these deviations fall within your expected errors and state possible explanations
for unusual deviations. Discuss and comment on the results and conclusions drawn, includ-
ing the sources of the errors and the methods used for estimating them.
Chapter 12
LAB NO. 12
DESCRIPTION:
In this lab, you’ll configure the three switches in the following graphic to work in the
internetworking environment. This lab will assume that you have at least one 2950 switch
and a 1900 Enterprise Edition switch. If you have only 2950 at this time, that is sufficient.
This lab will also assume that you have configured the internetworking lab in previous labs
that RIP or IGRP is running, and that all routers are up and communicating. We’ll configure
our switches with the following, based on the router configurations from the previous labs:
1900A: IP address 192.168.10.10/24
2950B: (connected to Lab_B router) 192.168.30.10/24
2950C: (connected to Lab_C router) 192.168.50.10/24
PROCEDURE:
1. The first switch we’ll configure is the 2950 connected to the Lab_C router:
Switch>en
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname 2950C1900
2950C(config)#enable secret ucet
2950C(config)#line con 0
45
46 LAB NO. 12
2950C(config-line)#login
2950C(config-line)#password ucet
2950C(config-line)#line vty 0 4
2950C(config-line)#login
2950C(config-line)#password ucet
2950C(config-line)#banner motd #
Enter TEXT message. End with the character #.
This is my 2950C switch
#
2950C(config)#int f0/1
2950C(config-if)#description Connection to router
2950C(config-if)#interface f0/4
2950C(config-if)#description Connection to 2950B
2950C(config-if)#int f0/5
2950C(config-if)#description 2nd connection to 2950B
2950C(config-if)#int vlan1
2950C(config-if)#ip address 192.168.50.10 255.255.255.0
2950C(config-if)#no shut
2950C(config-if)#exit
2950C(config)#ip default-gateway 192.168.50.1
2950C(config)#Ẑ
2950C#copy run start
Destination filename [startup-config]? (return)
Building configuration. oK
2950C# 2 Now lets continue on with the 2950B switch:
Switch>en
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname 2950B
2950B(config)#enable secret ucet
2950B(config)#line con 0
2950B(config-line)#login
2950B(config-line)#password ucet
2950B(config-line)#line vty 0 4
2950B(config-line)#login
2950B(config-line)#password ucet
2950B(config-line)#banner motd #
Enter TEXT message. End with the character #.
This is my 2950B switch
#
2950B(config)#
2950B(config)#int f0/4
2950B(config-if)#desc connection to 2950C
2950B(config-if)#int f0/5
2950B(config-if)#desc 2nd connection to 2950C
2950B(config-if)#int vlan 1
2950B(config-if)#ip address 192.168.30.10 255.255.255.0
2950B(config-if)#no shut
2950B(config-if)#exit
2950B(config)#ip default-gateway 192.168.30.1
§12.1 Switch Basic Administrative Configurations 47
2950B(config)#exit
2950B#copy run start
Destination filename [startup-config]? (return)
Building configuration oK
2950B#
3. Now, lets configure the 1900 switch connected to the Lab_A router:
>enable
#config t
(config)#enable password level 1 ucet
(config)#enable password level 15 ucet
(config)#enable secret ucet
(config)#hostname 1900A
1900A(config)#ip address 192.168.10.10 255.255.255.0
1900A(config)#ip default-gateway 192.168.10.1
1900A(config)#banner motd #
This is the 1900A switch
#
1900A(config)#int fa0/26
1900A(config-if)#desc Connection to Lab_A router
1900A(config-if)#ẑ
1900A#
Verifying the Switch Configurations
To verify the configurations, the show running-config command can be used on both the
1900 and 2950 Catalyst switches. However, to test that the switches are working in the
internetwork,
Ping is a great tool to use.
1. From the 1900 switch, ping the Lab_A router:
1900A#ping 192.168.10.1
2. From the 1900 switch, ping the two 2950 switches:
1900A#ping 192.168.30.10
1900A#ping 192.168.50.10
3. From the 2950B switch, ping the 1900A switch and the 2950C switch:
2950B#ping 192.168.10.10
2950B#ping 192.168.50.10
4. From the 2950C switch, ping the 1900A switch and the 2950B switch:
2950C#ping 192.168.10.10
2950C#ping 192.168.30.10
48 LAB NO. 12
Conclusion:
Summarize, in a paragraph or two, what you conclude from the results of your experiment
and whether they are what you expected them to be. Compare the results with theoretical
expectations and include percent error when appropriate. Don’t use terms such as "fairly
close" and "pretty good;" give explicit quantitative deviations from the expected result. Eval-
uate whether these deviations fall within your expected errors and state possible explanations
for unusual deviations. Discuss and comment on the results and conclusions drawn, includ-
ing the sources of the errors and the methods used for estimating them.
Chapter 13
LAB NO. 13
TP-LINK understands the need for sharing the 3G/3.75G connection locally that benefits
our end users. We realize the convenience with our latest wireless N 3G Routers, they give
you the freedom to quickly set up a stable and high speed wireless network, up to 300Mbps,
on-the-go and share a 3G/3.75G connection. By connecting a UMTS/HSPA/EVDO USB Card
to the router, a Wi-Fi hotspot is instantly established allowing users to share a Internet con-
nection anywhere 3G/3.75G coverage is available. So whether you’re on the train, camping,
or at a construction site, you’ll have a reliable wireless connection to accommodate your net-
working needs. The TL-MR3420 3G/3.75G Wireless N Router provides 3G and WAN (xDSL,
static IP, or dynamic IP) two kinds of broadband connections to get on the Internet, you can
via the Internet no matter in home or outside on business. Automatic 3G/WAN failover
feature just provide nonstop internet connection.TP-LINK 3G Router provides speeds of 11N
speed, up to 300Mbps, 15x that of traditional 11g products, surpasses 11G performance en-
abling the use of high bandwidth-consuming applications such as HD Videos.
With just pressing on the ’QSS’ button, the router automatically establishes a WPA2 secure
connection for solid security in under a minute.
QoS acts as a ’bandwidth manager’ to ensure that those programs that are sensitive to lag
are given as much bandwidth as possible to avoid lag. This feature makes an impression
immensely when users are streaming video or music and especially when playing online
games where lag often means ’Game Over’. Main Features:
One 10/100M Auto-Negotiation RJ45 WAN port, four 10/100M Auto-Negotiation RJ45 LAN
ports, supporting Auto MDI/MDIX Compatible with UMTS/HSPA/EVDO USB dongle
Automatic 3G / WAN failover
Wireless N speed up to 300Mbps 2T2R MIMO, CCA technologies deliver greater coverage
and higher speed
Wireless security encryption easily at a push of ’QSS’ button WDS wireless bridge provides
seamless bridging to expand your wireless network
Backward compatible with 802.11b and 802.11g devices
Provides WPA/WPA2, WPA-PSK/WPA2-PSK authentication, TKIP/AES encryption security
Supports 3G/Dynamic IP/Static IP/PPPoE/L2TP/PPTP Internet access
Supports Virtual Server, Special Application and DMZ host
Supports UPnP, Dynamic DNS, Static Routing
Provides Automatic-connection and Scheduled Connection on certain time to the Internet
Built-in NAT and DHCP server supporting static IP address distributing
49
50 LAB NO. 13
Connects Internet on demand and disconnects from the Internet when idle for PPPoE
Provides 64/128/152-bit WEP encryption security and wireless LAN ACL (Access Control
List)
Supports Flow Statistics
Supports firmware upgrade and Web management System Requirements Broadband Internet
Access Service (DSL/Cable/Ethernet) One DSL/Cable Modem that has an RJ45 connector
(which is not necessary if the Router is connected directly to the Ethernet.). PCs with a
working Ethernet Adapter and an Ethernet cable with RJ45 connectors TCP/IP protocol on
each PC Web browser, such as Microsoft Internet Explorer 5.0 , Netscape Navigator 6.0 or
above Installation Environment Requirements Place the Router in a well ventilated place far
from any heater or heating vent Avoid direct irradiation of any strong light (such as sunlight)
Keep at least 2 inches (5 cm) of clear space around the Router Operating Humidity: 10 to 90
percent RH, Non-condensing.
Connecting the Router
Before installing the Router, make sure your PC is connected to the Internet through the
broadband service successfully. If there is any problem, please contact your ISP. After that,
please install the Router according to the following steps. Don’t forget to pull out the power
plug and keep your hands dry. 1. Power off your PC, Cable/DSL Modem, and the Router.
2. Locate an optimum location for the Router. The best place is usually at the center of your
wireless network. The place must accord with the Installation Environment Requirements.
3. Adjust the direction of the antenna. Normally, upright is a good direction.
4. Connect the PC(s) or Switch/Hub in your LAN to the LAN Ports of the 3G Router with
Ethernet cable, shown in Figure.
5. The 3G Router supports both 3G and WAN connection, so you can insert 3G USB Modem
and Connect the DSL/Cable Modem to the WAN port of the 3G Router, shown in Fig. Please
visit our website http://www.tp-link.com to get the latest USB modems compatibility, and
we recommend you to check whether the modem in your hand has already been tested by
us.
6. Connect the power adapter to the power socket on the Router, and the other end into an
electrical outlet. The Router will start to work automatically.
7. Power on your PC and Cable/DSL Modem.
Quick Installation Guide
With a Web-based (Internet Explorer) utility, it is easy to configure and manage the 3G/3.75G
Wireless N Router. The Web-based utility can be used on any Windows, Macintosh or UNIX
OS with a Web browser.
1. To access the configuration utility, open a web-browser and type in the default address
http://192.168.1.1 in the address field of the browser. After a moment, a login window will
§13.1 Study of TPLINK Wireless Router 51
appear, similar to the Figure 3-4. Enter admin for the User Name and Password, both in
lower case letters. Then click the OK button or press the Enter key.
2. After successfully login, you can click the Quick Setup to quickly configure your Router.
3. Click Next, and then Internet Access page will appear, shown in Figure 3-6. Select a de-
sired Internet access mode and then click Next. The configuration for each mode is similar.
Here we take 3G Preferred mode for example. 3G Preferred
In this mode, the router will try 3G access first. If 3G access fails and WAN access is valid,
or if no 3G USB modem is inserted, the router would switch to WAN access. Once the
router succeeds to connect to the 3G network, the router would stop the WAN connection
and switch back to 3G access immediately.
52 LAB NO. 13
3G Only
In this mode, the router will try 3G access only. WAN access is disabled.
WAN Preferred
In this mode, the router will try WAN access first. If the WAN access fails, and 3G access
is valid, the router would switch to 3G access. Once the router succeeds to connect to the
WAN network, the router would stop the 3G connection and switch back to WAN access
immediately.
WAN Only
In this mode, the router will try WAN access only. 3G access is disabled.
4. The next screen will appear as shown in Figure 3-7. After finishing the configuration on
this page, click Next to continue,
Location - Select the location where you’re enjoying the 3G card. Mobile ISP - Select the
ISP (Internet Service Provider) you apply to for 3G service. The router will show the default
Dial Number and APN of that ISP. If your ISP is not listed in the Mobile ISP, check the box
before Set the Dial Number and APN manually and fill the Dial Number and APN blanks
below. Dial Number & APN - Fill these two parameters manually after Set the Dial Number
and APN manually is checked. Username & Password - Enter the Username and Password
provided by your ISP. These fields are optional but case-sensitive.
5. You will then see Figure 3-8. Select Auto-Detect, the Router will automatically detect the
connection type your ISP provides. Make sure the cable is securely plugged into the WAN
port before detection. The appropriate configuration page will be displayed when an active
Internet service is successfully detected by the Router.
If the connection type detected is PPPoE, the next screen will appear as shown in Figure
3-9. Enter the User Name and Password provided by your ISP. These fields are case sensitive.
§13.1 Study of TPLINK Wireless Router 53
If you have difficulty with this process, please contact your ISP.
If the connection type detected is Dynamic IP, the next screen will appear as shown in Figure.
Then you can go on with the wireless configuration. Click the Next button. You will then see
Conclusion:
Summarize, in a paragraph or two, what you conclude from the results of your experiment
and whether they are what you expected them to be. Compare the results with theoretical
expectations and include percent error when appropriate. Don’t use terms such as "fairly
close" and "pretty good;" give explicit quantitative deviations from the expected result. Eval-
uate whether these deviations fall within your expected errors and state possible explanations
for unusual deviations. Discuss and comment on the results and conclusions drawn, includ-
ing the sources of the errors and the methods used for estimating them.
Chapter 14
LAB NO. 14
55
56 LAB NO. 14
Conclusion:
Summarize, in a paragraph or two, what you conclude from the results of your experiment
and whether they are what you expected them to be. Compare the results with theoretical
expectations and include percent error when appropriate. Don’t use terms such as "fairly
close" and "pretty good;" give explicit quantitative deviations from the expected result. Eval-
uate whether these deviations fall within your expected errors and state possible explanations
for unusual deviations. Discuss and comment on the results and conclusions drawn, includ-
ing the sources of the errors and the methods used for estimating them.