Network Training Level1 - Lesson 1-6
Network Training Level1 - Lesson 1-6
Lesson 1
➢ OSI Reference Model
➢ Functionalities of each Layer
➢ Network Devices
➢ Network Topology
➢ Networking Media
1
OSI - Open System Interconnection Model
7 Application
6 Presentation
5 Session
4 Transport
3 Network Routers
}
7 Application
6 Presentation Host layers: Provide
5 Session accurate data delivery between
computers
4 Transport
}
3 Network
2 Data Link Media layers: Control
physical delivery of messages
1 Physical over the network
Layer Functions
Network devices include all the devices that connect the end-
user devices together to allow them to communicate.
11
Network Interface Card
The function of a NIC is to connect a host device to the network medium.
NICs are considered Data Link Layer devices because each NIC carries a
unique code called a MAC address. MAC address is 48 bits in length and
expressed as twelve hexadecimal digits.
12
Hub
13
Switch
14
Router
❑Routers are used to connect networks together
❑Route packets of data from one network to another
❑Cisco became the de facto standard of routers because of their high-
quality router products
❑Routers, by default, break up a broadcast domain
15
Network Topologies
16
Bus Topology
❑A bus topology uses a single backbone cable that is
terminated at both ends.
22
Networking Media
23
LAN Physical Layer
The function of media is to carry a flow of information through a
LAN.Networking media are considered Layer 1, or physical layer,
components of LANs.
eg. Unshielded Twisted Pair (UTP) Cable & Fiber cable
24
Cable Specifications
10BASE-T
The T stands for twisted pair. (Approximately 100 meters)
25
Straight-through cable
Straight-through cable pinout
Crossover cable
Crossover cable
29
Rollover cable
Rollover cable pinout
Straight-Thru or Crossover
❑Use straight-through cables for the following cabling:
❑ Switch to router
❑ Switch to PC or server
❑ Hub to PC or server
33
SMF - Single Mode Fiber Cables Details
➢ Generally, single mode fibers have a small core size (less than 10 µm) that
permits only one mode or ray of light to be transmitted.
➢ For this reason, there is little light reflection created when light passes
through the single mode fiber core. This will lower fiber attenuation and
create the ability for the signal to travel further.
➢ Single mode fibers usually used in long distance
34
MMF Multi Mode Fiber Cables Details
Multi Mode Fiber
➢ Multimode fibers have larger cores (62.5 µm or 50 µm) that guide many
modes simultaneously, which means more data can pass through the
multimode fiber core at a given time.
➢ This will create more light reflections and higher dispersion and attenuation
rate, reducing quality of the signal over long distances.
➢ Multimode fibers are used in short distance.
35
Optical Multi-mode Fiber Cables Details
36
OM1 – OM2 – OM3 – OM4 Fiber Cables
OM1 & OM2 MMF Cables OM3 & OM4 MMF Cables
37
Fiber Optic Patch Cables
ST - ST SC - SC
LC - LC MTRJ - MTRJ
38
Fiber Optic Patch Cables
ST - LC
ST - SC
SC - MTRJ
ST - MTRJ
39
Fiber Optics / RJ45 Modules
GBIC SC Module GBIC RJ45 Module
40
Media Converters
UTP to Fiber ST UTP to Fiber SC
41
USB to Serial Converters
42
Lesson -2
➢ Understanding IP Address
➢ Different classes of IP Address
➢ Understanding Public and Private IP Address
➢ Understanding Subnetting
➢ Understanding classless inter-domain routing (CIDR)
43
Converting Decimal to Binary
Convert 20110 to binary:
201 / 2 = 100 remainder 1
100 / 2 = 50 remainder 0
50 / 2 = 25 remainder 0
25 / 2 = 12 remainder 1
12 / 2 = 6 remainder 0
6 / 2 = 3 remainder 0
3 / 2 = 1 remainder 1
1 / 2 = 0 remainder 1
When the quotient is 0, take all the remainders in
reverse order for your answer: 20110 = 110010012
Binary to Decimal Chart
Hex to Binary to Decimal Chart
Network and Host Division
Each complete 32-bit IP address is broken down into a network
part and a host part. A bit or bit sequence at the start of each
address determines the class of the address. There are 5 IP
address classes.
47
IP Addressing
32 Bits
Dotted
Decimal Network Host
1
128
64
32
16
8
4
2
2
128
64
32
16
8
4
1
16
8
4
128
64
32
8
4
2
1
128
64
32
16
2
1
Example
Decimal 172 16 122 204
Example
Binary 10101100 00010000 01111010 11001100
48
IP Address Classes
•Class D: Multicast
•Class E: Research
49
IP Address Classes
Bits: 1 8 9 16 17 24 25 32
0NNNNNNN Host Host Host
Class A:
Range (1-126)
Bits: 1 8 9 16 17 24 25 32
10NNNNNN Network Host Host
Class B:
Range (128-191)
1 8 9 16 17 24 25 32
Bits:
110NNNNN Network Network Host
Class C:
Range (192-223)
1 8 9 16 17 24 25 32
Bits:
1110MMMM Multicast Group Multicast Group Multicast Group
Class D:
Range (224-239)
50
IP Address Classes
IP addresses are divided into classes to define the large,
medium, and small networks.
51
Identifying Address Classes
52
Network/Broadcast Addresses
at the Binary Level
An IP address that has binary 0s in all host bit positions is
reserved for the network address, which identifies the
network. An IP address that has binary 1s in all host bit
positions is reserved for the broadcast address, which is
used to send data to all hosts on the network. Here are some
examples:
Class Network Address Broadcast Address
A 100.0.0.0 100.255.255.255
B 150.75.0.0 150.75.255.255
C 200.100.50.0 200.100.50.255
53
Subnet Mask
A subnet mask is used to identify which parts of the
ip address are the network parts and which parts are the
host parts.
e.g. IP 192.168.1.10 Subnet mask : 255.255.255.0
This indicates that the first 3 octet of the IP address are
used to identify the Network and last octet to identify host
address .
Default Subnet Mask
Class A 255.0.0.0
Class B 255.255.0.0
Class C 255.255.255.0
54
Octet Values of a Subnet Mask
55
Private IP Addresses
56
Public IP Addresses
Unique addresses are required for each device
on a network.
57
Public IP Addresses
58
Classless Inter-Domain Routing (CIDR)
13
4
16
15
14
12
11
10
9
8
7
6
5
3
2
1
00010000 00000000 00000000 1
10101100 00000000 00000001 2
00000000 00000011 3
...
...
...
11111111 11111101 65534
11111111 11111110 65535
11111111 11111111 65536
– 2
2N – 2 = 216 – 2 = 65534 65534
61
Subnetting
…...
172.16.0.0
• Network 172.16.0.0
64
Addressing with Subnets
172.16.3.0
172.16.4.0
172.16.1.0 172.16.2.0
• Network 172.16.0.0
Subnet Addressing
172.16.2.200 172.16.3.5
172.16.3.1
E1
172.16.2.2 E0 172.16.3.100
172.16.2.1
172.16.2.160 172.16.3.150
172.16.2.160 172.16.3.150
IP
Address
172 16 0 0
Network Host
Default
Subnet
Mask
255 255 0 0
11111111 11111111 00000000 00000000
• Also written as “/16,” where 16 represents the number of 1s in
the mask
Network Subnet Host
8-Bit
Subnet 255 255 255 0
Mask
• Also written as “/24,” where 24 represents the number of 1s in
the mask
Decimal Equivalents of Bit Patterns
128 64 32 16 8 4 2 1
0 0 0 0 0 0 0 0 = 0
1 0 0 0 0 0 0 0 = 128
1 1 0 0 0 0 0 0 = 192
1 1 1 0 0 0 0 0 = 224
1 1 1 1 0 0 0 0 = 240
1 1 1 1 1 0 0 0 = 248
1 1 1 1 1 1 0 0 = 252
1 1 1 1 1 1 1 0 = 254
1 1 1 1 1 1 1 1 = 255
Subnet Mask Without Subnets
Network Host
Network
172 16 0 0
Number
255
128
192
224
240
248
252
254
Network
Number 172 16 2 0
255
255
128
192
224
240
248
252
254
128
192
224
240
248
252
254
Network
Number 172 16 2 128
CISCO IOS
73
Cisco IOS
Cisco technology is built around the Cisco Internetwork
Operating System (IOS), which is the software that controls
the routing and switching functions of internetworking devices.
Non-Volatile RAM
Types of interfaces:
❑ Ethernet
❑ Fast Ethernet
❑ Serial
❑ ISDN BRI
❑ Loopback
❑ Console
❑ Aux
Router Internal Components
Router Power-On/Bootup Sequence
Step 1
The generic bootstrap loader in ROM executes. A bootstrap is a simple set of instructions that
tests hardware and initializes the IOS for operation.
Step 2
The IOS can be found in several places. The boot field of the configuration register determines
the location to be used in loading the IOS.
Step 3
The operating system image is loaded.
Step 4
The configuration file saved in NVRAM is loaded into main memory and executed one line at a
time. The configuration commands start routing processes, supply addresses for interfaces,
and define other operating characteristics of the router.
Step 5
If no valid configuration file exists in NVRAM, the operating system searches for an available
TFTP server. If no TFTP server is found, the setup dialog is initiated.
Loading the Cisco IOS Software
From Flash Memory
92
Ethernet Access with Hubs
93
Ethernet Access with Switches
94
Shared vs. Dedicates Bandwidth
If a hub is used, bandwidth is shared. If a switch is used, then bandwidth
is dedicated. If a workstation or server is directly connected to a switch
port, then the full bandwidth of the connection to the switch is available
to the connected computer. If a hub is connected to a switch port,
bandwidth is shared between all devices connected to the hub.
95
Full Duplex Transmitting
Full-duplex Ethernet allows the transmission of a packet and the reception of a
different packet at the same time.
This simultaneous transmission and reception requires the use of two pairs of wires
in the cable and a switched connection between each node. This connection is
considered point-to-point and is collision free.
The full-duplex Ethernet switch takes advantage of the two pairs of wires in the
cable by creating a direct connection between the transmit (TX) at one end of the
circuit and the receive (RX) at the other end.
96
Benefits of Switching
97
How Switches Learn Addresses
98
Switching Frames
99
ARP (Address Resolution Protocol)
Host A
ARP Request - Broadcast to all hosts
SIEMENS
NIXDORF
„What is the hardware address for IP address 128.0.10.4?“
ARP Reply
SIEMENS
NIXDORF
SIEMENS
NIXDORF
Host B
IP Address: 128.0.10.4
HW Address: 080020021545
100
RARP
Reverse Address Resolution Protocol (RARP) associates a known
MAC addresses with an IP addresses.
101
Lesson – 4 & 5
Switch / Router
Configuration
102
Router User Interface Modes
The Cisco command-line interface (CLI) uses a hierarchical structure. This
structure requires entry into different modes to accomplish particular tasks.
103
Switch Command Modes
Switches have several command modes.
104
CLI Switch Modes
Switch con0 is now available
Press RETURN to get started.
User access Verification
Password :
Switch > User Mode Prompt
Switch >enable
Password :
Switch # Privileged Mode Prompt
Switch #config terminal
Switch(config)# Global Config Mode Prompt
105
Configuring a Switch’s Name
A switch should be given a unique name as one of the first
configuration tasks.
Switch(config)#hostname TSG
TSG(config)#
106
Message Of The Day (MOTD)
A message-of-the-day (MOTD) banner can be displayed on all
connected terminals.
Switch #conf t
Switch(config)#banner motd # Welcome To Mumbai Switch #
Switch config)#^Z
Switch #wr (To save changes into NVRAM)
107
Setting Passwords
108
Configuring Enable / Secret Password
109
Configuring a Console Password
To allow connections with a password by using the login
command to tell the router to prompt for authentication.
Console Password
Switch #config t
Switch(config)#line console 0
Switch(config-line)# password <password>
Switch(config-line)# login
To allow connections without a password by using the no
login command:
Switch(config-line)# line console 0
Switch(config-line)#no login
110
Configuring a Telnet Password
To set Telnet Password
Switch#config t
Switch(config-line)#line vty 0 4
Switch(config-line)# password <password>
Switch(config-line)# login
111
The show version Command
The show version command displays following information
To find out the amount of flash memory & IOS image file name type
112
Cisco Discovery Protocol (CDP)
Display summary information about CDP neighbors.
Switch#sh cdp neighbors
113
Viewing, Saving, and Erasing Configurations
114
Show Flash Command
Switch#show flash (To show flash file information)
System flash directory:
1 -rwx 5505024 c3560-ipbase-mz.122-25.SEB4.bin
2 -rwx 150 vlan.dat
3 -rwx 226 config.text
[5505400 bytes used, 11692456 available, 16777216 total]
16384K bytes of processor board System flash (Read ONLY)
115
Lesson 6
VLANS
116
VLANs (Virtual LANs)
➢ VLAN is defined as logical grouping of network
resources & User connected to predefined ports on a
Switch, defined by Administrator.
➢ A Single VLAN is treated as a separate subnet or
broadcast domain.VLANs are used to create smaller
broadcast domain within a switch.
➢ A physical port association is used to implement
VLAN assignment.
➢ Communication between VLANs can occur only
through the router or layer3 switch.
117
VLAN Overview
• Layer 2
connectivity
• Logical
organizational
flexibility
• Single
broadcast
domain
• Management
• Basic security
118
Advantages of VLAN
119
VLAN Configuration Commands
Switch(config)#vlan vlan_id
Create a VLAN
Switch(config-vlan)#name vlan_name
Provide a VLAN name
120
Configuring VLANs
➢ Configuring VLANs in Global Mode
Switch#configure terminal
Switch(config)#vlan 2
Switch(config-vlan)#name rtsg
Switch(config-vlan)#exit
Switch(config)#^Z
Switch#
121
Deleting VLANs
➢ Deleting VLANs in Global Mode
Switch#configure terminal
Switch(config)#no vlan 2
Switch(config)#^Z
Switch#
122
Assigning Switch Ports to VLANs
Switch#conf t
Switch(config)#int fa0/24 (For Specifying single port)
Switch(config-if-range)#switchport access vlan 2
Switch(config)#int range fa0/9 – 16 (For Specifying range of ports)
Switch(config-if-range)#switchport access vlan 2
Switch(config)#^Z
Switch# sh vlan (To show vlan & port information)
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/17, Fa0/18, Fa0/19, Fa0/20,
Fa0/21, Fa0/22, Fa0/23,Gi0/1, Gi0/2
2 VLAN0002 active Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/24
123
After Deleting VLAN configuration again
ReAssign Switch Port To Default VLAN
Switch#conf t
Switch(config)#int range fa0/9 – 16 (For Specifying range of ports)
Switch(config-if-range)#switchport access vlan 1
Switch(config)#int fa0/24 (For Specifying single port)
Switch(config-if-range)#switchport access vlan 2
Switch(config)#^Z
Switch#
Switch# sh vlan (To show vlan & port information)
VLAN Name Status Ports
---- ------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24,
Gi0/1, Gi0/2
124
Procedure to Assign Mgmt. IP Address to Switch
Switch#conf t
Switch(config)#int vlan1
Switch(config-if)#ip add 172.17.0.241 255.255.0.0
Switch(config-if)#no shut
Switch(config-if)#^Z
Switch#
125
Configuring the Switch
Default Gateway
Example:
Switch(config)#ip default-gateway 172.20.137.1
126
Telnet vs. SSH Access
➢ Telnet
• Most common access method
• Insecure
➢ SSH
• Encrypted
• IP domain must be defined
• key must be generated
SSH Configuration :
username cisco password cisco
ip domain-name mydomain.com
crypto key generate rsa
ip ssh time out 60
ip ssh authentication retries 3
ip ssh version 2
line vty 0 4
login local
transport input ssh
127
Port Security
128
Configuring Port Security
SwitchX(config-if)#switchport port-security [
mac-address mac-address | mac-address sticky
[mac-address] | maximum value | violation
{restrict | shutdown}]
SwitchX(config)#interface fa0/5
SwitchX(config-if)#switchport mode access
SwitchX(config-if)#switchport port-security
SwitchX(config-if)#switchport port-security maximum 1
SwitchX(config-if)#switchport port-security mac-address sticky
SwitchX(config-if)#switchport port-security violation shutdown
129
Verifying Port Security on the switch
SwitchX#show port-security [interface interface-id] [address]
[ | {begin | exclude | include} expression]
130
VLAN Trunking
131
802.1Q Native VLAN
132
Trunking Configuration Command
133
Dynamic Trunking Protocol -DTP Modes
Mode : What the Mode Does
on : Forces the link into permanent trunking, even if the
neighbor doesn't agree
off :Forces the link to permanently not trunk, even if the
neighbor doesn't agree
desirable : Causes the port to actively attempt to become a
trunk, subject to neighbor agreement (neighbor set to on,
desirable, or auto )
auto :Causes the port to passively be willing to convert to
trunking. The port will not trunk unless the neighbor is set to
on or desirable . This is the default mode. Note that auto-auto
(both ends default) links will not become trunks.
134
Switchport Mode Interaction
135
802.1Q Trunk Configuration
Switch(config)#interface GigabitEthernet0/1
Switch(config-if)# switchport trunk encapsulation dot1q
Switch(config-if)# switchport mode trunk
Switch(config-if)#switchport trunk allowed vlan 1,5,9
Switch(config-if)#switchport trunk native vlan 1
Switch#show interfaces trunk
Port Mode Encapsulation Status Native vlan
Gig0/1 on 802.1q trunking 1
Port Vlans allowed on trunk
Gig0/1 1-1005
Port Vlans allowed and active in management domain
Gig0/1 1,1002,1003,1004,1005
136