Académique Documents
Professionnel Documents
Culture Documents
E-Mail ahmad.private.mashaikh@gmail.com
Networking Fundamentals
CCNP .CCDP
71........................................................................................
WLAN
IPs IP .
CCNA 200-120:
CCNA :
) (On Line
IP
). (WAN
CCNA
:
: IP EIGRP, VLANs, Ethernet,
ACLs.
61....................................................
59..................................................................
55.................................................................................
53..........................................................
51..............................................
45........................................................................................
27...................................................................................................OSI
25...................................................................... Protocols
12..............................................Network Architectures
11.......................................................
5 ......................................................................
Networking Fundamentals
) Level ( 1
.
.
.
. .
LAN
) (Satellite WAN
PAN
.
.
.
.
. Mesh networks
.Star networks
.Bus networks
.Tree networks
.Ring Topology
.
ARPANET Advanced
Research Project Agency Net .
) (NSF National Science Foundation
ARPANET
) (www ) (www (World
) Wide Web ) (ISOC
)( ..
Netscape Navigator. 1996 )(
.
)( . :
:
. .
: :
Local Area
Network LAN
.
500
hub switch
.
.
.
.
:
.
:
-
.
- .
-
.
-
.
.
.
.
:
- .
- .
- .
- .
- .
: MAN
) (MAN ) (LAN
.
: PAN
.
: WAN
.
: LAN
.
: CAN
.
- .
- .
- .
- .
- 20
.Workgroup
- .
Peer to Peer -
Network Architectures
: SAN
.
: GAN
.
: WLAN
.
: Star Topology
Terminator
.Backbone
: Bus Topology
- .
- .
- .
- .
- .
- .
- Client / Server
: Mesh Topology
: Ring Topology
Coaxial Cable
.
.
.
- :
Coaxial Cable . .
Twisted Pair Cable . .
Fiber Optic Cable . .
x
.
Physical Media
: Coaxial Cable -
,
. .
.
. - ,
.
.
.
.
. Ethernet
.
- : .
.
.
.
.
.
.
- :
.
.
.
. .
- :
.
AT&T
.
.
1000
Cat6
1000 .
Cat5
Cat5
16.
10.
4.
100.
Cat4
Cat3
Cat2
Cat 1
UTP 6 :
net.
mbps Thin
mbps Thick
- :
- : Buffer coating
.
- : Cladding
.
- : Core
Rj-45 :
) (Crossover cable
) (Straight cable
STP : UTP
- .
- .
- UTP :
- .
- .
- .
STP UTP :
Category 6
- .
- .
- .
- .
-
.
- ) 100/ (
200,00/.
200000 .
- 100
- .
- .
IP
) (Network Layer osi
) (packet
.
) (www
. HTML
) (HTTPS
/
.
.
.
ESMTP Extended SMTP
. POP
. 123
.UDP
IETF )(
.
IP Hosts
Workstation TCP/IP
) (IP address conflict IP
) (
.
IP
. IP
Port 0 65535
0 Port 1024
.
Protocols
.
.
.
.
.
.
VoIP.
.
Ping Packet
Internet Groper
Troubleshoot
Ping Packets 32 bit Echo Packet
.
IP /
).(TCP/IP
1994 .
x )(Routing
:
) (Layers.
OSI
7- Application layer
6- Presentation layer
5- Session layer
4- Transport layer
3- Network layer
2- Data link layer
1- Physical layer
: 7 ) (
.
- Troubleshooting.
- . Encapsulations
- OSI
Ping
Tcp/ip OSI
physical ) data link . ( Tcp
- OSI
.
-
.
-
.
: OSI Layers
: OSI
6- Presentation layer
:
.
: Application layer -
)(Application
Google Chrome Mozilla
Firefox
FTP Client
Outlook Application layer
Application
layer
. Application layer
7- Application layer
OSI Layer :
: .
: Presentation layer -
Presentation layer
Application layer
Presentation layer
png , jpeg
, gif .
Transport layer -
Session
Session
) (single
) (half duplex
,
: Session layer -
) ( Full duplex
)(Full duplex
TCP Connection oriented protocol
, UDP Connectionless
UDP
TCP
.
4-Transport layer
5- Session layer
x
.
x
) ( 0 to 1024
.
-:
- TCP
. or UDP
- .
Flow-control
: Transport layer
FTP = Port 21, Telnet = Port 23, SMTP = Port 25, DNS = Port 53,
TFTP = Port 69, SNMP = Port 161, RIP = Port 520.
TCP UDP :
UDP
TCP
.
UDP : TCP
x
. TCP
.TCP
TCP Connection-Oriented
.
UDP Connectionless
TCP
.Three Way handshake
UDP :
x
. TCP
Connection Based
Three Way handshake
, .
TCP : UDP
.
.
.
.
.
).(IMP
.
) RAM ( .
.
.
: Network layer -
Packet
Packet Transport layer
segment Network layer
segment Packet IP
Packet
routing
RIP , EIGRP , OSPF
.BGP
) (Packet ) (FRAME
) (binary data
.
)( .
) (Interface Message Processor IMP
.
3- Network layer
PC
PC
PC
Switch Core
Router
Switch , HUB
NIC, Cable
Application layer
Presentation layer
Session layer
Transport layer
Network layer
Data link layer
Physical layer
x
:
Data
Data
Data
Segment
Packet
Frame
Bites
Application layer
Presentation layer
Session layer
Transport layer
Network layer
Data link layer
Physical layer
x :
1-Physical layer
Physical layer
,
Frame
Frame BITS
.
.
.
.
PC
.
Linux )(php
) (ASP
). (HTML
TCP/IP
TCP/IP :
TCP/IP
.
:
.
.
.
TCP/IP Hardware
Software
.
DARPA .
.
1970
TCP/IP
.TCP/IP
OSI Layers
TCP/IP
. TCP/IP
.
TCP/IP
.
.
Passive Hub - .
Active Hub - .
Hybrid Hub - .
Smart (intelligent) Hub - .
x . HUB
x
.
x .
x Physical Layer
.
- : HUB
,
.
Network Devices
OSI
OSI .
Internet
Transport
Application
Network Interface
: TCP/IP
): (TCP/IP
: SOCKETS
TCP/IP
.
.
TCP/IP .
TCP/IP : IP
IP
IP.
.
x
Twisted pair
.
- : Repeater
.
-----------------------------------------------------------------------------------
- .
- .ffff.ffff.ffff
- .Mac-Address
- Mac-Address-Table .
- .OSI
- .Collision Domain
- ) . ( One to One
Mac-Address
Frame Mac-Address
Frame Broadcast
.
-
8
5
.
x Switch : Hub
- : Switch
Bridge Physical
Layer Data Link Layer OSI
Switch
.
Gateway
: External Gateway -
.
: Internal Gateway -
Gateway .
x Gateway :
- : Router
. Newtork Layer
Modem -
Router -
: ADSL
ADSL .
x :
- 10.0.0.0
192.168.1.0
.
-
Source Destination
.
- : Gateway
OSI
Router
Gateway
.
Full Duplex
Half Duplex
Simplex
-
-
-
. OSI
.
.CSMA/CD
.
- : NIC
NIC
) (Transceiver NIC NIC
MAC Address
.
---------------------------------------------------------------------------------
Bridge
- : Bridge LAN
Routing Table
.
---------------------------------------------------------------------
Multicast
---------------------------------------------------------------------
Unicast
Any Cast IPv6
.
)(Simplex
)(Full Duplex
)(Half Duplex
: Collision Domain
.
: Broadcast Domain
IP Broadcast Domain
.
Broadcast
Broadcast IPv6 . Any cast
Any cast
---------------------------------------------------------------------
: Any cast : - .
- DDOS
.
- .
-
.
x : Router Broadcast
. Collision Domain
x :
.
x Hub Repetar
LAN Switch
Router .
x :
.
:
,
.
Collision Domain
Broadcast
x Broadcast Domain 1
x Collision Domain 4
x Broadcast Domain 1
x Collision Domain 1
, .
x HUB
One Collision Domain
,
, ) ( IP
Broadcast , ffff.ffff.ffff
. Mac Address -
, .
x ,
, Mac Address
Broadcast .
1700 routers
2820 Switches
1900 Switches
700 routers
ACCESS Layer
6500 switches
12000 router
8500 switches
6500 switches
4000 switches
4000 routers
3600 routers
4000 switches
DISTRIBUTION Layer
CORE Layer
- : Core Layer
Distribution
.
- : Distribution Layer
Access Layer ) (Vlan
.
- : Access Layer
,
.
x
.
1- Access Layer
2- Distribution Layer
3- Core Layer
Collision Domain
.Broadcast Domian
x :
A . B
Broadcast A and B . Collision Domain 3x Broadcast Domain 2
x Collision Domain 5
CD : BD
(00000000) x 8
8 Bit Byte
32
.
x : Byte
8
0 1 8
:
x : Bit 0 1
.OSI
x 32 bit
Octet
.
x 8
255
8 .
x bit Byte
IP
.
IPv4 Address
.
Internet protocol
x IPv4
IP
.
A , B , C , D , E :
x
x
x
x
0.0.0.0 = 00000000.00000000.00000000.00000000
255.255.255.255 = 11111111.11111111.11111111.11111111
255.255.255.255 IP
11111111.11111111.11111111.11111111
.
0.0.0.0 IP
00000000.00000000.00000000.00000000
.
IP
8 32
8 0
8
:
255.255.255.255
0.0.0.0
- : Decimal System
0 255
:
IP 8
32 .
11111111.11111111.11111111.11111111
00000000.00000000.00000000.00000000
- :Binary System 0 1
:
x IP
.
A , B , C , D , E
A , B , C D , E
:
A B C
.
:Class D .
:Class E .
IP Address Class
2^7 = 128
2^6 = 64
2^5 = 32
2^4 = 16
2^3 = 8
2^2 = 4
2^1 = 2
2^0 = 1
0 7 :
8 .
: . IP
128 64 32 16 8 4 2 1
N Network H Host C
2,097,152 C
255 .
192.168.1.0
N. N. N. H
x C
, :
Subnetmask B 255.255.0.0 .
N Network H Host B
65,534 B
16,384 .
150.1.0.0
N. N. H. H
x B
, :
N Network H Host A
126 A 16,777,216
.
10.0.0.0
x A
:
N. H. H. H
x
.
IP
.
8 byte 8 bit
8 IP
.
Subnetmask C 255.255.255.0 .
8
:
x 1
1
0 .
x
:
0 0 0 0 0 0 0 1
128 64 32 16 8 4 2 1
x 50
50
32 16 2 50
32 + 16 + 2=50 50
1 32 , 16 , 2
0 .
1 1 0010
0 0
128 64 32 16 8 4 2 1
x 168
168
128 64 168
128 32 8
128 + 32 + 8 = 168
168 1
128 32 8 .
0 1 0 0 000
128 64 32 16 8 4 2 1
192
192
128 + 64 1
.
x 192
192 192 128
128 1 128
128 192 192
192 64
1 , 64 128 + 64= 192
0 0 0 000
1 1
128 64 32 16 8 4 2 1
- :
192.168.50.1
8
.
- .
-
0 . 1
- .
8
byte . 32 byte
255.255.255.255
255 = 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1
255 8 byte :
1 1 1 1 111
128 64 32 16 8 4 2 1
:
.
- ISP
Public IP Address .
255.255.255.255
-
.
- : E 239 254
169.254.0.0
- APIPA
. IP
127.0.0.1
-
-
-
-
1.0.0.0 : A 126.255.255.254
: B 172.16.0.0 172.31.255.254
192.168.0.0 : C 192.168.255.254
239.0.0.0 : D
IPv4
00000000 = 0
10000000 = 128
11000000 = 192
11100000 = 224
11110000 = 240
11111000 = 248
11111100 = 252
11111110 = 254
11111111 = 255
IP
:
-----------------------------------------------------------------------------------
126.50.1.1 A :
172.16.1.1 B :
192.168.50.1
:
-
-
-
-
x
-
IP
A
Subnetting
.
:
Broadcast
Broadcast
.
.
.
.
.
:Subnetting
IP .
IP Subnetting
-
. VLSM
- Subnet Mask
.
- Packet Default Router
.
Class Less
- IP Classes .
- Subnet Mask
.
- Packet
. Routing Table
Class Full
x
x
/8
/16
/24
/8
Class A
Class B
Class C
Class D
0-127
128-191
192-223
224-239
255.0.0.0
255.255.0.0
255.255.255.0
255.0.0.0
10.31.255.255
10.31.255.254
10.63.255.255
10.95.255.255
10.127.255.255
10.127.255.254
10.96.0.1
10.96.0.0/11 255.224.0.0
10.95.255.254
10.64.0.1
10.64.0.0/11 255.224.0.0
10.63.255.254
10.32.0.1
10.32.0.0/11 255.224.0.0
10. 31.0.1
10.0.0.0/11 255.224.0.0
10.0.0.0/11 255.224.0.0
:Block size
Block size 32
64 Block size .
2^1 = 2 2
2^2 = 4 4
2^3 = 8 8
8 3
5
.
Subnet mask 255.224.0.0
. 128 + 64 + 32 = 224
CIDR /8
/11 11 /8
. 1 + 1 + 1 + 8 = 11
1 1 1
128 64 32 16 8 4 2 1
1
^
5 .
128 , 64 , 32 1
^
:
1 1 1
128 64 32 16 8 4 2 1
10.0.0.0/8 255.0.0.0
x
.
) 10.0.0.0/8 ( A 10.0.0.0/8 255.0.0.0
8
.
8 :
CIDR /24
/27 27 /24
. 1 + 1 + 1 + 24 = 27
x A
.
2^1 = 2 2
2^2 = 4 4
2^3 = 8 8
8
.
1 1 1
128 64 32 16 8 4 2 1
128 , 64 , 32 1
^ :
1
^
8 .
1 1 1
128 64 32 16 8 4 2 1
192.168.1.0/24 255.255.255.0
8 :
10.159.255.255
10.191.255.255
10.223.255.255
10.255.255.255
10.255.255.254
10.224.0.1
10.224.0.0/11 255.224.0.0
10.223.255.254
10.192.0.1
10.192.0.0/11 255.224.0.0
10.191.255.254
10.160.0.1
10.160.0.0/11 255.224.0.0
10.159.255.254
10.128.0.1
10.128.0.0/11 255.224.0.0
192.168.1.159
192.168.1.158
192.168.1.31
192.168.1.63
192.168.1.95
192.168.1.255
192.168.1.254
192.168.1.127
192.168.1.126
192.168.1.255
192.168.1.96/27 255.255.255.224
192.168.1.97
192.168.1.224/27 255.255.255.224
192.168.1. 223
192.168.1.222
192.168.1.94
192.168.1.193
192.168.1.64/27 255.255.255.224
192.168.1.65
192.168.1.192/27 255.255.255.224
192.168.1.191
192.168.1.62
192.168.1.190
192.168.1.32/27 255.255.255.224
192.168.1.30
192.168.1.1
192.168.1.0/27 255.255.255.224
192.168.1.33
192.168.1.161
192.168.1.160/27 255.255.255.224
192.168.1.129
192.168.1.128/27 255.255.255.224
: 4 Colon
2005:5::100::70 Colon
.
2005:5:100::70
Colon :: :
2005:5:100:0:0:0:0:70
0005
:
2005:0005:0100:0:0:0:0:070
2005:0005:0100:0000:0000:0000:0000:070
x
IPv6 Address
Format :
64 bit Network ID
64 bit .Host
fec80:0000:0000:0000:0c41:1536:3f57:fef5 IPv6
BroadCast Any Cast .
: IPv6
- 340
4.3 .
- IP Header v6 IP Header v4
IP Header .
-
.
-
.
-
IPsec
IPsec .
- BroadCast
Any Cast
.
: IPv6
: IPv6 ) ( IPv4
IPv6
). (IPv4
x 128 bit
Octet 16
hexadecimal
16
.IPv6
IPv6
: NAT
NAT-PT
.
x IPv4 : IPv6
IPv4 IPv6
, Transition IPv4 to IPv6
----------------------------------------------------------------------------------
Loopback interface
127.0.0.1 . :1
Private IP Address
.Unique-Local Address
APIPA
.Link-Local Unicast Address
IPv6
:IHL x IP 32 bit
. 4 bit
x :Version
IPv4
Header .4 bit
x
.
x IPv4 Header 14 .
-----------------------------------------------------------------------------------
IPv4 Header
IPv6 Header .
x IP Header Header
Header
Header
IPv4 Header IPv6 Header
.
-----------------------------------------------------------------------------------
: Destination Address x IP
128 bit
128 bit .
: Source Address x IP
128 bit
32 bit . 128 bit
: Flow Label x
.
x :Version
IPv6
Header .4 bit
:IPv6 Header
IPv4 Header 14 8
8 .
IPv6 Header
Padding x :Data
.
-----------------------------------------------------------------------------------------
:Options x
0 .32
: Destination Address x IP
. 32 bit
: Source Address x IP
. 32 bit
: Header Checksum x
.
: Protocol x
. 8 bit
: Time to live x
. 8 bit
: Fregment Offset x
. 13 bit
: Flags x
. 3 bit
: Identification x
. 16 bit
: Total Length x
.16 bit
: Type of Service x
. 8 bit
220............................................................................Passive Interface
213...........................................................
119................................................................................Routing
104.......................................................................Password Recovery
98...........................................................................Router Passwords
90.......................................................
Routing Networks
Routing Networks
Level ( 2 )
123456-
-
-
-
-
-
-
: Router Components -
x
.
Devices Router
-
-
-
-
-
-
: Boot Sequence
Post = Power on self-Test
Boot Strap
ISO = Internetwork OS
RAM
Startup Configuration
NVRAM RAM
Running Configuration
.
:
.
:
) (DCE ) (DTE
) (Cisco 2522 .
) (DCE/DTE
: Port Serial
DCE = Data Communication Equipment -
DTE = Data Terminal Equipment -
:Console Port
Console
.
:Auxiliary Port
.
:LAN Interfaces
.
:WAN Interfaces
.
: Interface
:NX-OS .
:IOS-XR
.
Router (config) #
Router (config-router) #
Router (config-subif) #
Router (config-if) #
:IOS XE IOS
.
Router #
:IOS .
> Router
Cisco IOS
- - . - . .
> Rommon 1
Rommon Mode
Setup Mode
>?
> enable
# disable
> terminal history size
All Command
To get to Privileged Mode
To get back to User Mode
To set the command buffer
size
Router > terminal no editing
To disable advanced editing
features
Router > show history
To show the command buffer
Router # config t
Enter global configuration
mode
Router # show version
View IOS version
Router # show interface
Display interfaces on router
and their status
Router # show ip interface brief
Check interface status
Router # show ip protocol
Display ip protocol info
Router # show protocol
Display which protocols are
configured on the router
Router # show flash
View IOS version, size of
IOS, and free space in
FLASH
Router # show running-config
View current configuration
file (RAM)
Router # show startup-config
View saved configuration file
(NVRAM)
Router # show processes cpu
View CPU utilization
Router # show processes
View info about programs in
RAM
Router # reload
Reboot the router and reload
the startup config from
NVRAM
Router(config) # no ip routing
Disable IP routing on a router
(enabled by default)
Router(config)# hostname Router1 Give the router a hostname
Ctrl+A
To move to the beginning of
the command line
Router
Router
Router
Router
Router
Basic Command
Ctrl+E
https://www.itechtics.com/download-cisco- ..........
/packet-tracer-6-2-free-direct-download-link
-
-
-
-
. Next
.Next
Next . Install
.
.Finish
......
: Packet Tracer ,
.
No :
Console
.
Console
.
x :
Router Passwords
Router -
Switches -
Hubs -
Wireless Devices -
Connection -
End Devices -
-
-
-
-
-
-
-
Router # config t
- : Aux
Ctrl + C Router # .
Router # config t
Router # config t
- : .
Service password-encryption
Router # config t
. Port Aux - .
: Enable
Password Recovery
Enter
, Enter
.
-------------------------------------------------------------------------------
. Enable
.
:
Router # copy running-config startup-config
Ctrl + C . Rommon
: Ctrl
+ C . Rommon
:
.
-
-
-
-
Console .
Ctrl + C .
.Rommon
Rommon > confreg 0x2142 Enter
Rommon > reset
.
Aux
No :
Console
Enter .
Show running-config -
OK
.
Show running-config .
- Enable .
vty
PC 2
. vty
: Telnet
TCP/IP
.
: ) (Telnet ) (Telnet )(
:
) (Telnet ) (Telnet
.
LAB
x Telnet
Cisco Packet Tracer Student .
. Telnet
Source Telnet
.
. Telnet FTP Client
.Telnet
. Telnet POP Mail
POP
Mail . Post Office Protocol
- : Telnet
No
0/0
vty .
IP :192.168.1.1 -
Mask : 255.255.255.0 -
GY : 192.168.1.100 -
PC 2
, .
GY : 192.168.1.100 -
Mask : 255.255.255.0 -
.IP : 19.168.1.1 -
Router # config t
0 0 4
: - . vty
x vty :
vty .
192.168.1.100 0/0 up up .
Router # config t
Ctrl + C
0/0 up
.
- :
PC 2 Command Prompt :
vty
SSH
vty
.
- :
Distance Vector
Direct
Connected
IGRP
Static Routing
EIGRP
Default
Routing
Routing Table
Link Status
OSPF
Dynamic
Routing
x router
IP address
data link layer Ethernet token-ring
.
x
:
-
-
: Network ID
: Network mask mask IP network
IP
: Gateway
: Interface Interface
"
Interface
: Metric
x :
-
-
x
-
: Routing Table
) ( .
.
IP TCP/IP
.
IP
) (
) ( .
) (route print
) (command prompt
.route delete, route change , route add :
" .
x : Routing Table
Routing Table
Packet
.
x : Packet
Interface
Routing Table .
: Packet
.
: Routing
, Packet
.
Routing
Classful Classless
, IP .
-
Distance Vector
IGRP RIP v1 RIP v2
.
-
Link Status Protocol
OSPF EIGRP
.
Dynamic Protocols
Packet
.
:Dynamic Routing -
:Dynamic Routing -
,
.
:Default Routing -
, ) ( 1
" " S ip : 0.0.0.0 mask :
0.0.0.0 Gy : 192.168.1.100
.
:Static Routing -
,
" " S ) (Static
) (1 ) (0
.
:Direct Connected -
, " " C
) (Connected ) (0
.
- :
Mask: 255.255.255.0 .
IP: 192.168.1.1 .
PC 0
f0/0 .
GY: 192.168.1.100
Mask: 255.255.255.0 .
IP: 192.168.1.0/24 .
x ) : Network ( 1
- .
- .
Routing
x :
.
x Routing Protocols
Routed Protocols :
f0/1 . Router 0
Router 1 Router 1
Router 0 f0/1
x ) : Network ( 3
GY: 192.168.2.200 .
Mask: 255.255.255.0 .
IP: 192.168.2.1 .
PC 1
GY: 192.168.2.200
f0/0 .
Mask: 255.255.255.0 .
IP: 192.168.2.0/24 .
x ) : Network ( 2
GY: 192.168.1.100 .
Router # config t
No ................
- 192.168.1.0/24
Router 0
-------------------------------------------------------------------------------
Mask: 255.0.0.0 .
.Router 1
.Router 0
IP: 10.0.0.0/8 .
x .
Router # config t
- 192.168.2.0/24
No ................
Router 1
-----------------------------------------------------------------------------------
10.0.0.0/8
Router 1 .
10.0.0.1 . f0/1
. Router (config-if) # end
RAM .NVRAM
Router # copy running-config startup config
Router # config t
Up or Down
x
:
x
192.168.1.0/24 192.168.2.0/24
10.0.0.0/8
Static Routing
.
Router # config t
10.0.0.2 . f0/1
. Router (config-if) # end
RAM .NVRAM
Router # copy running-config startup config
Router # config t
10.0.0.2
192.168.1.0/24 192.168.2.0/24
. Router 1
192.168.1.0/24
.
: Router 1
10.0.0.0/8 192.168.1.0/24
" " C ,
192.168.2.0/24
192.168.1.0/24 Router 1
Router 1
:
Router 0
Router 0
:
Router # show ip route
192.168.1.0/24
.
Router 1
Router 1
:
-----------------------------------------------------------------------------------
Router 0 Router1
192.168.1.0/24 .
192.168.2.0/24 10.0.0.2/8
: Router 0
Router # show ip route
192.168.2.0/24 .
Router 0
Router 0 :
Router 0
x 192.168.1.0/24 192.168.2.0/24
10.0.0.0/8 .
x
Ping .
x Ping
:
Router # config t
Router 1
Router # show ip route
192.168.2.0/24 .
x
.
x Static Routing
. Static Routing
-------------------------------------------------------------------------------
PC 0 192.168.1.1 4 packet .
PC 1 192.168.2.1 4 packet .
PC 0
Router 1
RIP
, RIP
.......
: Distance Vector
RIP 15 15
15
15 . Hop Count
RIP2
) (OSPF
IS-IS RIP IPv6
RIPng) RIP ( .1997
x
.
: RIP IGP
RIP
.
x 15 .
x RIP
.
x RIP . 120
x
.Routing Table
x Distance Vector
. Protocol
x Application
. Layer
:RIP
. RIP
) ( .
15 RIP.
RIP . RIP
UDP . 520.
: RIP
) (Bellman-Ford
1967 . ARPANET
: Metric
AD metric
RIP metric
EIGRP
Bandwidth, Delay, Reliability, Load
metric , OSPF bandwidth
AD metric.
x Administrative distance .
x : Administrative distance
Administrative distance
Routing protocol Administrative
distance
AD
.
x PC 1
192.168.1.0/24
192.168.4.0/24 PC 4
,
.
224.0.0.9
120
15
RIPv2
x RIPv2 224.0.0.9
x RIPv1
x 255.255.255.255
4 4
RIPv1 1 2
RIPv1 1
2 Broadcast 255.255.255.255
1
2 3 4 3 4 RIPv1
3 IS-IS 4
OSPF
1 2
RIPv1
RIPv2 .
255.255.255.255
120
15
RIPv1
RIPv2
AD metric
x
-
-
-
RIPv2 ........
:
. 192.168.5.0/24
. 192.168.10.0/24
10.0.0.0/8
192.168.5.0/24 192.168.10.0/24
.RIPv2
RIPv2 R1 R2
.
R1 R2
.
RIP
RIP Configuration
Router # config t
- : RIP Configuration
R1 R2
RIPv2 R1 R2
224.0.0.9
RIPv2 .
RIPv2
RIPv1
Router # config t
: R1 -
R1 RIPv2 . R2
Router # config t
. RIPv2
R1
.RIPv2
R1
RIPv2
: R2 R1
Router # show ip route
R2
. R2 RIPv2 -
Router # config t
Router # config t
: R2 -
-------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
: RIP EIGRP
OSPF
RIP
EIGRP OSPF
.
Packet Packet .
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
!!!!! .
R1
-----------------------------------------------------------------------------------
R2
!!!!!
R2
OSPF
OSPF UDP
. 89
RIP
(BGP) . OSPF .
OSPF.
(ABR). ABR
.
) 0( 0.0.0.0
OSPF
OSPF
.
32
IPv4.
) (
.
.
OSPF
.
OSPF -
- .
) (LSDB .
LSDB OSPF
: OSPF )(IP
) ( .
.
) (BGP
.
: link
state .
Autonomous System . OSPF
) : ( OSPF link
state . Link State
Routing
OSPF
,
,
OSPF
.
OSPF
OSPF .
x
x
x
x
x
x
x
x
x
x
x
x
x
.Standard
. Link State Protocol
.Open Source
SPF = Shortest Path First OR Dijikstra
.Algorithm
.IP = Internet Protocol
IPx . Apple Talk
SPF .
. Has Unlimited hop count
.
.Administrative Distance 110
VLSM . Subnetting
Classless .
4 Load
.Balancing to 4 equal Paths
Triggerd Update and
.Periodic Update
: ) (Topology Table
) (Neighbor Table ). (Routing Table
.Area
.Cost
it is the Metric .
.
OSPF OSPF Routers
224.0.0.5 . OSPF DR 224.0.0.6
Area 0
. Backbone Router
Backbone Router -
OSPF - :
- 5 :
OSPF
.
OSPF Routers
OSPF
-----------------------------------------------------------------------------------
Area 0 Area 1
Area 0 .
Area 1 , Area 2 Area 0 Area 1 ,
. Area 2
- : Area
. Area 0
Area 0
Area 0
Area 0
Area x : OSPF
.Area0
-----------------------------------------------------------------------------------
Frame Relay . MPLS
DR . DBR
OSPF
.
OSPF
(BDR) :
) ( DR
) . ( DR
(DR):
.
) (DR ) (NBMA .
NBMA
.
Designated Router = DR -
OSPF OSPF
OSPF
OSPF .
Area
Area Area 0
Area 100 Area 0 Area 100
ABR .
Area 1 Backbone
Router . Area 1
Internal Router -
: Down State -
OSPF
OSPF
Hello
Packets
Hello Packets 224.0.0.5 Multicast
Point to Point Broadcast
Frame Relay
.Unicast
OSPF
OSPF
5
.
OSPF
) (2
:Exstart State -
DataBase Description DBD
.
-
Link-State Update LSU ..
Router LSAck
..
area .. Routers
. Full-State
- Router
..
up-to-date .. Link-
State Request LSR ..
LSR . Loading State
- DBD Link-
State Acknowledgment .LSAck
: Exchange State -
DBD Router ID
Summary DBD
Sequence numbers
. DBD
) (1
: Router Priority -
OSPF ).Priority Default (1
:
Router # show ip ospf neighbor
Router ID
..........
: Router ID -
OSPF . BMA
Hello Packets
.
x : Hello Packets
1- Router ID
2- Router Priority
3- Hello (default 10s for broadcast network, default 30s for nonbroadcast network) and dead (4 times of hello) timers.
4- Authentication password.
5- Area ID
6- Subnet Mask
7- Designated router and backup designated router is ip address
8- Known neighbours
: Hello Packets -
.
OSPF .
5 .
LSA 0x80000001 0x7FFFFFFF . LSA
OSPF
: Area ID - Area 0
Area 100 .
:
.
-
default 10s for broadcast network
.
- PPP
MPLS Frame Relay
default 30s for non-broadcast network
.
- 40
4 itmes of hello 10
4
.
.
Router # show ip ospf interface
: Authentication password -
.
Hello (default 10s for broadcast network, default 30s for non- -
broadcast network) and dead (4 times of hello) timers.
:DBD Header
Header 31 Bit
Header Hello Packets
.
: Known neighbours -8
.
.........
: OSPF
Wildcard Mask Wildcard Mask .
: Subnet Mask -
.
3-Advertising Router
2-Link State ID
.LSR
Header
Header 32 Bit
:LSR Header
: Data -
.
: Authentication -
.
: AuType -
.
: Checksum - .
: Area ID -
ID .
:Router ID -
OSPF .
x
x
x
x
x
Hello Packets .
Data base Description .
Link State Request .
Link State Update .
Link State Acknowledgment .
:Type -
:
:Version - OSPF
.
:Advertising Router -
.
:Link State ID -
.
x Neighbor Table
.
x Routing Table
.
x LSDB
.
:LSU
Header Header 32 Bit
.
: Length - LSA .
:Advertising Router -
IP .4 bits
: Link State ID -
OSPF IP
.4 bits
: LS Type - LSA
.1 bits
: Options - OSPF
OSPF .1 bits
: LS Age - LSA
. 2 bits
:LSAck
Header Header 32 Bit
.
11 7
7 :
x Hello
Packets .OSPF Header
OSPF x
.background network
x
.
R1 R2
.
LSA .
R2 LSA . LSU
R2 DBD R1 LSR R1
. R2
R2 DBD R2 :
:Priority - Priority
Priority Default 1 0
255 0
DR BDR
Priority Default 1 Priority Default 2
DR Priority Default 2
Priority Default 1 BDR
Priority Default 1
RID .
Attached Router
.
header LSA headers
LSA
LSA headers
.
x :
DR and BDR
:Loopback IP Address -
100.100.100.100
200.200.200.200
DR BDR
.
:224.0.0.5 x DRother
.
:224.0.0.6 x DR BDR
.
: BMA
Frame
Relay PPP
DR
.BMA
DR DR
OSPF DR
Broadcast
.
OSPF DR BDR
OSPF
.
: DR
.
x
OSPF
DR BDR 10.0.0.0/8
DR . BDR
x OSPF 7
.
x 7
Area :
. . 192.168.1.0/24
. . 192.168.2.0/24
. . 192.168.3.0/24
. . 192.168.4.0/24
. . 192.168.5.0/24
. . 192.168.6.0/24
. 10.0.0.0/8 Area 0
.
OSPF
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
Process id
Router # config t
- : OSPF Configuration
- Process id 1 65,535
Router # config t
-----------------------------------------------------------------------------------
: R2 -
Router # config t
: R3 -
R2 R1
.
-----------------------------------------------------------------------------------
Router # config t
: R1 -
R4 R3
.
R5 R4
.
Router # config t
: R6 -
-----------------------------------------------------------------------------------
R6 R5
.
Router # config t
: R4 -
Router # config t
-----------------------------------------------------------------------------------
: R5 -
- R2 :
x 7
R1
OSPF
OSPF
7 ,
. OSPF
R1
- R1 :
OSPF O O . OSPF
-----------------------------------------------------------------------------------
R6
OSPF .
R4
R2
R3 R4 R5 R6
:
10.0.0.0/8 Area 0
10.0.0.0/8
10.0.0.1 10.0.0.2
BMA
.
7 R2 .
R3
DR 192.168.1.1
R1
.
BMA Point-to-Point
.
R2
R2 .
R1 DR
DR R2
DR
BDR 192.168.3.1
.
R1
DR BDR
OSPF :
7 Backbond
Area 0 10.0.0.0/8 .
R6
R5
Router # show ip ospf neighbor
OSPF R1 :
Router # config t
Router # config t
- R2 :
-----------------------------------------------------------------------------------
R1 R2
.
- R1 :
R1
OSPF
.
. . 192.168.1.0/24
. . 192.168.2.0/24
. 150.0.0.0/8
.
x
OSPF
DR BDR 10.0.0.0/8
DR . BDR
x OSPF 3
.
x 3
Area :
OSPF
.Cisco Routing Protocol
EIGRP Enhance to IGRP
EIGRP .EIGRP
EIGRP
Link Status Protocol
.Distance Vector
Netxt Hop Count 224
. EIGRP
Dual
.
.
.Triggered Update
Periodic Update
.
.224.0.0.10
OSPF
EIGRP .
= Autonomous System
AS OSPF .Area
Administrative distance 90 EIGRP
EIGRP
.
EIGRP
R2
!!!!! R2 .
DR . BDR
R1
R1 Ping R2 !!!!!
.....
...........R1
-----------------------------------------------------------------------------------
R2
.
EIGRP .
5 .
- : Hello Packet
EIGRP
Hello Packets, Update Packet, Query Packet, Relpy Packet, ACK Packet
EIGRP
EIGRP Table
EIGRP
Metric .
- Topology Table
EIGRP
. EIGRP
- Neighbor Tabe
.
.
.MD5
.IP, Apple Talk , IPx
.
EIGRP UDP . TCP
.Network Layer 3
Summarization .
CIDR . VLSM
.Classless
Header .
1- Version
2- Opcode
- Flags
- Sequence
- Ack
- Autonomous System Numbers
3- Check sum
4- TLVs / EIGRP Message
- :
x
.
: Hello Packets
EIGRP Message Format
.
: ACK Packet -
.
:Version .
: Opcode
.
: Flags Header .
: Sequence .Header : Ack AS AS .
:Autonomous System Numbers .
: Check sum .
: TLVs
.
------------------------------------------------------------------------------ : Update Packet -
EIGRP
.
ACK
.
: Query Packet -
Dual ACK
.
EIGRP ,
AS AS 1
AS 1
.
x 7
.
1- Hello Packet
2- Hello + Update
3- Ack
4- Modify Topology Table
5- Update
6- Ack
7- Modify Topology Table
- 224.0.0.10 . Multicast
: Periodic Update
.
: Triggered Update
.
Frame Relay , MPLS 60
180
.
Hello Packet 5
15 .
: EIGRP x
.
EIGRP
EIGRP .
x .Successor
x .Feasible Successor
1234-
AS = Autonomous System
AS 100 AS 200 AS
AS
EGP , BGP . AS
AS
AS .AS
- AS AS :
:AS
AS EIGRP
AS
Exterior .
EIGRP
x : EIGRP
.
f 0/1 R1 .HOST1
R1
HOST1
... R1
Router (config) # router eigrp 1
Router (config -router) # passive-interface fastethernet 0/1
Passive
Interface .
R2 R3
R1
.
: Load Balancing x .
:Load Balancing .
EIGRP
: Passive Interface
.
Passive Interface
Router # config t
- R1 :
EIGRP
.
x EIGRP 7
.
x 7
AS :
. . 192.168.1.0/24
. . 192.168.2.0/24
. . 192.168.3.0/24
. . 192.168.4.0/24
. . 192.168.5.0/24
. . 192.168.6.0/24
. 100.0.0.0/8
.
. . AS 1
EIGRP
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
AS number 1
Router # config t
- : EIGRP Configuration
R2 R1
.
R3 R2
.
Router # config t
: R3 -
: R4 -
-----------------------------------------------------------------------------------
R4 R3
.
Router # config t
: R2 -
Router # config t
-----------------------------------------------------------------------------------
R6
. EIGRP
Router # config t
Router # config t
: R6 -
-----------------------------------------------------------------------------------
: R5 -
-----------------------------------------------------------------------------------
R5 R4
.
R6 R5
.
R2 7 R2
.
100.0.0.0/8
100.0.0.0/8
100.0.0.1 100.0.0.2
BMA
.
x R3 R4 R5
R6
:
- R2 :
x R1
7 R1
EIGRP
EIGRP
7 ,
. EIGRP
R1
- R1 :
x : EIGRP D
D .EIGRP
R2
.
Router > enable
R4
R5
R3
R6
Router> enable
- R1 :
-
-
-
fec1::1/64
fec2::1/64
2001::1 /64
- : 3
- .
Router # config t
x
IPv6
.
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
IP Address v6 -
Static Router IPv6 -
Routing Information Protocol Next Generation (RIPng) -
Enhanced Interior Gateway (EIGRP) -
Open Shortest Path First (OSPFv3) -
IPv4
IPv6 :
-----------------------------------------------------------------------------------
x
7
100.0.0.0/8 EIGRP
.
: R2 -
:R1
Router # config t
: R2
Router> enable
Router # config t
Router # config t
R1 R2
R1
Ping :
R2 R1 !!!!! .
R2
:R2
R2 :
Router # config t
C
S
S Static L
APIPA
FEC1::2/64
FEC2::2/64
.2001::1/64
R1
: R1
- R1 :
.
.
.
fec1::1/64
fec2::1/64
2001::1 /64
- : 3
- .
-----------------------------------------------------------------------------------
x RIPng
Process ID Process ID
.
-----------------------------------------------------------------------------------
Process ID
x : RIPng
)(RIPng
x
. EIGRP , OSPFv3 , RIPng
IPv6 :
- R2 :
RIPng :R1
Router # config t
Router> enable
- R1 :
RIPng
R2 RIPng . R
R2 RIPng .
R1 RIPng R
] [120/2 .
x RIPng
:R2
Router # config t
Router> enable
x RIPng
R1 :
Router # config t
Router> enable
- R1 :
OSPFv3
.
.
.
.
fec1::1/64
fec2::1/64
2001::1 /64
- : 3
- .
-----------------------------------------------------------------------------------
x OSPFv3
Process ID
Area ID
.
-----------------------------------------------------------------------------------
Process ID
x : OSPFv3
:OSPFv3 OSPF
OSPF OSPFv3
IPsec Authentication Encryption
FF02::5 / FF02::6
OSPFv3 OSPF
.224.0.0.5 / 224.0.0.6
Router # config t
Router> enable
: R2 -
-----------------------------------------------------------------------------------
.OSPFv3 -
R2 . OSPFv3
R1 O OSPFv3
. [ 110/2]
R1
Process ID
x : OSPFv3
:EIGRP
IPv6, Interior
Gateway
224.0.0.10 FF02::A
Router-ID .AS
Router # show ipv6 ospf neighbor / Router # show ipv6 ospf database
R2 .BDR
R2
R1 DR R2 .
R1
R2 OSPFv3 . O
R2
: Split Horizon
.
:
1- Maximum Hop Count
2- Split Horizon
3- Route Poisoning
4- Hold Downs
5- Periodic Updates Triggered Updates
- . BGP
BGP , EGP
.
OSPF ,
.EIGRP , RIP,
- :
: BGP
ISP
.
Baisics
BGP BGP .
1- Neighbor Table
List of BGP Neighbors BGP peers, Configured statically
2- BGP forwarding database table
List of all Networks learned from each neighbor
3- IP routing table
-----------------------------------------------------------------------------------
x
x
x
x
x
x
x
x
: BGP
BGP
.
BGP . EGP
BGP AS
. EIGRP
.
BGP .Path Vectory
TCP
.
BGP Peers Table , Topology Table
.Routing Table
BGP .
BGP
BGP .
.
BGP .
BGP .
Application TCP
. Port 179
BGP
, BGP
.
30 Sec
AS
5 Sec .
.
Admin distance 20 BGP Ex
BGP In . Admin distance 200
. Vlsm , CIDR , Classless
. Split-horizon
:Established State
.
: Open Message
ID.
BGP
.
3- Update Message
4- Keepalive Message
1- Open Message
2- Notification Message
x BGP
:
BGP
BGP Messages
-----------------------------------------------------------------------------------
:Neighbor Table
.BGP
- :
: Keepalive Message
60 Sec
.
:Open Confirm
.
:Active 2 State
.
:Open Sent
.
:Connect State
.
:Active 1 State
.Active
:Idel State
.
x BGP
.
-----------------------------------------------------------------------------------
: Notification Message
.
: Update Message
.
- AS AS AS.
Route reflector - .
339.................................................................Ether Channel
333...............................................................................Port Channel
Loops
.Loops Network
Synchronization
308.......................................................................Router on a Staick
270...................................................................................Switch
260..............................................Ethernet LANs
:Synchronization x BGP
Rule IBGP
IGP
.
BGP Synchronization
) Level ( 3
ThinNet 5
Mbps 10 BaseBand
) (Network Span 925
30 500 Base2 10
Base 2
(Coaxial Cable) :
ThickNet 10 Mbps 10
BaseBand ) (Network Span
2500 100
500 Base5 10
Base .
) (Data Rate:
): (Medium
x : Ethernet
.
: Ethernet : Mbps Fast Ethernet : 10
Mbps Giga Ethernet : 100 Gbps 10 Giga
Ethernet 1 . Gbps 10
: Ethernet
) (frames
) (workstations ) (LANs 1
physical layer 2 data link layer
OSI Model
- 1 OSI -
-
OSI - MAC Address
).( Data Link Layer
WAN . Router
: Ethernet Token
Ring
.
Ethernet LANs
x Header Tralier
Data and Pad
Header ,
.
IEEE :
8023ab = 1 GB
802.3u = 100 MB
802.3at = POE
802.3ae = 10 GB
UTP .-.
Mbps 10 BaseBand
) (Network Span 500 100
. BaseT 10.
10
Broad36 .-. Mbps 10
BroadBand )(Network Span
3600 1800.
-----------------------------------------------------------------------------------
Length Bytes 2
MAC- client data . data
: Ethernet 802.3 :
Preamble Bytes 7
Source Destination
.
Framing Data Link Layer 3
Network Layer 4
IP Packets .
0800 IP
protocol 8137
. Protocol IPX
Length/Type Field
Bytes 4
Frame Check Sequence FCS
) (Cyclic Redundancy Check CSC
DA
FCS
FCS .
Switch Ports
DCE - Hub Switch - DTE -
. Switch
Node Switch
) (Switched Networks Collision Free .
Switch :
Bridge
) ( ) (.
Bridge Hub
.. Bridge Hub
.
Bridge :
Hub Frame
Segment
.
Hub :
(Data communication
) equipment DCE
( Repeater
Hub( Bridge Switch Routers
Segment
Network Interface Cards NICs
.
Segmentation
..
)( ..
Segmentation :
Segmentation :
:
..
) (grambled
/
) (back off time/delay
.
: ""
Carrier
..
. :
)
( .
: A B C D Medium
Segment.. A B
A
MAC D A
) C D ( .
) (BroadCast
.
.
x :
.
Forward filter Table
Content Addressable Memory Physical Address MAC
Address Table
-----------------------------------------------------------------------------------
Switch ..
Segment Switch
port
.
. ) (Data Link OSI
: Ethernet Hardware
)adapter address , physical hardware address Address (EHA
address.
-----------------------------------------------------------------------------------
TCP/IP
IP ) (ARP Address Resolution
Protocol ) (IPv4) (NDP Neighbor Discovery
Protocol (IPv6). broadcast
Ethernet ( Frame (
. Data
link OSI
.
Address learning :
x
MAC - Address
Broad Cast: ffff.ffff.ffff
....
x
.
1- Address Learning
2- Filtering / Forwarding Deision
3- Loop Avoidance
x
.
: Switch Hub
Source MAC Address
.
Switch
Frame .........
Frame Frame
PC2 PC3
....
Loop
Frame PC1 .
Loop Avoidance :
) ( Switch
STP .
: Automatic Buffering -
Frame FCS check Header
,
.Buffering
: Cut Through -
Frame
:
(Switch) Frame
All Command
Displays MAC address table
information for the specified
MAC address
show mac address-table agingDisplays the aging time in all
time
VLANs or the specified
VLAN.
show mac address-table count
Displays the number of
addresses present in all
VLANs or the specified
VLAN.
show mac address-table dynamic Displays only dynamic MAC
address table entries.
show mac address-table interface Displays the MAC address
table information for the
specified interface.
show mac address-table learning Displays MAC address
learning status of all VLANs
or the specified VLAN.
show mac address-table static
Displays only static MAC
address table entries.
show mac address-table vlan
Displays the MAC address
table information for the
specified VLAN.
end
Return to privileged EXEC
mode.
show mac address-table learning Verify the configuration.
[vlan vlan-id | interface interface
slot/port]
copy running-config startup(Optional) Save your entries
config
in the configuration file.
Switch > ?
show mac address-table address
Command
Vlan .
1- Data Vlan
2- Default Vlan
3- Native Vlan
4- Voice Vlan
5- Management Vlan
Type of Vlan
Vlan
---------------------- -------------------------------------------------------------
: Vlan - . BroadCast
- .
- .
- .
- ,
.Vlan
Vlan - BroadCast Domain
BroadCast Domain
.
: Vlan .
Vlan 1 Vlan
2 Vlan 3
. Vlan
Vlan :
: Vlan
Vlan Vlan
.
- .
Vlan
Vlan Vlan ,
,
.
: Management Vlan
HTTP
Telent , SSH , SNMP . Vlan
Vlan ID Range
Vlan
- ISL header .
Trunk Port
-----------------------------------------------------------------------------------
x Trunk Port
SW2 SW3 Vlan 200
Trunk Port
. Vlan
: Access Port -
. Native Vlan
: Trunk Port -
Vlan Frame
Vlan . Trunk
x : Trunk Port
Vlan 1 Vlan 1
Vlan 1
,
Trunk
Vlan
Trunk ,
:
Vlan .
Vlan
- :
ISL header :
- :
ISL header :
0011
0010
0001
0000
ATM
FDDI
Token-Ring
Ethernet
Encapsulated Frame
Type Value
, .
x
x
x
x
-------------------------------------------------------------------------------
x
x
x
x
-------------------------------------------------------------------------------
Switch # config t
Vlan Configuartion
Vlan Switch
. IEEE 802.1Q
.
-----------------------------------------------------------------------------------
x : IEEE
.ISL
ISL
IEEE 802.1Q , ISL IEEE
802.1Q Tag Frame 4 byte
ISL Encapsulation Frame 26 byte
IEEE 802.1Q
Tag Frame Frame
.
IEEE 802.1Q -
: INDEX FIELD ,
.
Switch # config t
Switch> enable
- SW 1 :
-----------------------------------------------------------------------------------
: Vlan 2 Vlan 1
, 1002 , 1003
, 1004 , 1005
.
x
Vlan
Vlan .
x
-
Vlan , :
Vlan Trunk Port .
:
192.168.1.0/24
Vlan 2 . Name IT
192.168. 2.0/24
Vlan 3 . Name HR
.
SW 1 SW 2
. Trunk
vlan 2 vlan 3
:
SW 1
Switch # config t
Switch> enable
: SW 2 -
vlan 3 vlan 2
:
SW 2
VTP Vlan
Vlan
Vlan
. VTP
VTP
Vlan
Vlan
VTP Vlan
: VTP
VTP
VLAN Trunk Protocol
Switch # config t
Switch> enable
: trunk .
SW 2 SW 1 . trunk
- SW 1 :
Trunk
Trunk .
: VTP Pruning .
: : VTP Server -
VTP Domain
Vlan
Vlan
.
: VTP Client -
Vlan
.
: VTP Transparent -
VTP VTP
Server VTP Client
VTP Server .VTP Client
2- VTP Client
1- VTP Server
VTP Mode
: VTP Domain
VTP VTP Domain 1
VTP Domain 2 VTP
. Domain
VTP
VTP Advertisements
: VTP Advertisements
.
VTP Version
VTP VTP
.
1- VTP Domain Name
2- VTP Password
3- VTP Version
: VTP Version 3
.
: VTP Version 2
. VTP
-----------------------------------------------------------------------------------
Switch # config t
VTP Client
-----------------------------------------------------------------------------------
Switch # config t
VTP Server
VTP
VTP Configuartion
Switch # config t
: Vlan
SW 1 vtp
. VTP Server
SW 1 VTP Server
- SW 1 :
VTP Vlan
VTP
.
VTP Server
VTP .
x
.
:
192.168.1.0/24
Vlan 2 . Name IT
192.168. 2.0/24
Vlan 3 . Name HR
.
SW 1 VTP Server
SW 2 SW 3 VTP Client
.
Vlan , :
Vlan VTP Server
Trunk Port
.
VTP
Switch # config t
- SW 2 :
SW 2
SW 2 VTP . SW 2
,
VTP .
SW 1
SW 1 Vlan HR , IT .
- . VTP
SW 3
:
SW 2
SW 2 Vlan .
SW 1 : Trunk Port
Vlan vtp , SW 2
SW 1 , SW 2
Trunk Port ,
SW 1
.
SW 2
SW 2 :
-----------------------------------------------------------------------------------
subif
Router # config t
Vlan
Gy
Router on a Staick .
Router on a Staick
Router on a Staick
f0/0
. Vlan
x : Vlan 1
Vlan 2 Router on a
. Staick
Router on a Staick .
.....
....
Router on a Staick Gy
. Vlan
: Trunk Port .
Router # config t
x R1 :
: No Negotiate
.
: Access Access
.
: Dynamic Desirable
Access
Access .Dynamic Desirable
: Dynamic Desirable
Trunk Port ,
.
,
, .
1- Dynamic Desirable
2- Trunk
3- Access
4- Dynamic Auto Access
5- No Negotiate
6- DTP = Dynamic Trunking Protocol
Bridge ID ................................
:Bridge ID
Root Bridge Non Bridge
Bridge ID ..
BPDU
Root Bridge .
x BPDU = Bridge
Protocol Data Units
,
,
.
x : BPDU
- . Root Bridge
- . Non Bridge
- : STP
x
,
,
,
.
:STP
STP
STP
.
STP
: DP RP
RP Non Bridg .
: RP = Root Port
Non Bridg
Root Bridge .
1- DP = Designated Port
2- RP = Root Port
3- BP = Block Port
: STP Port
, Cost
Cost STP Prot ,
.
Root Bridge
,
.
- : STP
BPDU
Bridge Prioirty MAC Address
, Prioirty
Prioirty
, Root Bridge Prioirty
Mac Address
BPDU
Root Bridge
.
- : Root Bridge
: Mac Address
.
: Bridge Prioirty
, 0 to 65535 .Default Value = 32768
x
Root Bridge Non Bridg
,
SW 2
- SW 2 :
SW 1
Root Bridge , SW 1
Prioirty 32768 SW 1 , SW 2
SW 1 MAC
Address : 0000.0000.0000.1 MAC SW 2
Address : 0000.0000.0000.2 SW 1
Root Bridge
, SW 1
Root
Bridge .
x SW 1 , SW 2
2 ,
STP
, Root Bridge
:
, STP
STP
.
SW 1
: STP
.STP
- SW3 :
- SW 2 :
SW 1
SW 1 : STP
Root Bridge , SW 2
Prioirty 32768 SW 1 , SW 2 , SW 3
SW 1
MAC Address : 0000.0000.0000.2 SW 2
MAC Address : 0000.0000.0000.1 MAC SW 3
Address : 0000.0000.0000.3 SW
2 Root
Bridge , Non Bridg Cost
Cost 19 .
SW 1
x Root Bridge
, SW 1
Prioirty 32768 SW 1 , SW 2 , SW 3 ,
SW 4
SW 1
MAC Address : 0005.5EAE.6CBB
MAC Address : 000A.F3EE.0929 SW 2
MAC Address : 0060.47C9.E392 SW 3 SW4
, MAC Address : 00D0.BAC0.2BBA
SW 1
Root Bridge , Non Bridg
Cost
Cost 19 ,
SW 3 SW
x SW 1 , SW 2 , SW 3 , SW 4
2 ,
, STP
, Root Bridge
:
4 SW 3 SW 1
SW 2
SW 4 ,
SW 3 SW 4 Cost 57
SW 3
SW 1 Cost 19
SW 1 SW 2 Cost 38
SW 2 SW 4 Cost 38
Cost 57 .
x SW 1
: STP
x :
SW 4
- SW 4 :
, Non Bridge SW 2
.
x
STP
,
.
SW 2
SW 3 : , Non Bridge SW 3
.
SW 3
:Disabled
.
: Forwarding
.
: Learning 15
Access
.
: Listening Access
Trunk 15
.
SW 4 .
Blocking
Listening
Learning
Forwarding
Disabled
12345-
30
, .
-----------------------------------------------------------------------------------
x STP
. STP
Blocking
30 :
: Blocking
.
: Backbone Fast
RLQ BPDU
.
:
.
: Uplink Fast
.
: Access ,
.
:Port Fast
30 sec Listening,
Learning
30 sec
.
STP ,
, STP
.
1- Port Fast
2- Uplink Fast
3- Backbone Fast
4- RLQ BPDU = Root Link Query
STP
:PVST
PVST
STP
Vlan
.Load Balancing
PVST
1- Point to Point
2- Shared
3- Edge
- :
RSTP
Root
Designated
Alternate Root
Backup
Disabled
12345-
1- Discarding
2- Learning
3- Forwarding
. RSTP . STP
STP RSTP .
: RSTP STP
802.1w
STP 20 Sec
RSTP 6 Sec
STP .Root Bridge
RSTP
- .OSI
- .Trunk
- :
x
STP
Loop ,
Port Channel ,
,
.
: Port Channel .
Port Channel
Link Type
Switch # config t
x
100 mb , STP
. Root Bridge
x Port Channel
400 mb
.
- :
IEEE .
- .
- .
,
.
SW 1
x :
SW 1 :
.400 mb
. SW 2
Switch # config t
SW 2 :
. SW 2
Switch # config t
SW 1 Port Channel .
Ether Channel
Ether Channel
.
: Ether Channel
Port
. Channel
:Port Channel .
Ether Channel
SW 2
SW 2 Port Channel .
x :
: Dynamic Configuartion
DHCP
DHCP ,
DHCP
.
: Static Configuration
,
,
.
x
IP
IP
.
- .
3-Alternate Configuartion
2-Dynamic Configuartion
1-Static Configuration
- : DHCP
DHCP
DNS BOOT DHCP ) (MAC
IP DHCP BOOTP .
DHCP :
. -
) (Client-Server DHCP
. System Administrator
IP HOST
Workstations TCP / IP
) (IP address conflict
IP ) (
.
.
1- Client Sends a DHCP Discover Broadcast
2- Server Sends a DHCP Offer Unicast
3- Clinet Sends a DHCP Request Broadcast
4- Server Sends a DHCP ACK Unicast
: Alternate Configuartion
Static Dynamic
,
Alternate ,
Alternate APIPA
.
DHCP :
1- IP Address
2- Subnet Mask
3- IP Default Gateway
4- DNS Server
5- WINS
6- Time
IP ) (DHCP Lease Stages .
Alternate Configuartion
IP :
Router # config t
. - DHCP Server .
- A
. 10.0.0.0/8
DHCP Server
DHCP Server
.
Excuded-address
.
DHCP Configuration
DHCP
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
DHCP UDP :
DHCP DORA
- - MAC IP
IP 10.0.0.1
.
IP DHCP Server .
DHCP Server
.
Router # config t
x :
- DNS .10.0.0.99/8 IP
- IP . GY : 10.0.0.100/8
- IP
DHCP Server .
IP DHCP
DHCP
.
DHCP :
DHCP :
- DHCP
.
- .IP 192.168.1.0/24
- . IP 192.168.2.0/24
- DNS .
- IP .
DHCP :
IP DHCP Server :
PC 2 Static DHCP
IP 10.0.0.2
DNS .
DHCP
:
IP , Fast Ethernet 0/0
....
DHCP :
,
Host-NM-10/100 ,
,
:
x
,
,
.
x
DHCP Server
,
............
,
.
DHCP .......
Services DHCP :
Pool Name , IP Gy
IP DHCP .
Laptop 1 IP .
IP PC
.1
PC1 .192.168.1.0/24
x :
,
.
x : DHCP
Off .ON
x
......
DHCP .
DNS Start
IP Address SubnetMask
. Add
: Static NAT
Private IP
Public IP
Static NAT
Private IP Public IP
- .
- .
- .
: NAT
: NAT
: NAT
Private IP
Public IP
Defult Gateways )
( ,
.
)(NAT
: NAT NAT
.
x
RIP
NAT PAT
Pool , Public IP
NAT Pool
.
NAT
Pool
.
NAT PAT
NAT
NAT PAT
.
:PAT NAT
Public IP
.
Router # config t
Router # config t
-----------------------------------------------------------------------------------
IP IP .Public IP
NAT
-----------------------------------------------------------------------------------
Inside Outside
.
NAT
NAT Names
Router # config t
R2 : x
. RIPv2
x : inside , outside
.
:
NAT
. NAT
: NAT
NAT NAT
. RIP
NAT
Router # config t
NAT PAT .
192.168.1.0/24
.
192.168.50.0/24
RIPv2 .
192.168.2.0/24
. NAT
NAT
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
Pool
ISP netmask
. Pool
R2 .
x R2
.
x R1 .
. NAT-PAT
x R1 Ping .R2
:FHRP
IP
x NAT
Packet
IP NAT
.
R1
R2
NAT PAT .
Packet
192.168.1.0/24 192.168.2.0/24
R1
NAT PAT
Router # debug ip nat .
.
192.168.1.1 65.65.60.1
.
:
: Standby
.
: Actice
- : HSRP
IPv4 IPv6
) IPv6 ff02::66 IPv4 224.0.0.102 (HSRP
UDP Port 1985
)(00:05:73:a0:0X:XX) IPv4 00:00:0c:9f:fX:XX
.IPv6
x
HSRP version 2
x
HSRP version 1
: HSRP .
x FHRP
.
- : FHRP
IP .
: HSRP
Gateway
IP
.
Router # config t
R1 HSRP .
Router # config t
x :
x :
x 192.168.1.0/24 .
x 192.168.2.0/24 .
HSRP HSRP
.
Group
Virtual IP
HSRP Configuration
HSRP
-----------------------------------------------------------------------------------------------------------------
x HSRP
10
224.0.0.2 all routers
.
- : HSRP
x Actice
priority . Actice
Router # config t
: R2 -
. R2 R1 -
HSRP R2 R1
. Actice
x
Gy
.
Group
Group
Virtual IP
VRRP Master
. Backup
HSRP Active
. Standby
HSRP
:
:VRRP HSRP
.
-----------------------------------------------------------------------------------
Gy 192.168.1.1
.
- :
HSRP
R1 :
R1 Virtual IP
. R2
x
.
Router # config t
VRRP Configuration
VRRP
-----------------------------------------------------------------------------------
x
x
x
x
x
Router # config t
GLBP Configuration
GLBP
-----------------------------------------------------------------------------------
: GLBP
OSI
Load Balancing
.
Router # config t
:
:
-----------------------------------------------------------------------------------
NTP Configuration
NTP
-----------------------------------------------------------------------------------
: NTP
, .
WAN
WAN
) Level ( 4
x
Leased Line .
x Leased Line
.Leased Line
: WAN
.
: WAN
.
WAN
WAN
x
.
- : Leased Line
: Leased Line -
ISP Leased Line
.
Packets
.
WAN OSI Layer .
WAN .
: Flag
.
: FCS
FCS
.
: Data
.
: Protocol
PPP, HDLC .LLC Header
: Flag Frame
.8 bits
HDLCv2 - 7
Proprietary
.
HDLC - 6
.
HDLC .
HDLC
. IP Header
x Leased Line
. HDLC , PPP
) : High Level Data Link Control (HDLC
.
: Control
Flow Control
.8 bit
: Address IP
.8 bit
- Physical Layer
.
- Data-Link Layer
.
Serial
)Data Communication Equipment(DCE
X.25
OSI Layers :
: X.25 Packet-
Switching Data Communication Equipment
) (DCE )Data Terminal Equipment (DTE
X.25
Router . Gy
- .
- .
- .
-
.
-
.
-
.
-
.
-
.
-
.
-
.
: Packet Switching -
.
-
.
- : Circuit Switching
- : Packet Switching
Header HDLC
Header PPP
HDLC
PPP
Header HDLC
Header PPP Header
:
: PPP WAN
Data Link OSI Layers
HDLC
PPP
.HDLC
X.25
Packet-Switching
. OSI Layers
x
.
x
DCE
DTE , X.25
.HDLC
x
Full Duplex
.
-
. Packets
:
Clear Text .
User Name and Passowrd
Authentication
PPP
Authentication
User Name and Passowrd
.
- Authentication :
PPP
Authentication
.
- Multilink
.
- Error Detections
Header
.
- Compression
.
- Authentication
.
- Negotiation
.
PPP .
Feature
HDLC PPP
Error detection
Yes
Yes
Error recovery
No
Yes
Standard Protocol Type field
No
Yes
Default on IOS Serial links
Yes
No
No
Yes
Supports synchronous and as
asynchronous links
- PPP .HDLC
Router # config t
Serial Cable
ppp
:
-----------------------------------------------------------------------------------
User Name and Passowrd
User Name and Passowrd
. MD5
R1 R2 :
- :
R1
Router # config t
R1 :
223.255.255.0 ppp
.
.
.
- .
- .
- .X.25
- ANSI CCITT/ITU
Frame Relay Forum
. Frame Relay
-
.WAN
- Connection-Oriented
)Permanent Virtual (PVC
Circuit .
- PVC
.Frame Relay
: Frame Relay
- :
Router # config t
- R2 :
- Full
. Mesh
: Frame Relay
Frame Relay
Frame Relay
. Frame Relay
-
Customer
) Termination Equipment (CTE PVC
, . Frame Relay Service Point
- .
Frame Relay :
-
.
- .
-
.
:Frame Relay
-
In-Band Congestion Signaling
.
- Switch
DLCI
.
-
-
.
DLCI
. Frame Relay
Frame Relay
PVC
.
Frame .
: Frame Relay
-
-
-
-
-
-
.
.
.
ISDN
.
.
.
: Frame Relay
- . Frame Relay
- .
-
. Frame Relay
-
Frame Relay
- RIPv2
.
- Frame Relay Frame
.Relay
- Partial Mesh
.Topology
- :
Frame Relay
Frame Relay
Frame Relay
Frame Relay
RIPv2 , EIGRP , OSPF
.
: -
: -
R1 (config-router) # end
R1 # copy running-config startup-config
DLCI 301
DLCI 302
R1 (config-router) # version 2
R1 (config-if) # exit
R1 (config-if) # no shutdown
R1 (config-if) # exit
R1 (config-if) # no shutdown
Router # config t
:
R1
(R3)
DLCI 203
DLCI 201
Serial 0/0/0.203
Serial 0/0/0.201
(R2)
DLCI 103
DLCI 102
Serial 0/0/0.102
Serial 0/0/0.103
(R1)
: -
R2 (config-if) # no shutdown
R2 (config-if) # exit
R2 (config-if) # no shutdown
R2 (config-if) # exit
R2 (config-router) # version 2
R2 (config-router) # end
Router # config t
Router # config t
R3
R2
Router > enable
R2
.
R1 .
Packets Successful
Faill
.
Add
.
Frame Relay
.
Config Serial :
Frame Relay :
DLCI
DLCI Frame Relay
.
- : MPLS
Successful
:
MPLS
.
:MPLS WAN
MPLS Frame Relay
MPLS
OSI Layers
IP IP
Packets
Frame .
-----------------------------------------------------------------------------------
MPLS
Frame Relay, ATM, or Ethernet.
.
.
.
) (RVSP
(CR-LDP).
.
.
.
RSVP ) (CR-LDP
Cisco
.
: VPN
VPN
.
: VPN
Remote Access
VPN VPN
VPN
VPN .
VPN
: -
ISP
.
-
.
Label Label :
MPLS Label
Header
MPLS Label
MPLS Routing
Table
MPLS Label
Label .
MPLS : Label
- .
- :
:VPN Tunneling x
VPN
.
)(Tunneling
.
VPN
GateWay
Target Network
Clients
.
IP Public
.
VPN
VPN
. VPN
x :
x VPN :
Dial up VPN
)Point to point VPN (IP VPN
Site to Site VPN
)Site to Multi Site VPN (DM VPN
MPLS VPN
12345-
VPN VPN
.
VPN
Dial up VPN
.
Dial up VPN .
: VPN
VPN
:
: VPN
- Security
VPN
.
- Scalability
.
- Remotely Connection
. VPN
: VPN
- Anti Reply
.
- Confidentiality
.
- Data Integrity
.
- Authentication
.
VPN VPN .
Point to point VPN
.
MPLS VPN
.
MPLS VPN .
: ACL -
.
-
.
- ACL Filtering
.
- OSI Layer .
-
.ACL
- .
-
.
- ACL
.
- ACL Premit , Deny
.
- .
: ACL
.
Networks Security
427.........................................................................Firewall
425..........................................................Network security
) Level ( 5
Standard
Router # config t
Standard
:
Premit
.
Premit
Deny
Router # config t
host 172.16.10.5
Any
- :ACL
: Name ACL
.
: Extended
Web Server
http Telnet
. Destination IP Address , Source IP Address
: Standerd
Source IP Address . 1-99
ACL
.
Host
-----------------------------------------------------------------------------------
ACL
ACL Configuration
Router # config t
-
-
-
: -
. 192.168.1.0/24
. 172.16.1.0/16
ACL 10.0.0.0/8
.
.
: x
ACL
:
192.168.1.1 eq http
Router # config t
-----------------------------------------------------------------------------------
192.168.1.1 eq http
Router # config t
Extended
Hub Broad Cast
Hub
.
-
.
x :
: Switch Security
.
x 172.16.1.0/16
ACL 10.0.0.0/8
.
x 10.0.0.0/8
192.168.1.0/24
ACL
172.16.1.0/16
.
10.0.0.0/8 .
Switch Security
- CHAP
.
-
. Certifcate Authority
-
. Something You have
-
. Something You Know
: Authentication
.
Authentication Methods
-----------------------------------------------------------------------------------
- Vlan Vlan
Vlan
Vlan .
- Vlan 1
Vlan .
- Vlan
.
-
.
Switch (config-if) # switchport port-security maximum 1
? Switch (config-if) # switchport port-security mac-address
? Switch (config-if) # switchport port-security violation
-
. Port Security
---------------------------------------------------------------------
Trunk
Trunk Trunk .
- Kerberos
Tickets
Kerberos
.
:Availability
.
: Data Integrity
:
100 1000000
.
: Data Confidentiality
: .
-----------------------------------------------------------------------------------
:
.
:
:
.
.
.
Network security
.
.
- PAP
. Kerberos
.
.
.
.
AT&T "
) (Application Layer Firewall
) (Proxy server
DEC . SEAL
.
)( .
:
.
-
.
: Firewall
/
.
Firewall ,
.
.
.
"
" .
: Stateful Filters
.
:
.
) (TCP ) (UDP
" " )
.
) (TCP) (UDP .
) (packets
.
)
"" .
1988 )(DEC
.
AT&T
.
: Packet Filters
-
-
OSI
.
TCP/IP . OSI
.
.
.
:
x
.
:
OSI
Show
.
Troubleshooting
Troubleshooting
461..........................................................Wireless LAN
457.........................................................................Quality of service
450........................................................................Cloud Technology
446.........................................................Virtualization
441.................................
440.............................................................................................Syslog
436..............................
434............................IPv4 / IPv6
) Level ( 6
- Physical
.
- Data Link
Data Link .
- Network
.
- Transport
TCP , UDP
FTP ,
TFTP .
- Session
Session
.
- OSI
- Application
Remote Control
.
- Presentation
.
.
.
.
.
Subnet
Mask .
IPv4 / IPv6
-----------------------------------------------------------------------------------
. STP
Portfast .
STP
Vlan .
VTP .
Trunk .
Vlan
.
x : Vlan Problems
.
- :
Router # traceroute
Router # ping
RIP Trobleshooting
: Dynamic Routing
Router # traceroute
Router # ping
- : Static Routing
- : NAT
ACL .
-----------------------------------------------------------------------------------
x DHCP
DHCP
Pool .
x
DHCP
DHCP
DHCP Realy Agent
DHCP .
x
DHCP
DHCP
.
x DHCP
Pool
.
-
192.168.1.1
.
- DHCP
:
EIGRP Trobleshooting
-----------------------------------------------------------------------------------
Router # traceroute
Router # ping
Router # traceroute
Router # ping
OSPF Trobleshooting
Router # show ip route
: SNMP -
: SNMP Agent
.SNTP
: SNMP
.
: Syslog
. Action
Syslog
: Inform .
: Traps
.
: Get Next .
: Respinse .
- : SNMP
1- Cut-Through
1- Process Switching
.
2- Fast Switching
64 .
3- Fragment-Free
-----------------------------------------------------------------------------------
12345-
Emergencies
Alerts
Critical
Error
Warning
6- Notifications
7- Informational
8- Debugging
Syslog Levels
.
: Vlans Allowed
Vlan Vlan
Trunk Interface
Trunk Interface Vlan
.
.
SDN
.
.
.
.
.
. GMPLS , MPLS
.
.
SND
. virtualization
SDN
SDN
.
: SDN
OpenFlow
Control plane . Data planes
:
The control plane
The Data
plane .
: Binary Translation BT
XYZ
BT .
.
Virtualization ,
Emulation
Super Nintendo
Playstation Atari 2600
.
: Emulation
Vm Citrix
.
: Paravirtualization PV
Sun
.
. PV xBSD
.
.
IBM
.
Bitmaps VMCS
. 32
VMResume
.
VMResume .
VMLaunch Virtual Machine Control Structure
.
VMPTLRD
.
VMLaunch . VMResume
.
. Virtual Machine Manager
VMM VT 4
""
.
Transaction
. processing
) (Client-server model
)(
.
)( .
.
.
. IP
DNS
.
session id
.
: Cloud Technology
Cloud Tech
.
:
.
Cloud Technology
:
" " .
Payment
.Card Industry Data Security Standard
:
.
) (
.Gov Cloud
: Public Cloud
.
.
.
Cloud
.
. Cloud
.
: Cloud
"
Infrastructure as a Service
) (hardware virtualization
.
) ( .
.
: Cloud infrastructure
:
) (segregation of duties
.
: Data protection
.
. - .
,
. :
: cloud storage
.
.
.
.
:Cloud engineering
.
.
.
: Private Cloud
.
Hybrid Web Hosting
)( :
.
) (
"
hybrid cloud computing
ibm hp
(VMware)
.
.
.
. "
) (Cloud Security Alliance
.
"
" .
.
.
.
.
.
.
.
.
.
.
.
QOS
Quality of service
x
x
x
x
x
x
.
.
.
.
.
.
.
:
.
:
.
:
.
:
.
:
) (Identity management
.federation services
. .
.
.
.
. isochronicity
.
.
.
.
.
.
.
.
"" "" . :
. :
.
.
" " . " "
"" .
DiffServer ) (
.
: QOS
.
) (QoE
"" " .
.
.
.
.
.
.
WLAN
.
. .
.
.
.
/
.
. ''.
.
.
60
LAN ) (Local Area Network
:
: Networks Wireless
:
. .
Wireless LAN
: PCI
100 200 2004 30
.
:
.
:
.
:
) (
:
.
) (wirelessness
.
- -
.
.
:
- 2 ) (access point
.
.
) (WLAN
) (
2004
WLAN wireless local
area network radio
frequency RF .
.
:
.
Wireless
LAN
.
:
.
MAC: .
: Distributed Coordination Function
Point Coordination Function MAC Layer
.
Infrared IR
:
:
IEEE 802.11
: IEEE 802.11
Lakehead
.
.
Wired
Equivalent Privact WAP Wi
Fi Protected Access WPA
.
Ethernet