#Network Manual - Eng Elham
#Network Manual - Eng Elham
Objective:
- A quick view about what we will learn in network lab.
Years ago, sharing information was not something easy to do. It needs effort, time
and money. But these days the situation is completely changed. A huge data every
millisecond travels around the world in easy and fast way.
Date communications are the transfer of data from one device to another via
some form of transmission medium.
During this course you will learn some basic concepts about network.
1.1 Cabling
It will be a good chance to recognize cable colors and types of cables.
1.2 Addressing
Well information will be get about MAC address and IP address. Also getting
familiar with network classes.
1.5 Switching
You will be able to learn how to create VLANs and make connectivity between
them something possible.
1.10 Instructions
I want you to follow some instructions during studying this lab:
1- Every work that you do in labs must be saved and always bring it with you in
lab times.
2- You will practice using this manual so, be sure to be with you all the time.
3- Ask about anything that you don’t understand before you be asked at the
final exam.
4- Any duties you asked for must be prepared before deadline.
- Cabling.
- Addressing.
- Subnetting and VLSM.
- Basic configurations.
- Switching.
- Static routing.
- Dynamic routing.
- Servers and protocols.
Objectives:
- Recognize transmission media kinds.
- Get familiar with colors standards.
- Understand cabling types and when can use them.
B
A
Transmission media
We will use twisted-pair cable to connect A and B devices. We have to mention that
there are two types of twisted-pair cable:
1- Unshielded twisted-pair (UTP).
2- Shielded twisted-pair (STP).
2.2 Colors
In UTP cable there are eight wires with different colors. The following figure
shows the two standards of colors.
If it is important to you, you will find a way. If not, you will find an excuse.
2- Two RJ-45 connectors.
3- Crimping tool.
4- Cable tester.
This is very simple information about cabling. If you need to know more you have
to read more.
After making our cables and connecting A and B devices can we say that A and B
can communicate with each other?!
The answer not yet, A and B are connected with each other but not
communicate. To share information between these two devices we need to set
up IP addresses for A and B, so what is the IP address? This is what we will know
in the next lab.
Console
port
Objectives:
- Understand the MAC address and IP address.
- Get familiar with network classes.
- Understand Distinguish between network, broadcast and host
addresses.
-
In the OSI (Open Systems Interconnection) model 7 layers. Physical address is
added in Data link layer (layer2) while logical address is added in Network layer
(layer 3) as shown in figure (3.1).
48 bits
24 bits 24 bits
You can see your MAC address on your windows machine using ipconfig/all
command.
3.3 IP Addressing
An IP address version 4 consists of 32 bits of information. These bits are divided
into four sections, referred to as octets or bytes, each containing one byte (8 bits).
What you have to know that every IP address has two portions:
1- Network portion.
2- Host portion.
3.3.1 Class A
The designers of the IP address scheme said that the first bit of the first
byte in class A network address must always be off, or 0. This means class A
address must be between 0 and 127 in the first byte.
0XXXXXXX
0 00000000 Reserved to designate the
1 00000001 default route
2 00000010
Class A . . Used for network
(0 through 127) . . addresses in class A
. .
126 01111110
127 01111111 Reserved for diagnostics
Network Broadcast
address address
(10.0.0.0) and (10.255.255.255) cannot be used for hosts. We will mention what
is the meaning of broadcast later.
Let us take an example. We have this topology, how many networks do we have?
device E
11.0.0.1
The answer
In class A we will check the first octet to know how many networks are there.
device E
11.0.0.1
Network address:
Network address: Network address: 113.0.0.0
10.0.0.0 11.0.0.0 A: 113.0.19.255
B: 10.4.1.0 E: 11.0.0.1 F: 113.0.19.244
C: 10.0.1.0
D:10.2.1.3
We have three networks (113.0.0.0/ 10.0.0.0 / 11.0.0.0). All of them from class A
because (113/ 10/ 11) are in the range (0 – 127).
Note that I cannot use for example 113.0.0.0 or 113.255.255.255 as an IP address
for device A or F (Not allowed), also A and f cannot take the same IP address
because they are in the same network.
3.3.2 Class B
In class B network, the first bit of the first byte must always be turned on, but the
second bit must always be turned off.
10XXXXXX
128 10000000
129 10000001
130 10000010
Class B . . Used for network
(128 through 191) . . addresses in class B
. .
190 10111110
191 10111111
Always must be (1 0)
Network Broadcast
address address
device A
172.20.17.1 device F
172.20.1.1
The answer
Remember that in class B you need to see the first two octets to know the networks.
device A device F
172.20.17.1 172.20.1.1
Network address:
Network address: Network address: 172.20.0.0
190.3.0.0 188.4.0.0 A: 172.20.17.1
B: 190.3.1.1 D: 188.4.3.3 F: 172.20.1.1
E: 188.4.3.0
Network address:
190.4.0.0
C: 190.4.1.1
3.3.3 Class C
110XXXXX
192 11000000
193 11000001
194 11000010
Class C . . Used for network
(192 through 223) . . addresses in class C
. .
222 11011110
223 11011111
Network Broadcast
address address
Example: Using the same way in the two previous examples can you guess how
many networks here.
device A device F
192.168.3.7 222.1.6.6
device A device F
192.168.3.7 222.1.6.6
device B device E
device C
200.5.0.1 device D 192.168.3.12
200.5.1.1
192.168.3.251
Network address:
Network address: Network address: 222.1.6.0
200.5.0.0 192.168.3.0 F: 222.1.6.6
B: 200.5.0.1 A: 192.168.3.7
D: 192.168.3.251
E: 192.168.3.12
Network address:
200.5.1.0
C: 200.5.1.1
Unicast: This sends form one device to another device that connected with (one
to one).
H.R 1 IT 2
192.168.1.1 192.168.12.2
IT Department
H.R Department Network
Network 192.168.12.0
192.168.1.0
For example:
11.3.7.7 and 11.0.0.8 are IP addresses in the same network (11.0.0.0).
3.4 The following network is made to make all devices connected with each
other, but it doesn’t happen. Discover where the problems are and correct
them.
A
H
192.168.1.7
192.168.1.0
B G
192.168.2.4 192.168.1.8
C D E F
192.168.1.225 192.168.1.7 192.168.1.200 192.168.1.100
Objectives:
- Understand the IP subnetting.
- Learn how to design and implement simple VLSM networks.
Subnetting takes one larger network and breaks it into a bunch of smaller
networks (called subnets). Let’s start this lab.
4.1 Basics
If we have this IP address
192.168.7.9 / 24
or
192.168.7.9 255.255.255.0
The same way for class A and B. The default subnet mask in the following table:
Class Format Default Subnet Mask Slash Notation
A Network.Node.Node.Node 255.0.0.0 /8
B Network.Network.Node.Node 255.255.0.0 /16
C Network.Network.Network.Node 255.255.255.0 /24
Table (4.1) Default Subnet Mask
/24 is classless Inter-Domain Routing (CIDR) value. When we have address like
this: 192.168.7.9/24. This is telling us what our subnet mask is. The slash notation
(/) means how many bits are turned on (1s). Here 24 bits are turned on.
To ensure that you get it, let us have these 3 addresses:
1- 192.168.10.15/28
2- 150.14.1.3/21
3- 11.200.4.2/15
192.168.10.15/28
Class C
IP address
The default slash notation (CIDR) is /24, so there is increment by 4 bits.
By representing it in binary.
11111111 . 11111111 . 11111111 . 11110000
24 + 4 = / 28
27+26+25+24=128+64+32+16= 240
150.14.1.3/21
Class B
IP address
The default slash notation (CIDR) is /16, so there is increment by 5 bits.
By representing it in binary.
11111111
11111111 .. 11111111
11111111 .. 11111000
11111000 .. 00000000
00000000
16 + 5 = / 21
So,
27+26+25+24+23=128+64+32+16+8= 248
The subnet mask is 255 .255 . 248 .0
The subnet mask is 255 .255 . 248 .0
By using the same way of the previous addresses. The subnet mask of 11.20.4.2 /
15 is 255.254.0.0
A byte is 8 bits and there are 4 bytes in the IP address (4 x 8 = 32). However,
the largest subnet mask available can only be a /30.
Why?
The following examples will give use a good understanding about subnetting in
class C.
Example 1:
If a host on a network has the address 195.18.3.7/28, what is the network
that this host belongs to then determine the broadcast address, first host address
and last one in this network.
Solution:
1-Network address:
We have 195.18.3.7, so the binary representation of it is:
11000011.00010010.00000011.00000111
To find the network address we have to set the rightmost [32 – n] bits to zeros.
Where n is CIDR value or slash notation or prefix notation.
32 – 28 = 4 bits
Another way to find the network address by using AND. We will add the given
address with the subnet mask using AND. If the two bits are (1s) the result will be
1, else the result will be zero.
The slash notation here is /28, so 28 bits will be turned on to get the mask.
32 – 28 = 4 bits
Broadcast
address 11000011.00010010.00000011.00001111
Add to the network address one, so the first host address here is:
195.18.3.1
Example 2:
According to this IP 221.16.140.0/26 answer the following questions:
1- How many subnets does the chosen subnet mask produce?
2- How many valid hosts per subnet are available?
3- What are the valid subnets?
4- What’s the broadcast address of each subnet?
5- What are the valid hosts in each subnet?
Solution:
1- How many subnets does the chosen mask produce?
The slash notation is /26 and the default subnet in class C is /24, so 26-24=2
bits.
26 – 24 = 2 bits
2 bits are taken form host portion to network portion this is why the
remaining bits in host portion are (8 - 2) = 6 bits.
11111111.11111111.11111111.11000000 255.255.255.192
27 + 26 = 128 + 64 = 192
Now, 256 – 192 = 64
Subnets are (0, 64, 128, 192). We add the block size (64) to 0 to get the
second subnet (network) then add the second one to 64 to find the third
subnet and so on for the rest.
4- What’s the broadcast address of each subnet?
To get the broadcast in a subnet we have to take the value of the next
subnet minus one.
Subnets 0 64 128 192
0 0 64
63 127
128 192
Example 3:
A given network address 200.10.5.0/24. We need to get 5 networks then
determine:
1- The valid networks.
2- The broadcast address of each subnet.
3- The valid hosts in each subnet.
Solution:
1- The valid networks.
2? will give us 5 or bigger than it a little 23 = 8 will be the answer, so 3 bits
will be added to prefix notation /27.
Another way to do this by converting 5 into binary (00000101) we need 3
bits. The new subnet mask is:
11111111.11111111.11111111.1110000
255.255.255.224
To find the block size 256 – 224 = 32.
The valid networks (0, 32, 64, 96, 128, 160, 192, 224).
To summary all:
Network 1: 200.10.5.0 /27 Network 2: 200.10.5.32 /27
First host: 200.10.5.1 /27 First host: 200.10.5.33 /27
Last host: 200.10.5.31 / 27 Last host: 200.10.5.62 / 27
Broadcast: 200.10.5.31 /27 Broadcast: 200.10.5.63 /27
0 0 32 64 96
31 63 95 127
128 160 192 224
Example:
We have 172.16.0.0 / 26. Determine:
1- The valid networks.
2- The valid broadcasts.
3- First and last node addresses in each subnet.
4- Hosts in each network.
Solution:
We know that the default of class B is / 16 and here 26 so, 26 – 16 = 10 bits we
increased the network portion by 10 bits, so we will take the whole third octet
(8bits) and (2 bits) from the fourth octet.
New subnet mask: 11111111.11111111.11111111.11000000
In decimal: 255.255.255.192
Third octet Block size = 256 – 255 = 1 (0, 1, 2, 3, 4,..… ,254, 255)
Fourth octet Block size = 256 – 192 = 64 (0, 64, 128, 192)
Example:
We have 10.0.0.0/10. Determine:
1- The valid networks.
2- The valid broadcast.
3- Hosts in each network.
4- First and last host addresses in each network.
Solution:
1- The valid networks.
70 hosts
2 hosts
…
... …
...
6 hosts
…
...
20 hosts 192.168.10.128 /26
192.168.10.0 /26
192.168.10.192 /26
192.168.10.64 /26
Figure (4.1) Classful networks
All hosts and router interfaces have the same subnet mask, this is called
classful routing.
To solve these problems, we need to learn VLSM. By using VLSM we can
use different size masks. This is called classless routing.
We want to design the previous network in figure (4.1) using VLSM before
we start remember that class C is suitable, the summation of all hosts (6 + 2
+ 20 +70) is 98 and as we learned before that class C can provide 254 host
addresses.
First thing that we have to do is listing the networks according to the number of
the hosts from the largest to smallest one.
Network Hosts number
Network 1 70
Network 2 20
Network 3 6
Network 4 2
Now start with the first network (70 hosts). The representation of (70) in binary
is (01000110), so we have 7 bits for host portion. In another meaning we used one
bit of host portion to include it in network portion this is why the new subnet mask
will be:
Binary 11111111.11111111.11111111.10000000
Decimal 255.255.255.128 or /25
The increment number (block size) = 256 – 128 = 128.
0 128
127 255
We will move to the second network which has (20 hosts). 20 is represented in
binary by 5 bits (00010100). It is clearly that 3 bits of host portion are used for
network portion. Old subnet mask was 255.255.255.128 and the new one is:
Binary 11111111.11111111.11111111.11100000
Decimal 255.255.255.224 or /27
159
Network 2: 192.168.10.128 /27
First address: 192.168.10.129 Box method
160
Last address: 192.168.10.158
Broadcast: 192.168.10.159
127 255
Binary 11111111.11111111.11111111.11111000
Decimal 255.255.255.248 or /29
159
Network 3: 192.168.10.160 /29 160 168
First address: 192.168.10.161 Box method
160
Last address: 192.168.10.166
Broadcast: 192.168.10.167
The last network (WAN) has (2 hosts). 2 takes 2 bits in binary (00000010). The
new mask is:
Binary 11111111.11111111.11111111.11111100
Decimal 255.255.255.252 or /30
Block size = 256 – 252 = 4.
0 128
159
Network 4: 192.168.10.168/30 160 168 171
First address: 192.168.10.169 Box method 172
160
Last address: 192.168.10.170
Broadcast: 192.168.10.171
70 hosts
2 hosts
…
... …
...
6 hosts
…
...
20 hosts 192.168.10.168 /30
192.168.10.160 /29
192.168.10.0 /25
192.168.10.128 /27
Figure (4.2) Classless network design
Now, remember that we can use different size masks on each router interface. By
using VLSM not only can we get just the right amount of hosts on each LAN, we still
have chance to add more WANs and LANs using the same network.
After all these examples it is obviously that the /8 through /15 can only be used
with class A network addresses. /16 through /23 can be used by class A and B
network addresses. /24 through /30 can be used by class A, B and C network
addresses.
Well, while we are waiting for the next lab time read about
hub, switch and router (which are network devices). All the
Stay positive, work hard, make it happen.
4.1 Write the subnet, broadcast address and valid host range for:
a- 192.168.100.25 / 30
b- 165.100.3.155 / 26
4.2 You have sub-netted your class C network 192.168.1.0 with a subnet mask of
255.255.255.240. Please list the following:
a- Number of networks.
b- Number of hosts per network.
c- The full range of the first three networks
d- The usable address range from these first three networks.
4.3 Assume that you have been assigned the 200.35.1.0 / 24 network block.
a- Define an extended network prefix that allows the creation of 20 hosts on
each subnet.
b- What is the maximum number of hosts that can be assigned to each
subnet?
c- What is the maximum number of subnets that can be defined?
4.4 Assume that you have been assigned the 132.45.0.0 / 16 network block. You
need to establish 8 subnets.
Determine:
a- The subnet mask.
b- Valid network addresses.
c- Broadcast IP address in each network.
4.5 Fill in the blank according to the information that you have.
4.6 Fill in the blank places according the information that you have.
4.7 Based on the information in the graphic shown, design a network addressing
scheme that will supply the minimum number of hosts per subnet, and allow
enough extra subnets and hosts for 30% growth in all areas. Circle each subnet on
the graphic and answer the questions below.
4.8 Design a network addressing scheme according to the following table and
figure:
WAN 1
C D
Objectives:
- Understand router interface.
- Get familiar with packet tracer simulation.
- Understand some router modes.
- Start with basic configurations.
All previous labs were a good starting to get knowledge about some basic
concepts that will help us during the practical work.
Your job in lab 4 was reading about hub, switch and router that means you got
the major differences between these devices.
Router is called “Layer 3 device” while some switches are called “layer 2 devices”.
Let me guess that you know why they called by this according to your search.
The figure mentions the interfaces of the router that we will deal with during
labs.
Serial Interface
Ethernet
10 Mbps Local
Smart Interface “Console Port”
Fast Ethernet 10 / 100
100 Mbps Remote
“Auxiliary Port” is not used
Gigabit Ethernet 10 / 100 / 1000 these days
1000 Mbps “Telnet or SSH” Protocol
Network
192.168.1.0 / 24
Steps:
1- Select 3 PCs, one switch and a router. Put them in the work space.
2- Set up the IP addresses of the PCs.
3- Connect switch with PCs through Ethernet ports.
4- Test that PCs can communicate with each other. To do that open the
command prompt then write the command ping followed by the IP address
of the PC that we want to test the connectivity with.
5- Connect router with the switch through Ethernet port.
6- Connect one of the PCs with the router through (console port) then from the
terminal window of the PC we will write the router configuration in
Command-Line Interface (CLI).
Configurations
Router>enable
Router#configure terminal
Router(config)#hostname LAB5
LAB5(config)#banner motd %This is my router don't enter%
LAB5(config)#interface f0/0
LAB5(config-if)#ip address 192.168.1.1 255.255.255.0
LAB5(config-if)#no shutdown
LAB5(config-if)#exit
LAB5(config)#enable secret FirstP1
LAB5(config)#line console 0
LAB5(config-line)#password 456@ps
LAB5(config-line)#login
LAB5(config-line)#exec-timeout 5 0
LAB5(config-line)#end
LAB5#wr
We now end up with a Router# prompt, which indicates that we’re in privileged
mode, where we can both view and change the router’s configurations.
We can make global changes to the router by typing configure terminal (or config
t for short), which puts us in global configuration mode and changes what’s known
as the running-config. A global command (a command run from global config)
affects the entire router (system).
Router# configure terminal
Router(config)#
Commands in this mode will affect the interface or processes that we are in only
for example, to change an interface we use the interface command from global
configuration mode:
Router(config)#interface fastEthernet 0/0
Router(config-if)#
The prompt changed to Router(config-if)# and this tell us that we are in interface
configuration mode.
Mode Definition
User exec mode Limited to basic monitoring commands.
Privileged exec mode Provides access to all other router commands.
Global configuration mode Commands that affect the entire system.
Specific configuration mode Commands that affect interfaces/ processes only.
Message of the day (MOTD) gives a message to every person dialing into or
connecting to the router via Telnet or an auxiliary port or even through a console
port as seen here:
The message that we will write must be between the same character for example
we start with # then the text message after that must be # not any another
character.
To configure the router interface with IP address first we must to enter to the
interface that we will set up the IP address for.
LAB5(config)#interface f0/0
Note that the interface can be (f0/0, f0/0/0, g0/0, e0/1, …) depending on the
router model.
Now, we will write the IP with its subnet mask.
1- Set up a password that will be asked before entering privileged mode just as
follows:
Any password
LAB5(config)#enable secret FirstP1
1- A user will be asked about password when she/he enters to the router using
console port through rolled over cable because the following commands:
The difference between using password and secret is that password will take the
text that we wrote as it is while secret will encrypt it as we mentioned before. This
password will not activate unless we write login command.
2- To limit the line execution timeout to specific time and after this period if we
don’t write anything in CLI we will get out of the section.
LAB5(config-line)#exec-timeout 5 0 Seconds
Minutes
LAB5(config-line)#end
Is similar to exit but with a tiny difference that we will jump to privileged mode
directly.
A lot of commands we wrote in the router, but I have a little secret for you that if
we close the CLI window everything that we did will disappear as it was not there.
LAB5#wr
Try these commands and discover for what they are used.
LAB5#show running-config
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
example:
LAB5(config)#?
PC 1 IP ------------------------------------------
Network address PC 2 IP ------------------------------------------
LAN 1
------------------------- PC 3 IP ------------------------------------------
PC 4 IP ------------------------------------------
PC 1 IP ------------------------------------------
Network address PC 2 IP ------------------------------------------
LAN 2
------------------------- PC 3 IP ------------------------------------------
PC 4 IP ------------------------------------------
Network address PC 1 IP ------------------------------------------
LAN 3
------------------------- PC 2 IP ------------------------------------------
Between switch and PCs -----------------------------------------------
Cables Between switch and router -------------------------------------------
Between router and PC for configurations -------------------------
Between LAN 1 and LAN 2-----------------------------------------------
Connectivity Between LAN 1 and LAN 3-----------------------------------------------
Between LAN 2 and LAN 3-----------------------------------------------
Objectives:
- Understand how to create VLANs.
- Trunk ports and access ports.
- Use routing between VLANs.
- Get familiar with VLAN identification.
A VLAN (Virtual Local Area Network) is a logical grouping of network users and
resources connected to administratively defined ports on a switch.
When you create VLANs, you’re given the ability to create smaller broadcast
domains within a layer 2 switched internetwork by assigning different ports on the
switch to different sub networks. A VLAN is treated like its own subnet or broadcast
domain, meaning that frames broadcast onto the network are only switched
between the ports logically grouped within the same VLAN.
sw1 sw2
f0/1 f0/1
sw1
Switch>enable
Switch#configure terminal
Switch(config)#hostname sw1
sw1(config)#enable secret 123*a
sw1(config)#line console 0
sw1(config-line)#password SL6
sw1(config-line)#login
sw1(config-line)#exit
sw1(config)#vlan 10
sw1(config-vlan)#name Sales
sw1(config-vlan)#end
sw1#vlan database
sw1(vlan)#vlan 12 name Management
sw1(vlan)#exit
sw1#configure terminal
sw1(config)#int f0/10
sw1(config-if)#switchport mode access
sw1(config-if)#switchport access vlan 12
sw1(config-if)#int f0/11
sw1(config-if)#switchport mode access
sw1(config-if)#switchport access vlan 12
sw1(config-if)#int f0/12
sw1(config-if)#switchport mode access
sw1(config-if)#switchport access vlan 12
sw1(config-if)#exit
sw1(config)#int range f0/2-6
sw1(config-if-range)#switchport mode access
sw1(config-if-range)#switchport access vlan 10
sw1(config-if-range)#exit
sw1(config)#int f0/1
sw1(config-if)#switchport mode trunk
sw1(config-if)#switchport trunk allowed vlan all
sw1(config-if)#end
sw1#wr
Before we start with the configurations I want you to know that there are two
different types of links in a switched environment:
1- Access ports.
2- Trunk ports.
Switch port can belong only to one VLAN if it is an access port or all VLANs if it is
a trunk port.
To configure VLANs we will use the global config vlan command as follows:
VLAN ID from 2 to 1001
sw1(config)#vlan 10
Remember that VLAN 1 is the native and administrative VLAN by default.
sw1(config-vlan)#name Sales
Another way to create VLAN and give it a name by entering privileged mode and
write the following:
sw1#vlan database
sw1(vlan)#vlan 12 name Management
Know we will assign switch ports to VLANs. We can configure each port on a
switch to be in a specific VLAN (access port) by using the interface switchport
command.
sw1(config)#int f0/10
sw1(config-if)#switchport mode access
sw1(config-if)#switchport access vlan 12
We will do the same thing for all ports that belong to the same VLAN which are
(f0/11, f0/12). Now, the switch knows that ports (10, 11, and 12) are in the same
VLAN (VLAN 12).
There is another way to assign switch ports to VLANs using interface range
command.
Interface range command allows us to configure multiple ports at the same time.
After understanding the commands, it is your time now to configure switch (sw2).
sw2
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
sw2
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
Everything is ready. you will test the connectivity between devices and fill the
following table:
Devices Communication
Two devices in sales department in sw1.
Two devices in management department in
sw2.
Device in sw1 with another in sw2 belong to
sales department.
Device in sw1 with another in sw2 belong to
management department.
Sales department’s device with management
department’s device both in sw1.
Sales department’s device in sw1 with
management department’s device in sw2.
Only hosts that are members of the same VLAN can communicate. To change this
and allow inter-VLAN communication, you need a router or layer 3 switch.
F0/24
sw1 Sw2
192.168.10.0 / 24 192.168.20.0 / 24
192.168.10.0 / 24 192.168.20.0 / 24
VLAN 10 VLAN 12
VLAN 10 VLAN 12
The router
Router>enable
Router#configure terminal
Router(config)#hostname R
R(config)#interface f0/0
R(config-if)#no shutdown
R(config-if)#no ip address
R(config-if)#int f0/0.10
R(config-subif)#encapsulation dot1Q 10
R(config-subif)#ip address 192.168.10.1 255.255.255.0
R(config-subif)#interface f0/0.20
R(config-subif)#encapsulation dot1Q 12
R(config-subif)#ip address 192.168.20.1 255.255.255.0
R(config-subif)#end
Switch (sw1) is connected with router (R) through f0/0 port. You have to notice
that we use router for routing between different VLANs that is why we need to
have number of ports equal to number of VLANs. But usually routers don’t have a
lot of ports. However, the router’s interface is divided into logical interfaces. These
are called sub interface.
Frist step will be by removing any IP address that were set up for router physical
port (f0/0) because if there is any the router will not accept sub interfaces. We will
use the following command:
R(config-if)#no ip address
Now, we will use sub interfaces one for each VLAN. The following command for
VLAN 10:
Now, we will add an IP address for the logical interface f0/0.10. Just as
follows:
11.0.0.1 / 8 11.0.0.2 / 8
192.168.1.1 / 24 172.17.0.1 / 16
Objectives:
- Describe routing basics.
- Advantages and disadvantages of static routing.
- Get a quick look on WAN components.
- Understand the static routing configurations.
-
The term routing is used for taking a packet from one device and sending it
through the network to another device on a different network. Routers don’t really
care about hosts they only care about networks and the best path to each network.
The logical network address of the destination host is used to get packets to a
network through a routed network, and then the hardware address of the host is
used to deliver the packet from a router to the correct destination host.
If our network has no routers, then it should be apparent that we are not routing.
Routers route traffic to all the networks in our internetwork. To be able to route
packets, a router must know, at a minimum, the following:
1- Destination address.
2- Neighbor routers from which it can learn about remote networks.
3- Possible routes to all remote networks.
4- The best route to each remote network.
5- How to maintain and verify routing information.
The router learns about remote networks from neighbor routers or from an
administrator.
The router then builds a routing table (a map of the internetwork) that describes
how to find the remote networks. If a network is directly connected, then the
router already knows how to get to it.
If a network isn’t directly connected to the router, the router must use one of two
ways to learn how to get to the remote networks:
1- Static routing.
2- Dynamic routing (our topic in the next lab).
Static routing means that someone must hand-type all network locations into the
routing table.
between two routers. In the real life the serial cable that is used in our
simulation is shown in figure (7.1).
a- In packet tracer
Demarc
Demarc
b- In real life
DTE: Data Terminal Equipment.
DCE: Data Communication Equipment.
CSU/DSU: Channel Service Unit/Date Service Unit.
CO: Central Office.
Demarc: Demarcation location.
CPE: Customer Premises Equipment.
Figure (7.1) WAN components
By default, router interfaces are DTE, and they connect into data DCE like
(CSU/DSU). The CSU/DSU then plugs into a demarc and is the service provider’s last
responsibility. Most of the time, the demarc is a jack that has an RJ-45 (8-pin
modular) female connector located in a telecommunications closet.
Demarcation location is a location that separating between the customer place
responsibilities and the service provider responsibilities.
10.0.0.0 / 8
A B
S0/0 S0/0
Configurations in router A
Router>enable
Router#configure terminal
Router(config)#hostname A
A(config)#interface f0/0
A(config-if)#ip address 192.168.20.1 255.255.255.0
A(config-if)#no shutdown
A(config-if)#exit
A(config)#interface s0/0
Configurations in router A
A(config-if)#ip address 10.0.0.1 255.0.0.0
A(config-if)#no shutdown
A(config-if)#clock rate 64000
A(config-if)#exit
A(config)#ip route 192.168.10.0 255.255.255.0 10.0.0.2
A(config)#end
A#wr
According to the (serial or smart) interface that we used; the interface can be
(s0/0, s0/0/1, ……) here we used:
A(config)#interface s0/0
As we mentioned before that clocking provided by DCE to routers. Here in
simulation program one router will be DCE and the another one will be DTE, so the
router that will be DCE must provide clocking this why we must use this command:
After pressing enter we will see all the speeds that we can use.
No need to write this command in DTE router because it will not effect.
The main point in this lab is static routing. Let me explain something before write
the command of that.
1- Using next-hop-IP.
2- Using exit interface.
According to figure 7.2 in case that we are making the configurations in A, so the
next hop IP is 10.0.0.2 while the exit interface is s0/0. I think it is clear now. Your
turn to write if you are writing the B configurations:
- Next hop IP
Configurations in router B
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
All show commands are run form privileged mode if we try to write
them in configuration mode for example:
A(config)# show run
This is will cause an error, so to do that we have to write:
A(config)# do show run
So basically, we can run any command from any configuration prompt
using do.
After adding all configurations that we need. Now we can check the connectivity
between remote networks. Can you imagine that remote networks will not
communicate with each other?!!!!!!!
Look for something positive in each day, even if some days you have to look a little harder.
What will happen if?!
Static routing is a big headache for the administrator because it causes more
works as long as the networks get bigger.
Dynamic routing will help the admin to save efforts. Our study in the next lab will
be about it.
7.2 Configure this network in case A, B and C can communicate with each other
and fill the table:
RA RB
RC
A B
C
Device IP address
A ---------------------------
B ---------------------------
C ---------------------------
---------------------------
RA
---------------------------
---------------------------
RB
---------------------------
---------------------------
RC
---------------------------
Objectives:
- Understand “Dynamic routing” concept.
- Pros and cons of dynamic routing.
- Learning the configurations of (RIP, EIGRP and OSPF).
- Understand wildcard mask.
-
Dynamic routing is when protocols are used to find networks and update routing
tables on routers.
- RIP version 1.
- RIP version 2.
R1 R2 S 0/0 R3
S 0/0 S 0/0 S 0/1
10.0.0.0 / 8 11.0.0.0 / 8
Configurations in router R1
Router>enable
Router#configure terminal
Router(config)#hostname R1
R1(config)#interface f0/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#interface s0/0
R1(config-if)#ip address 10.0.0.1 255.0.0.0
R1(config-if)#no shutdown
R1(config-if)#clock rate 64000
R1(config-if)#exit
R1(config)#router rip
R1(config-router)#network 192.168.1.0
R1(config-router)#network 10.0.0.0
R1(config-router)#passive-interface f0/0
R1(config-router)#end
R1#wr
The same thing as previous command but the activation will be in interface s0/0
and the advertisement for 10.0.0.0 network.
In another meaning every router will advertise its own networks that connected
directly to it.
When the RIP protocol is activated the updates will be send to other networks
every 30 seconds. These updates are important for serial interfaces to update
routing table, but it doesn’t necessary for Ethernet ports because there is no router
inside there. The following command is very useful one:
R1(config-router)#passive-interface f0/0
This command will tell the router that makes an advertisement about my network
but doesn’t send any updates to this interface because there is no need for that.
Configurations in router R2
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
Configurations in router R2
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
Configurations in router R3
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
Configurations in router R1
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#no auto-summary
This last command is used to tell the router takes the subnet that we wrote even
if it is classless one. If we don’t write this command the router will accept just
classful subnetting and in that time will not be a big different between using RIP
(v1) or RIP (v2).
R1#show ip protocols
R1#debug ip rip
R1#show ip protocols
-------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------
------------------------------------------------
R1#debug ip rip
-------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------
------------------------------------------------
R1
R3
R2
192.168.1.0 /24
Configurations in router R1
Router>enable
Router#configure terminal
Router(config)#hostname R1
R1(config)#interface f0/0
R1(config-if)#ip address 192.168.2.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#int s0/0
R1(config-if)#ip address 172.16.1.2 255.255.255.252
R1(config-if)#no shutdown
R1(config-if)#int s0/1
R1(config-if)#ip address 172.17.1.1 255.255.255.252
R1(config-if)#no shutdown
R1(config-if)#clock rate 64000
R1(config-if)#exit
R1(config)#router eigrp 10
R1(config-router)#network 172.16.1.0
R1(config-router)#network 172.17.1.0
R1(config-router)#network 192.168.2.0
R1(config-router)#end
R1#wr
To start an EIGRP session on a router, use the router EIGRP command followed
by the Autonomous System (AS) number of our network. We can use any number
from 1 to 65535 for the autonomous system number. EIGRP uses autonomous
system numbers to identify the collection of routers that share route information.
Only routers that have the same autonomous system numbers share routes.
Verification commands
Configurations in router R2
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
Configurations in router R3
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
Configurations in router R2
Router>enable
Router#configure terminal
Router(config)#hostname R2
R2(config)#interface f0/0
R2(config-if)#ip address 192.168.1.1 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#int s0/0
R2(config-if)#ip address 172.16.1.1 255.255.255.252
R2(config-if)#no shutdown
R2(config-if)#clock rate 64000
R2(config-if)#exit
R2(config)#router ospf 100
R2(config-router)#network 172.16.1.0 0.0.0.3 area 0
R2(config-router)#network 192.168.1.0 0.0.0.255 area 0
R2(config-router)#end
R2#wr
The easiest also least scalable way to configure OSPF is to just use a single area.
Doing this requires a minimum of two commands. The command you use to
activate the OSPF routing process is as follows:
A value in the range 1 – 65535 identifies the OSPF process ID. It’s a unique number
on this router that groups a series of OSPF configuration commands under a specific
running process. Different OSPF routers don’t have to use the same process ID in
order to communicate.
We will cover here signal-area OSPF with each router running a single OSPF
process. Now, we need to identify the interfaces that we want to activate OSPF
communications on as well as the area in which each resides.
A number from 0
Network address Wildcard mask
to 4294967295
The areas can be any number from 0 to 4.2 billion. Don’t get these numbers
confused with the process ID, which is from 1 to 65535.
Wildcard mask
To get the wildcard mask let us take the network address that we used in our
topology 172.16.1.0 / 30 .
Well, it is easy now to say that this IP in class B and because of /30 the subnet
mask is 255.255.255.252. All this information we know from previous labs.
255.255.255.255
_
Subnet mask 255.255.255.252
0 . 0. 0 . 3 Wildcard mask
255.255.255.255
_
Subnet mask
Wildcard mask
Configurations in router R1
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
Configurations in router R3
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
Verification commands
R1#show ip ospf
R1#show ip ospf neighbors
R1#show ip ospf database
R1#show interface s0/0
R1#routing information sources
We cannot finish this lab without asking you about the usage of these commands.
R1#show ip ospf
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------
R1#show ip ospf neighbors
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------
R1#show ip ospf database
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
R1#routing information sources
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
8.2
12 hosts 14 hosts
45 hosts
Objectives:
- Understand how to use HTTP, DNS, DHCP, Email and TFTP.
- Learn the configurations to make a router works as DHCP server.
- Understand the benefit of Telnet protocol.
In this lab we will try some protocols like TFTP, DHCP, DNS, HTTP, Email and
Telnet. The following scenario will be applied to use these protocols.
12.0.0.0 /8
R2
R1 S2/0 F0/0
F0/0 .2
.2 S2/0 .1
.1
.10
.6 .2 .3
.8
192.168.0.0 /24
.9 .7
10.0.0.0 /8
Figure (9.1) Servers topology
You are the one who will start the work today by connecting the devices of the
topology then setup the configurations of the routers also put IP addresses for PCs
in LAN 192.168.0.0 / 24. The following space is left for your configurations that you
will make.
Configurations in router R1
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
Configurations in router R2
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
As in HTTP we will write the IP address then from config select services after that
we will choose DNS. Now you have to fill the blocks as in figure (8.2).
Step 2
Step 1
Write the name of the web site
10.0.0.9
Step 5
Step 3
Step 4
IP address of HTTP server
What we do normally in all previous labs is writing the IP addresses of the devices
manually but imagine that we have hundreds of devices that are waiting for us to
write the IP addresses for them. It will be a punishment isn’t it?!
Good news that is no need to worry about that because DHCP will be responsible
for giving these devices their IP addresses dynamically.
After setting the IP address of DHCP of course manually, open DHCP from services
and follow the steps in the figure (9.3).
Step 1
Step 2
Step 3
Step 5
Step 7
Step 4
The network that the
DHCP will use to give
devices IP addresses
from its range
Step 6
Step 8 Step 9 Maximum number of IP
addresses can DHCP give
to devices
9.4 Email
We will write the IP address of Email server which is 10.0.0.6 / 8. Now, we will do
as in the figure (9.4).
Step 1
Step 2
Step 3
Add the user name Step 4
and password To add it to the
database
First step is to ensure that we can access the TFTP server by using ping command.
Usually backup is used to get copy of existing file of IOS, in case the new image
crashes and burns.
Router#show flash
Copy the name of the file because we will need it later. We can use another
command which is:
Router#show version
The main difference in the output of the show flash and show version commands
is that show flash command displays all files in flash and the show version
command shows the actual name of the file that the router is using to run the
router.
In this section we will learn how to make a backup for a router IOS then how to
restore this backup. It is done with very easy steps. Follow me then see.
Now, we can say that the contents of flash memory were copied successfully to
the TFTP server. Go and check our backup file inside the server you will find it there.
For any reason if we need to restore the IOS to flash memory. This command will
be used:
Name that we wrote it for the file which we stored in TFTP server
Enter
If the file name which is in TFTP server and in flash memory are the same, so the
router will ask us if we want to overwrite it.
In case that we are loading a new file and we don’t have enough room in flash
memory to store both the new and existing copies, the router will ask to erase the
contents of flash memory before writing the new file into flash memory.
Any change that we make to the router configurations are stored in the running-
config file. We want to make a backup of the configuration information just in case
the router or switch completely dies. Even if this doesn’t happen it’s good to have
for reference and documentation reasons.
Now, we will describe how to copy the configurations of a router to a TFTP server
and how to restore that configurations.
Backing up the router configurations
To copy the router’s configurations from a router to a TFTP server, we can use
either the copy running-config tftp or the copy startup-config tftp command. Either
one will back up the router configurations that’s currently running in DRAM or
that’s stored in NVRAM.
Destination filename[router-confg]?
Any name we want. If we don’t write a name and press enter it will
take the name between [ ].
I guess that you know what will be the command that we will use.
Enter
I will leave for you to copying the current configurations to NVRAM and to
restore it too.
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Users’ names and passwords that you will write in the configure mail window
must match the names and passwords that are saved in the Email server in section
(9.4). Now, go to mail browser and send a message and see if the other PC receives
it then you can replay by a message.
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
We will go through making a router as DHCP server in a few minutes, but first I
want you to do the following:
Just try these things and tell me what you will get.
---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
2- If the available range for DHCP server is 3 IP addresses only.
---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
R-DHCP
F0/0
192.168.1.1
Network address
192.168.1.0 0 /24
I will not write the configurations of changing router’s name and setting IP
address of the router. All this will be done by you because you don’t need me any
more to configure that for you.
---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
R-DHCP(dhcp-config)#default-router 192.168.1.1
R-DHCP(dhcp-config)#end
R-DHCP#wr
9.8 Telnet
Telnet is a virtual terminal protocol that allows us. To make connections to
remote devices, gather information, and run programs.
After our routers and switches are configured, we can use the Telnet to
reconfigure and / or check up on our routers and switches without using a console
cable.
a) First way
R1(config-line)# login
b) Second way
R1(config)#service password-encryption
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------
The worst mistake is to not make any.
You start the labs by learning hardware. You recognize the colors of the cable and
its types to connect network devices together. IP addressing is an important step
to be ready for understanding subnetting and VLSM.
All these concepts are your stone that you use to climb to the next stage
“configurations”.
Implement a very simple network with writing basic commands is your beginning
in configurations. Network becomes more organized after using VLANs. Then the
network gets bigger and bigger. This is why you start to deal with WANs. This
improvement opens a new window for you to learn how to use static and dynamic
routing. Ending with using some useful services and protocols.
And designing a network is good chance to organize and practice all what you get.
This is everything in network?! Of course not. What you just have learned is a tiny
spot of light to start discover a very amazing world called “Network”. A lot of
information is waiting for you. Reading, asking and practicing are the way to be
good in this field.
I believe that network will be something easy for you just for one reason “You can
do it”.
At the end of the journey I would like to thank every person who helps me to
finish this manual. I will not mention names but from deep of my heart “Thank you
so much”.
For you my dearly students I hope that this course was interesting and useful