01 - N Ccna Slides PDF
01 - N Ccna Slides PDF
01 - N Ccna Slides PDF
(CCNA)
•Cisco certifications are globally respected IT certification programs for Wide Area Networking
(Internetworking).
•Cisco has five levels of certification:
−CCENT (Cisco Certified Entry Networking Technician)
−CCNA (Cisco Certified Network Associate)
−CCNP (Cisco Certified Network Professional)
−CCIE (Cisco Certified Inter networking Expert)
−CCAr (Cisco Certified Architect)
There are 2 tracks for CCNA examination :
•Two paper track
−ICND 1 (100-101) (On passing this exam the candidate is CCENT)
−ICND 2 (200-101) (On passing both exams the candidate is CCNA)
•LAN
Local Area Networks are used to connect networking devices that are in a very close geographic
area such as a floor of a building, a building itself or within a campus.
•MAN
Metropolitan Area Network are used to connect networking devices that may span around the
entire city.
•WAN
Wide Area Networks which connects two or more LANs present at different geographical locations.
LAN
HUB/Switch LAN
MAN
MAN
SWITCH
HUB
LAN
LAN
WAN
Hyderabad
US
www.yahoo.com
WAN
Router
SWITCH
Basic requirements to form a network
Media
Guided Unguided
UTP STP
Media
Co-axial cable
UTP Cable
Fiber optic
Types of Twisted Pair cables
CAT 2 4 Mbps RJ 11
•In bus topology all devices are connected to a single cable or backbone.
•It supports half duplex communication.
•A break at any point along the backbone will result in total network failure.
Ring Topology
•In ring topology each computer or device is connected to its neighbor forming a loop.
•Failure of a single device or a break anywhere in the cable causes the full network to
stop communicating
Mesh Topology
•In mesh topology each device is directly connected to all other devices
•The disadvantage is the number of NIC’s required on each device and the complex
cabling.
Star Topology
•The most commonly used topology
•It consist of one centralized device which can be either a switch or a hub.
•The devices connect to the various ports on the centralized devices.
HUB/SWITCH
Networking devices
The various types of networking devices are:
•Hub
•Switch
•Router
•Firewalls
•Access Points
•Wireless Controllers
•Load Balancers
Hub / Repeater
PORT MAC-ADDRESS
Source MAC
001C.C01A.0002
Destination MAC
DATA Fa0/1
001C.C01A.0004
Fa0/2 001C-C01A-0002
1
2 8
3 7 Fa0/3
4 5 6
Fa0/4
Fa0/5
Fa0/6
001C-C01A-0002
Fa0/7
Fa0/8
001C-C01A-0004
Functions of Switch
PORT MAC-ADDRESS
Source MAC
001C.C01A.0002 Fa0/1
DATA
Destination MAC
001C.C01A.0004 Fa0/2 001C-C01A-0002
1 Fa0/3
2 8
3 7
4 5 6 Fa0/4 001C-C01A-0004
Fa0/5
Fa0/6
001C-C01A-0002 Fa0/7
Fa0/8
001C-C01A-0004
MAC Address Table in Switch
Router
Symbolic Representation:
Router
Cables used to Connect
Straight Cable: Usually use straight cable to connect different type of devices.
Layer - 7 Application
User support Layers
Layer - 6 Presentation or
Software Layers
Layer - 5 Session
Layer - 3 Network
Networksupport Layers
Layer - 2 Data Link or
Hardware Layers
Layer - 1 Physical
Application Layer
Application
Application Layer : is responsible for providing an
interface for the users to interact with application services or
Networking Services .
Presentation
Ex: Web browser(HTTP), Telnet etc.
Session
Transport
Network
Data Link
Physical
Examples of Networking Services
HTTP 80
FTP 21
SMTP 25
TELNET 23
TFTP 69
Data flow from Application Layer
Application Data
80 21 25 53 67 69
Presentation
Session
Transport
Network
Data Link
Physical
Presentation Layer
Physical
Data flow from Presentation
Layer
Application Data
Presentation Data
Session
Transport
Network
Data Link
Physical
Session Layer
Network
Data Link
Physical
Data flow from Session
Layer
Application Data
Presentation Data
Session Data
Transport
Network
Data Link
Physical
Transport
Layer
Transport Layer : It provides data delivery mechanism
Application
between the applications in the network.
The major functions described at the Transport Layer are.
Presentation
•Identifying Service
Session •Multiplexing & De-multiplexing
•Segmentation
Transport •Sequencing & Reassembling
•Error Correction
Network •Flow Control
Data Link
Physical
Identifying a Service
Presentation Transport layer at the sender side receives data from different
Applications , encapsulates every packet with a Transport Layer
Session header and pass it on to the underlying Network Layer. This job of
transport layer is known as Multiplexing.
TCP UDP
HELLO!
HOW HELLO! HOW ARE YOU ?
ARE YOU?
Data
HELLO! HOW ARE YOU ?
1/5 2/5 3/5 4/5 5/5
Data
HOW ? ARE HELLO! YOU
2/5 5/5 3/5 1/5 4/5
HELLO! HOW ARE YOU ?
1/5 2/5 3/5 4/5 5/5
Data
Data flow from Transport Layer
Application Data
Presentation Data
Session Data
Transport TH Segment
Data
Network
Data Link
Physical
Network Layer
Data Link
Physical
Data flow from Network Layer
Application Data
Presentation Data
Session Data
Data Link
Physical
Datalink Layer
Datalink Layer
Application
It has 2 sub layers
Presentation •MAC (Media Access Control) It provides reliable transit of
Application Data
Presentation Data
Session Data
Transport TH Segment
Data
Devices that work at
Data link layer is Switch Network NH Packet
Segment
Physical
Physical Layer
Application Data
Presentation Data
Session Data
Transport TH Segment
Data
Network NH Packet
Segment
Devices that work at
physical layer are Hub , Repeater Data Link Frame
DT Packet DH
etc.
Physical Bits
Comparison between OSI & TCP/IP Model
Application
Presentation Application
Session
Network Internet
Data Link
Network Access
Physical
LAN Setup
IP Addressing
IP Address
128 64 32 16 8 4 2 1 Answer
1 1 0 0 0 0 0 0 192
0 0 0 0 1 0 1 0 10
1 0 1 0 1 0 0 0 168
1 0 1 0 1 1 0 0 172
0 0 0 1 0 0 0 0 16
Decimal to Binary
Decimal 128 64 32 16 8 4 2 1
18 0 0 0 1 0 0 1 0
152 1 0 0 1 1 0 0 0
200 1 1 0 0 1 0 0 0
15 0 0 0 0 1 1 1 1
240 1 1 1 1 0 0 0 0
IP Address Classification
•CLASS A
•In Class A : First bit of the first octet is reserved as priority bit, bit value is zero.
•0xxxxxxx. xxxxxxxx. xxxxxxxx. Xxxxxxxx
27 26 25 24 23 22 2 1 20
0 0 0 0 0 0 0 0 = 0
0 0 0 0 0 0 0 1 = 1
0 0 0 0 0 0 1 0 = 2
0 0 0 0 0 0 1 1 = 3
0 0 0 0 0 1 0 0 = 4 Class A Range
0 . 0 . 0 . 0 to
127 . 255 . 255 .255
0 1 1 1 1 1 1 1 = 127
Class B Range
•In Class B : First two bits of the first octet are reserved as priority bits, bit value as 10.
•10xxxxxx. xxxxxxxx. xxxxxxxx. xxxxxxxx
27 26 25 24 23 22 21 20
1 0 0 0 0 0 0 0 = 128
1 0 0 0 0 0 0 1 = 129
1 0 0 0 0 0 1 0 = 130
1 0 0 0 0 0 1 1 = 131
1 0 0 0 0 1 0 0 = 132
Class B Range
128 . 0 . 0 . 0 to
1 0 1 1 1 1 1 1 = 191 191 . 255 . 255 .255
Class C Range
•In Class C : First three bits of the first octet are reserved as priority bits, bit value as 110.
•110xxxxx. xxxxxxxx. xxxxxxxx. Xxxxxxxx
27 26 25 24 2 3 22 21 20
1 1 0 0 0 0 0 0 = 192
1 1 0 0 0 0 0 1 = 193
1 1 0 0 0 0 1 0 = 194
1 1 0 0 0 0 1 1 = 195
1 1 0 0 0 1 0 0 = 196
Class C Range
192 . 0 . 0 . 0 to
1 1 0 1 1 1 1 1 = 223 223 . 255 . 255 .255
Class D Range
•In Class D : First four bits of the first octet are reserved as priority bits, bit value as 1110.
•1110xxxx. xxxxxxxx. xxxxxxxx. xxxxxxxx
27 26 25 24 23 22 21 20
1 1 1 0 0 0 0 0 = 224
1 1 1 0 0 0 0 1 = 225
1 1 1 0 0 0 1 0 = 226
1 1 1 0 0 0 1 1 = 227
1 1 1 0 0 1 0 0 = 228
Class D Range
224 . 0 . 0 . 0 to
1 1 1 0 1 1 1 1 = 239 239 . 255 . 255 .255
Class E Range
•In Class E : First four bits of the first octet are reserved as priority bits, bit value as 1111.
•1111xxxx. xxxxxxxx. xxxxxxxx. xxxxxxxx
27 26 25 24 2 3 22 21 20
1 1 1 1 0 0 0 0 = 240
1 1 1 1 0 0 0 1 = 241
1 1 1 1 0 0 1 0 = 242
1 1 1 1 0 0 1 1 = 243
1 1 1 1 0 1 0 0 = 244
Class E Range
240 . 0 . 0 . 0 to
1 1 1 1 1 1 1 1 = 255 255 . 255 . 255 .255
Ranges
IP Address Class
10.1.100.1 A
150.17.2.200 B
192.1.1.1 C
224.0.0.10 D
120.200.1.1 A
Octet Format
•No. of Host
= 2no of host bits -2
= 224 – 2 (-2 is for Network ID & Broadcast ID)
= 16777216 - 2
= 16777214 Hosts/Network
CLASS B – No. Networks & Hosts
•No. of Host
= 2no of host bits -2
= 216 – 2 (-2 is for Network ID & Broadcast ID)
= 65536 - 2
= 65534 Hosts/Network
CLASS C – No. Networks & Hosts
•No. of Host
= 2no of host bits -2
= 28 – 2 (-2 is for Network ID & Broadcast ID)
= 256 - 2
= 254 Hosts/Network
Network & Broadcast Address
•Network address: This is the address that identifies the subnet of a host.
•Broadcast address: An IP Address that allows information to be sent to all machines on a given
subnet rather than a specific machine.
•Valid IP Addresses lie between the Network Address and the Broadcast Address.
•Only Valid IP Addresses are assigned to hosts/clients
Example - Class A
•Class A : N.H.H.H
−Network Address :
0xxxxxxx.00000000.00000000.00000000
−Broadcast Address :
0xxxxxxx.11111111.11111111.11111111
10.255.255.254
10.255.255.255 Broadcast Address
Example - Class B
•Class B : N.N.H.H
−Network Address :
10xxxxxx.xxxxxxxx.00000000.00000000
−Broadcast Address :
10xxxxxx.xxxxxxxx.11111111.11111111
Class B
172.16.0.0 Network Address
172.16.0.1
172.16.0.2
172.16.0.3
Valid IP Addresses
172.16.255.254
172.16.255.255 Broadcast Address
Example - Class C
•Class C : N.N.N.H
−Network Address :
110xxxxx.xxxxxxxx.xxxxxxxx.00000000
−Broadcast Address :
110xxxxx.xxxxxxxx.xxxxxxxx.11111111
Class C
192.168.1.0 Network Address
192.168.1.1
192.168.1.2
192.168.1.3
Valid IP Addresses
192.168.1.254
192.168.1.255 Broadcast Address
Private IP Address
•There are certain addresses in each class of IP address that are reserved for Private
Networks. These addresses are called private addresses.
•These addresses are not Routable (or) valid on Internet.
Class A
10.0.0.0 to 10.255.255.255
Class B
172.16.0.0 to 172.31.255.255
Class C
192.168.0.0 to 192.168.255.255
Subnet Mask
•Class A : N.H.H.H
11111111.00000000.00000000.00000000
Default Subnet Mask for Class A is 255.0.0.0
•Class B : N.N.H.H
11111111.11111111.00000000.00000000
Default Subnet Mask for Class B is 255.255.0.0
•Class C : N.N.N.H
11111111.11111111.11111111.00000000
Default Subnet Mask for Class C is 255.255.255.0
Default subnet mask
17.1.1.1 255.0.0.0
202.1.0.18 255.255.255.0
190.10.1.1 255.255.0.0
102.10.1.10 255.0.0.0
192.0.0.1 255.255.255.0
How Subnet Mask Works ?
IP Address : 192.168.1.1
Subnet Mask : 255.255.255.0
ANDING PROCESS :
192.168.1.1 = 11000000.10101000.00000001.00000001
255.255.255.0 = 11111111.11111111.11111111.00000000
==================================================
192.168.1.0 = 11000000.10101000.00000001.00000000
==================================================
The output of an AND table is 1 if both its inputs are 1.
For all other possible inputs the output is 0.
Subnetting
Subnetting
i.e.,
Class C : 192.168.1.0
255.255.255.0
Subnets required : 4 no's
= 2n ≥ Req. of Subnet
= 2n ≥ 4
= 22 ≥ 4
= 4 subnets
Customized subnet mask =
255. 255. 255. 0
Subnet Range
Network ID Broadcast ID
192.168.1.1 to 192.168.1.63
192.168.1.64 to 192.168.1.127
192.168.1.128 to 192.168.1.191
192.168.1.192 to 192.168.1.255
FLSM
VLSM
Class C : 192.168.1.0
255.255.255.0
Hosts required : 100 , 50 , 25 and 10
First , we calculate for IT = 100 Hosts
2h – 2 ≥ Req. of Hosts
= 2h – 2 ≥ 100
= 27 – 2 ≥ 100
= 128 – 2 = 126 hosts/subnet
Customized subnet mask =
255. 255. 255. 0
11111111. 11111111. 11111111. 00000000
. 10000000
255. 255. 255. 128
Calculation of subnets
= 2n
= 21
= 2
= 2 Hosts/subnet
Subnet Range
Network ID Broadcast ID
192.168.1.0 to 192.168.1.127 IT
192.168.1.128 to 192.168.1.255
Now , Available network is 192.168.1.128 to 192.168.1.255
Next, we calculate for Sales = 50 Hosts
2h – 2 ≥ Req. of Hosts
= 2h – 2 ≥ 50
= 26 – 2 ≥ 50
= 64 – 2 = 62 hosts/subnet
Subnet Range
Network ID Broadcast ID
192.168.1.192 to 192.168.1.255
•Similarly, we can calculate for Finance = 25 Hosts
Using 192.168.1.192 to 192.168.1.255
Subnet Mask 255.255.255.192
2h – 2 ≥ Req. of Hosts
= 2h – 2 ≥ 25
= 25 – 2 ≥ 25
= 32 – 2 = 30 hosts/subnet
Network ID Broadcast ID
•If we calculate, then we will get customized subnet mask 255.255.255.240 and Range as
follows
Subnet Range
Network ID Broadcast ID
VLSM
VLSM;
Marketing;
14; 6%
IT
Sales
Finance
VLSM; IT; 126; 54%
VLSM; Sales; 62; 27% Marketing
Power table
287654321 = 256
2
4
8
16
32
64
128 9 =
10
11
216
12
13
14
15 = 65536
1024
2048
512
4096
8192
16384
32768
POWER TABLE
17 = 16777216
18
19
224
20
21
22
23 131072
262144
524288
1048576
2097152
4194304
8388608 25 = 4294967296
26
27
232
28
29
30
31 33554432
67108864
134217728
268435456
536870912
1073741824
2147483648
Some Important Values
/8 255.0.0.0
/12 255.240.0.0
/16 255.255.0.0
/22 255.255.252.0
/24 255.255.255.0
Different Network
Communication
LAN - Different Network
Communication
LAN - Different Network Communication
LAN - Different Network Communication
http://192.168.2.4
HOME PAGE
Introduction to Routers
Router
•Inter-network Communication
•Best Path Selection S0/0/1 S0/0/0
•Packet Switching R2
•Packet forwarding
S0/1
S0/0
R1 S0/0 R3
S0/1
F0/0
E0/0
•Fixed Router
•Modular Router
Fixed Router
Modular Router
•Attachment Unit Interface (AUI) is used to connect the Router to the LAN.
•It is also called as the Ethernet interface.
•AUI is an DB 15 pin female interface.
•Transceiver is used to connect AUI port to LAN HUB / Switch.
•Transceiver converts DB-15 signal to RJ-45.
Transceiver
Other LAN Interfaces - RJ-45 ports
An IP address has to be assigned to this interface. It should be in the same network as that of the
LAN. This IP address is the default gateway address for all LAN systems.
R1
E0
Straight Cable 192.168.1.1/24
Switch
Straight Cable
LAN - 192.168.1.0/24
LAN Connectivity
R1
E0
192.168.1.1/24
Cross Cable
To connect the router’s Ethernet interface
directly to a PC LAN card a cross cable is used.
LAN - 192.168.1.0/24
Serial Port
Gigabit Ethernet High-Speed WAN Interface Card (HWIC) brings Gigabit Ethernet
connectivity to Cisco Integrated Services Routers routers to accelerate applications such
as Metro Ethernet access, inter-VLAN routing, and high-speed connectivity to LAN
switches
Console Port
RJ-45
Connector
Console Port
Orange-white Brown
Orange Brown-white
Green-white Green
Blue Blue-white
Blue-white Blue
Green Green-white
Brown-white Orange
Brown Orange-white
Auxiliary Connectivity
Interfaces of a Router
•LAN Interface
−Attachment Unit Interface (AUI) 10 Mbps
−RJ 45 Ethernet / FastEthernet / GigabitEthernet
•WAN Interface
−Normal Serial Interface
−Smart Serial Interface
•Administrative Interface
−Console
−Auxiliary
Internal Components of a Router
Internal Components of Router
•Flash memory
−The Internetwork Operating System (IOS) is stored here.
−IOS is a Cisco proprietary operating system.
Internal Components of Router
ROM loads Bootstrap program and searches for the IOS ROM
RJ-45
Connector
Console Port
•Cisco Routers & Switches does not have any default IP address or Configuration, hence
require to use the Console port for Initial Configuration.
•Require physical connection between the Cisco Router/Switch and PC via console cable.
Emulation Software
WINDOWS
•Hyper-terminal / Putty / Teraterm
LINUX
•Minicom -s
Initial Configuration
Con 0
R1
E0
Switch
Accessing Router
Console
R1
E0
10.0.0.1/8
Switch
Computer IP Address
10.0.0.10
•Accessing router via console from Microsoft Windows Computer
• Start a terminal emulator application, such as PUTTY.exe
•Select Serial option and set speed to 9600
•Click Open
WAN Technologies
Types of WAN Technologies
•Dedicated service
−Leased Line
•MLLN (Managed Leased Line Networks)
•Circuit switching
−PSTN (Public Switched Telephone Networks)
−ISDN (Integrated Services Digital Networks)
•Packet Switching
−Frame-relay
−MPLS (Multi Protocol Label Switching)
−ATM (Asynchronous Transfer Mode)
•Broadband
−DSL
−Cable Internet
•VSAT
•MOBILE - 3G/4G
WAN Connectivity
Wan Connectivity
Hyderabad Bangalore
Hyderabad Bangalore
MUX MUX
Fiber Optic
R1 R2
E0 Pair of E0
192.168.2.1/24 Copper wire 10.0.0.0/8
DCE DTE
•When the distance between two Routers is short, a special V.35 Back to Back Cable is
used to replace the copper wire, CSU/DSU and MUX.
•For data communication using back to back Serial cable, one end has to be a DCE and
the other has to be a DTE.
ROUTER 1
DCE DTE
ROUTER 2
Encapsulation
PPP HDLC
R1 R3
E0/0 S0/0 S0/1 F0/0
Switch Switch
S0/0/1 S0/0/0
R2
G0/0
Switch
Interface IP Address / Mask Interface IP Address / Mask
G0/0 10.0.0.1/8
Serial Interface Configuration
To check DCE/DTE
•Router# Show controllers Serial < no. >
Verification
•Router# Show interface Serial <no. >
WAN Interface Configuration
The first step to establish the WAN connection is to configure the Serial (WAN) interface.
By default the serial interface on the Router does not have IP address, encapsulation is HDLC and the
interface is in shutdown state.
Check for DTE or DCE interface, so that the clock rate can be configured on the DCE interface.
Output:
KEY# show controllers serial 0/0
Interface Serial0/0
Hardware is PowerQUICC MPC860
DTE V.35 TX and RX clocks detected
idb at 0x8096C8CC, driver data structure at 0x80971DD0
SCC Registers:
General [GSMR]=0x2:0x00000030, Protocol-specific [PSMR]=0x8
Events [SCCE]=0x0000, Mask [SCCM]=0x001F, Status [SCCS]=0x06
Transmit on Demand [TODR]=0x0, Data Sync [DSR]=0x7E7E
---More ---
The following are the commands to assign IP, encapsulation & enable the serial port:
Syntax:
Router(config-if)# clockrate <clockrate vlaue> ---- Clock rate has to be given in DCE routers
Router(config-if)# no shutdown
Check the serial interface connectivity
Syntax:
Router# show interface serial <no>
Output:
Router# show interface serial 0/0
Serial0/0 is up, line protocol is up
(Encapsulation mismatch or clock rate has not been given on the DCE interface or Lease Line problem )
(Problem with the v.35 cable, CSU/DSU or ‘no shutdown’ has not been given on the remote Router)
Note: Unless both serial & line protocol is up Interface will not work(transfer the data)
Router# show flash
System flash directory:
File Length Name/status
1 3420472 c2600-i-mz_120-9.bin
[3420536 bytes used, 4968072 available, 8388608 total]
8192K bytes of processor board System flash (Read/Write)
The “?” provides context sensitive help, it provides the command syntax or the commands
supported in the various IOS modes.
Example 1:
Router>?
Exec commands:
Similarly the context sensitive help can be used in all IOS modes and commands.
Command line editing:
Router#
•Routing is the process of moving IP packets from one network to another network.
•Routing involves two basic activities:
−Determining best paths.
−Forwarding packets through these paths.
IP Routing
S0/0/1 S0/0/0
R2
S0/1
S0/0
DATA
R1 S0/0 R3
S0/1
F0/0
E0/0
DATA
Switch Switch
•The Head office router’s Ethernet interface should be in the same network as the Head
office LAN and similarly on Branch office side, the router’s Ethernet interface should
belong to the same network as the branch office LAN.
•The serial interface between the head office and the branch office should be in same
network.
•Head office LAN and Branch office LAN should be in different network.
•All interfaces of a Router should be in different network.
Types of Routing
•Static Routing
•Default Routing
•Dynamic Routing
Static
Routing
Static Routing
S0/0 S0/0/0
S0/0/0 R3
R1 R2 R3
E0/0 Fa0/0 Fa0/0
Switch Switch
S0/0/1 11.0.0.1/30
Static Route Configuration
Or
Verification
•Router# Show ip route
Advantages and Disadvantages of Static routing
Advantages Disadvantages
Output:
IND# show ip route
The above output implies that IP Routing process is disabled. To enable IP Routing use the
following
command in Global Configuration Mode:
Command:
Router(config)# ip routing
To verify the routing table after routing is enabled.
Output:
Once routing is enabled the directly connected networks are automatically added into the routing table.
“C" represents directly connected networks. The IP Network was learnt through the local Interface of the
router.
To configure static routing use the following syntax:
Syntax:
OR
S0/0 S0/0/0
S0/0/0 R3
R1 R2 R3
E0/0 Fa0/0 Fa0/0
Switch Switch
S0/0/1 11.0.0.1/30
To view the routing table for verification of Static Route
Syntax:
Router# show ip route
Output:
Router# show ip route
“S” represents Static route. The IP Network was defined through the Static routing command.
Syntax:
Router# ping <IP of destination PC>
Output:
Router# ping 192.168.1.10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.10, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 72/79/91 ms
To enable the log messages on Telnet session, give the following command. (By default log messages can
be
seen only on Console connectivity - Hyper-terminal/Putty)
To view log messages for any changes in the routing table, use the following command:
Router# debug ip routing
To view the source and destination of the packet, use the following command:
Router# debug ip packet
Dynamic Routing
Advantages of Dynamic routing
•Distance vector
−RIP (Routing Information Protocol)
−IGRP (Interior gateway routing protocol)
•Link-state
−OSPF (open shortest path first)
−IS-IS (intermediate system to intermediate system)
RIP
Routing Information Protocol
RIP v1 RIP v2
RIP configuration
Router(config)# ip routing
Router(config)# router rip
Router(config-router)# network < Network ID >
Verification
Router# Show ip route
•Neighbor Table
−Contains information about directly connected neighbors.
•Topology Table
−Contains entries for all destinations, along with the feasible distance and the
advertised distance.
−Contains the successors.
−Contains feasible successor if any.
•Routing Table
−Entries with the best path for each destination from the Topology table are moved
into the Routing Table
EIGRP Terminology
•Feasible Distance FD :
−Feasible distance (FD) is the metric of the best route to a destination, including the
local link distance.
−Feasible distance = advertised distance + local link distance (of the best path)
•Successor :
−The neighbor with best distance to the destination.
•Feasible Successor :
−The neighbor with second best distance to the destination, which meets this
criteria: advertised distance should be less than the feasible distance (AD <FD)
EIGRP - Neighbor Table
10
S0
Hello S1 Hello
S0
B 15 E
S2 S1 S2
20
10
S0 S1 S1
Hello
10 Hello
A S2 D
S0
EIGRP - Topology Table
10
TOPOLOGY TABLE (Router A)
Network Neighbor TD AD FD S0
10.0.0.0/8 via B 30 30 S 10
via E 35 FS 25 Update S1 Update
via D 45 35 S0
B 15 E
S2 S1 S2
20
10
S0 S1 S1
10 Update
A S2 D
S0
EIGRP - Routing Table
10
TOPOLOGY TABLE (Router A)
Network Neighbor TD AD FD S0
10.0.0.0/8 via B 30 30 S 10
via E 35 FS 25 S1
via D 45 35 S0
B 15 E
S2 S1 S2
ROUTING TABLE (Router A)
20
D 10.0.0.0/8 [90/30] via B, 01:36, Serial0
10
S0 S1 S1
10
A S2 D
S0
Autonomous System
EIGRP configuration
•Router(config)# ip routing
•Router(config)# router eigrp <As no. >
•Router(config-router)# network < Network ID >
Verification
To check Routing Table
•Router # show ip route
To check Neighbor Table
•Router # show ip eigrp neighbor
To check Topology Table
•Router # show ip eigrp topology
To configure EIGRP routing protocol
Use the following command to enable EIGRP and advertise directly connected networks.
Syntax:
Router(config)# router eigrp <autonomous system no>
(The Autonomous system number is between 1 – 65535)
Show commands:
Jammu#show ip route
Jammu#show ip protocols
2172416 / 28160: In the output 2172416 is the feasible distance and 28160 is the advertised distance.
Feasible distance is the total distance from you till the destination.
P: Passive: means the router is not looking for the route actively, thus it means it is in
good situation.
IGP EGP
EGP
BGP
Data
ABC - AS 100
−IGPs operate within an autonomous system
XYZ - AS 200
−EGPs connect different autonomous systems
Summarization
•Route summarization takes a set of contiguous networks or subnets and groups them
together using a shorter subnet mask.
•The advantages of summarization are that it reduces the number of entries in the route
table.
EIGRP summarization
To disable auto-summarization
Router(config)# router eigrp <As. no.>
Router(config-router)# no auto-summary
EIGRP Passive interface
•The interface can be configured as passive , for stopping the hellos and Updates.
•The passive interface cannot send any hellos over the interface , but it can receive
hellos.
•Neighbor
−Routers that share a common link become neighbors.
−Neighbors are discovered by Hello Packets.
−To become neighbors the following should match
•Area ID
•Network ID and Subnet Mask
•Hello and Dead Intervals
•Authentication
•Adjacencies
−Adjacencies are formed once neighbor relation is established.
−In Adjacencies the database details are exchanged.
OSPF Tables
10
S0
Hello S1 Hello
S0
B 15 E
S2 S1 S2
20
10
S0 S1 S1
Hello
10 Hello
A S2 D
S0
OSPF - Database Table
10
DATABASE TABLE (Router A)
C S0
S0 Update
LAN – 10.0.0.0/8 Update
Update S1 Router E
S0 Router B S0
Router B
S1 S0
B
Router C
15 E
Router C
B E S2 S1 S2
S2 S1 S2
20
S0
10
S1 S1
AA S2
S0 D S0 S1 S1
Update
Router D
10 Router E
A S2 D
Router B
S0 Router C
OSPF - Database Table
10
DATABASE TABLE (Router A)
C S0
S0
LAN – 10.0.0.0/8 S1
S0
S0
S1 S0
B 15 E
B E S2 S1 S2
S2 S1 S2
20
S0
10
S1 S1
AA S2
S0 D S0 S1 S1
E.g.
255.255.255.255 255.255.255.255
– 255.255.255. 0 – 255.255.255.240
------------------------ ------------------------
0. 0. 0.255 0. 0. 0. 15
OSPF Single Area
S0/1
S0/0
R1 R3
E0/0 S0/0 S0/1 F0/0
AREA 0
Switch Switch
S0/0/1 S0/0/0
R2
fa0/0
Switch
OSPF configuration and Verification syntax
OSPF configuration
•Router(config)# ip routing
•Router(config)# router ospf < Process ID >
•Router(config-router)# network < Network ID > <Wildcard mask >
area <area ID >
Verification
To check Routing Table
•Router # show ip route
To check Neighbor Table
•Router # show ip ospf neighbor
To check Database Table
•Router # show ip ospf database
Multi Area
S0/1 S0/0
R1 R3
E0/0 S0/0 AREA 0 S0/1 F0/0
Switch Switch
AREA 1
S0/0/1 S0/0/0
R2 AREA 2
G0/0
Switch
OSPF in LAN
R2
R3
R1 G0/0 10.0.0.2
F0/0 10.0.0.3
R1 E0/0 10.0.0.1
SW1
R4 R4
DR and BDR
My SPF Algorithm Is
Running Too many times!!!
I’m Receiving too many
LSA!!!
Area 0
Area 0
ABR ABR
Area 1 Area 2
ABR and ASBR
1 Router LSAs
2 Network LSAs
3 Summary LSAs
LSA Type - 1
Area 10 Area 0
LSA1
Router ID - A
A
11.0.0.0/8 B C D
11.0.0.1/8
LSA Type - 2
•One Network (type 2) LSA for each transit broadcast or NBMA network in an area
Includes Network ID, subnet mask and list of attached routers on that transit link
•Advertised by the DR of the transit network
•Floods within its area only; does not cross ABR
LSA Type - 2
Area 0
Area 10
B D F
A
LSA2
Router ID - E
E
11.0.0.0/8
DR C
LSA Type - 3
•Type 3 LSAs are used to flood network information to areas outside the originating area
(inter-area)
contains network ID and subnet mask
•Advertised by the ABR of originating area
•Regenerated by subsequent ABRs to flood throughout the autonomous system.
•By default, routes are not summarized and there is one type 3 LSA for every subnet
LSA Type - 3
Area 0
Area 10 Area 20
LSA1 LSA3 LSA3
Router ID - A Router ID - B Router ID - D
A
11.0.0.0/8 11.0.0.0/8
B C D
11.0.0.0/8
E
11.0.0.1/8
Disadvantages of OSPF