SlideShare a Scribd company logo
OSPF (Open Shortest Path First) Part- III
Topology
R1 (config) #int fa0/0
R1 (config-if) #ip add 192.168.101.1 255.255.255.0
R1 (config-if) #no shut
R1 (config) #int s0/0
R1 (config-if) #ip add 192.168.1.1 255.255.255.0
R1 (config-if) #no shut
R2 (config) #int fa0/0
R2 (config-if) #ip add 192.168.102.1 255.255.255.0
R2 (config-if) #no shut
R2 (config) #int s0/0
R2 (config-if) #ip add 192.168.1.2 255.255.255.0
R2 (config-if) #no shut
Figure 1 OSPF Topology
OSPF (Open Shortest Path First) Part- III
R2 (config) #int s0/1
R2 (config-if) #ip add 192.168.2.1 255.255.255.0
R2 (config-if) #no shut
R3 (config) #int f0/0
R3 (config-if) #ip add 192.168.103.1 255.255.255.0
R3 (config-if) #no shut
R3 (config) #int s0/0
R3 (config-if) #ip add 192.168.2.2 255.255.255.0
R3 (config-if) #no shut
R3 (config) #int s0/1
R3 (config-if) #ip add 192.168.3.1 255.255.255.0
R3 (config-if) #no shut
R3 (config) #int s0/2
R3 (config-if) #ip add 192.168.6.1 255.255.255.0
R3 (config-if) #no shut
R3 (config) #int s0/3
R3 (config-if) #ip add 101.1.1.100 255.255.255.0
R3 (config-if) #no shut
R4 (config) #int fa0/0
R4 (config-if) #ip add 192.168.104.1 255.255.255.0
R4 (config-if) #no shut
R4 (config) #int s0/0
R4 (config-if) #ip add 192.168.3.2 255.255.255.0
R4 (config-if) #no shut
R4 (config) #int s0/1
R4 (config-if) #ip add 192.168.4.1 255.255.255.0
R4 (config-if) #no shut
R5 (config) #int f0/0
R5 (config-if) #ip add 192.168.105.1 255.255.255.0
R5 (config-if) #no shut
R5 (config) #int s0/0
R5 (config-if) #ip add 192.168.4.2 255.255.255.0
R5 (config-if) #no shut
R5 (config) #int s0/1
R5 (config-if) #ip add 192.168.5.1 255.255.255.0
R5 (config-if) #no shut
R6 (config) #int f0/0
R6 (config-if) #ip add 192.168.106.1 255.255.255.0
OSPF (Open Shortest Path First) Part- III
R6 (config-if) #no shut
R6 (config) #int s0/0
R6 (config-if) #ip add 192.168.5.2 255.255.255.0
R6 (config-if) #no shut
R6 (config) #int loo 1
R6 (config-if) #ip add 172.60.1.1 255.255.255.0
R6 (config) #int loo 2
R6 (config-if) #ip add 172.60.2.1 255.255.255.0
R6 (config) #int loo 3
R6 (config-if) #ip add 172.60.3.1 255.255.255.0
R6 (config) #int loo 4
R6 (config-if) #ip add 172.60.4.1 255.255.255.0
R6 (config) #int loo 5
R6 (config-if) #ip add 172.60.5.1 255.255.255.0
R7 (config) #int fa0/0
R7 (config-if) #ip add 192.168.107.1 255.255.255.0
R7 (config-if) #no shut
R7 (config) #int s0/0
R7 (config-if) #ip add 192.168.6.2 255.255.255.0
R7 (config-if) #no shut
R7 (config) #int loo 1
R7 (config-if) #ip add 172.70.1.1 255.255.255.0
R7 (config) #int loo 2
R7 (config-if) #ip add 172.70.2.1 255.255.255.0
R7 (config) #int loo 3
R7 (config-if) #ip add 172.70.3.1 255.255.255.0
R7 (config) #int loo 4
R7 (config-if) #ip add 172.70.4.1 255.255.255.0
R7 (config) #int loo 5
R7 (config-if) #ip add 172.70.5.1 255.255.255.0
R7#ping 192.168.6.1
R7#ping 192.168.6.1
Successful
ISP (config) #int fa0/0
ISP (config-if) #ip add 102.1.1.1 255.255.255.0
ISP (config-if) #no shut
ISP (config) #int s0/0
ISP (config-if) #ip add 101.1.1.1 255.255.255.0
OSPF (Open Shortest Path First) Part- III
ISP (config-if) #no shut
OSPF Configuration
R1 (config) #int fa0/0
R1 (config-if) #ip os 100 area 1
R1 (config) #int s0/0
R1 (config-if) #ip os 100 area 1
R2 (config) #int fa0/0
R2 (config-if) #ip os 100 area 1
R2 (config) #int s0/0
R2 (config-if) #ip os 100 area 1
R2 (config) #int s0/1
R2 (config-if) #ip os 100 area 0
R3 (config) #int fa0/0
R3 (config-if) #ip os 100 area 0
R3 (config) #int s0/0
R3 (config-if) #ip os 100 area 0
R3 (config) #int s0/1
R3 (config-if) #ip os 100 area 0
R3 (config-if) #router ei 100
R3 (config-router) #no auto-summary
R3 (config-router) #network 192.168.6.0
R4 (config) #int fa0/0
R4 (config-if) #ip os 100 area 2
R4 (config) #int s0/0
R4 (config-if) #ip os 100 area 0
R4 (config) #int s0/1
R4 (config-if) #ip os 100 area 2
R5 (config) #int s0/0
R5 (config-if) #ip os 100 area 2
R5 (config-if) #router ei 200
R5 (config-router) #no auto-summary
R5 (config-router) #network 192.168.105.0
R5 (config-router) #network 192.168.5.0
R6 (config-if) #router ei 200
R6 (config-router) #no auto-summary
OSPF (Open Shortest Path First) Part- III
R6 (config-router) #network 0.0.0.0
R7 (config-if) #router ei 200
R7 (config-router) #no auto-summary
R7 (config-router) #network 0.0.0.0
R3#sh ip route
Now we want to communicate OSPF domain with ei 100 domain.
For that we will perform here redistribution
R3 (config) #router os 100
R3 (config-router) #redistribute ei 100 subnets metric-type 1
R3 (config-router) #router ei 100
R3 (config-router) #redistribute os 100 metric 1 1 1 1 1
We performed here two way of redistribution.
R1#ping 172.70.1.1 source fa0/0
Successful
R1#sh ip route os
Here we can see two types of routes
First is intra area (which belongs to its area)
OIA means Inter area
E – External Area
Now our task is configure area 1 is as stub.
R1 (config) #router os 100
R1 (config-router) #area 1 stub
R2 (config) #router os 100
R2 (config-router) #area 1 stub
Requirements for stub area
1. Virtual links are not allowed
2. Area 0 can’t be stub
3. All the routers must be agree that we are a part of stub area. If you are configuring R1, that area
1 is stub so it is your duty you have to configure R2 that area 1 is stub, if you will not configure,
neighborship will not established.
OSPF (Open Shortest Path First) Part- III
R1#sh ip route os
R1#ping 172.70.1.1 source fa0/0
Successful
R2 #sh ip route
It contains entire ospf routes.
Now we will see totally stub, it filters the external routes and inter area routes, and places them as a
default route.
R2 (config) #router os 100
R2 (config) #area 1 stub no-summary
R1#sh ip route os
We can see small routing table here
R5#sh ip route os
R5 (config) #router os 100
R5 (config-router) #area 2 stub
R4 (config) #router os 100
R4 (config-router) #area 2 stub no-summary
R5#sh ip route os
R5#ping 192.168.101.1 source s0/0
successful
Now we will perform redistribution on R5
R5 (config) #router os 100
R5 (config-router) #redistribute ei 200 subnets metric-type 1
R5 (config) #router ei 200
R5 (config-router) #redistribute os 100 metric 1 1 1 1 1
R3#sh ip route
Here we cannot see 172.60.0.0 routes
Now we will configure NSSA
First we need to remove this command here
R4 (config) #router os 100
R4 (config-router) #no area 2 stub
OSPF (Open Shortest Path First) Part- III
R5 (config) #router os 100
R5 (config-router) #no area 2 stub
If we will remove stub command totally stub command will removed automatically.
R4 (config) #router os 100
R4 (config-router) #area 2 nssa
R5 (config) #router os 100
R5 (config-router) #area 2 nssa
R3#sh ip route
Here we can see
O E 1 – 172.60.1.0 to 5
R7#sh ip route ei
Here we can see this route 172.60.1.0 to 5
R4#sh ip route os
It contain 70 series here 172.70.0.0
R5#sh ip route os
It doesn’t contain the route of 172.70.0.0
R5#ping 172.70.1.1
not successful
Now we will configure Totally NSSA on R4
R4 (config) #router os 100
R4 (config-router) #area 2 nssa no-summary default-information-originate
R5#ping 172.70.1.1
successful
R6#ping 172.70.1.1
successful
R6#ping 172.70.1.1 source fa0/0
successful
OSPF (Open Shortest Path First) Part- III
Now we will remove stub and totally stub from area 1
R1 (config) #router os 100
R1 (config-router) #no area 1 stub
R2 (config) #router os 100
R2 (config-router) #no area 1 stub
Now here we will provide the internet access on all routers.
R3 is directly connected with the ISP router.
R3#ping 101.1.1.1 successful.
R3#ping 102.1.1.1 not successful.
Now we will create default route on R3 towards ISP
R3 (config) #Ip route 0.0.0.0 0.0.0.0 101.1.1.1
R3#ping 102.1.1.1 successful
R3#ping 101.1.1.1 successful
Here R3 is able to communicate with the ISP
R3#ping 102.1.1.1 source fa0/0
not successful.
R3 (config) #int s0/0
R3 (config-if) #ip nat inside
R3 (config-if-nat) #int s0/1
R3 (config-if) #ip nat inside
R3 (config-if-nat) #int s0/2
R3 (config-if) #ip nat inside
R3 (config-if-nat) #int s0/3
R3 (config-if) #ip nat outside
R3 (config-if-nat) #int f0/0
R3 (config-if) #ip nat inside
R3 (config) #access-list 10 permit any
R3 (config-access) #ip nat inside source list 10 int s0/3 overload
R3#ping 102.1.1.1 source fa0/0 successful
R3#sh ip nat translation
Now we will provide the internet access to all areas.
R2#sh ip route
It hasn’t any default route so it can’t communicate with the internet.
OSPF (Open Shortest Path First) Part- III
R3 (config) #router os 100
R3 (config-router) #default-information originate always
R2 #sh ip route
Here we can see a default route O*E2 0.0.0.0/0
R1#piing 102.1.1.1 source fa0/0 successful
R6#ping 102.1.1.1 source loo1 successful
R7#ping 102.1.1.1 source loo1 not successful
R7#sh ip route
It doesn’t contain default route
R3 (config) #ip summary-address ei 100 0.0.0.0 0.0.0.0
R3#sh ip route
D* 0.0.0.0 / 0
Now we can see here default route.
R7#ping 102.1.1.1 source loo 1
successful
There are three ways to generate default route in Eigrp
1. Redistribution
2. Summarization
3. IP default network.
Now here we will check LSAs.
R1#sh ip ospf database
 Router LSA
Router LSA contains router ID of a router. It is sent within an area.
Router ID
(i) Highest Loop Back
(ii) Highest Up Physical int IP
(iii) Router ID
Here we can see two router ID
OSPF (Open Shortest Path First) Part- III
192.168.101.1
192.168.102.1
 Network LSA
It contains DR router ID and it is sent by DR.
DR & BDR are elected only in Broadcast and non-broadcast multi-access network.
We have point to point link, so DR and BDR is not available.
We will make forcefully it broadcast segment via command.
R1 (config) #int s0/0
R1 (config-if) #ip os network broadcast
R2 (config) #int s0/0
R2 (config-if) #ip os network broadcast
R1#sh ip os neighbor
R1#debug ip os adj
R1#clear ip os process
Yes
R1#un all
We can see first is Down state. Attempt state only happens in frame-realy. To check init we need to go
on R2.
R2#debug ip os adj
R2#clear ip process
Yes
R2#un all
Here we can see init.
 Network LSA
Contain DR ID
For DR
(i) Highest router Priority
(ii) Highest router ID
Router 2 is DR here.
OSPF (Open Shortest Path First) Part- III
 Summary LSA
When a route of one area goes to another area they go as summary SLA. It is sent by ABR.
Here R2 is ABR
 AS LSA
It contains ASBR router ID & it is sent by ABR
R3 is ASBR here
 External LSA
It contains External routes. It is sent by ASBR.
172.70 series sending R3
172.60 series sending R4
 Group Membership LSA – It is not supported by cisco.
 NSSA– It allows an ASBR to send external area through stub area to backbone area using LSA 7.
R5#sh ip os database
R4#sh ip os database
R3#sh ip os database

More Related Content

What's hot (18)

DOCX
Ccna command
Siddhartha Rajbhatt
 
PPTX
Cisco CCNA- How to Configure Multi-Layer Switch
Hamed Moghaddam
 
PPTX
Juniper JNCIA – Juniper RIP and OSPF Route Configuration
Hamed Moghaddam
 
PPTX
Cisco CCNA-Standard Access List
Hamed Moghaddam
 
PPTX
Cisco CCNA EIGRP IPV6 Configuration
Hamed Moghaddam
 
PPTX
Cisco CCNA CCNP VACL Configuration
Hamed Moghaddam
 
PPTX
Cisco CCNA IPV6 Static Configuration
Hamed Moghaddam
 
PPTX
Juniper JNCIA – Juniper Floating Static Route Configuration
Hamed Moghaddam
 
PPTX
Cisco CCNA- PPP Multilink Configuration
Hamed Moghaddam
 
PPTX
Juniper JNCIA – Juniper RIP Route Configuration
Hamed Moghaddam
 
PDF
CCNA - Routing & Switching Commands
Eng. Emad Al-Atoum
 
PPTX
Cisco CCNA-CCNP IP SLA Configuration
Hamed Moghaddam
 
PPTX
Cisco CCNA GRE Tunnel Configuration
Hamed Moghaddam
 
PDF
Basic cisco commands_by_marcus_nielson_2
MAFANTIRI SELLO
 
PPTX
Cisco CCNA- NAT Configuration
Hamed Moghaddam
 
PPTX
Cisco CCNA-Router on Stick
Hamed Moghaddam
 
DOC
Ccna commands
Hajji Mboowa Yahaya
 
PDF
IPSec VPN
NetProtocol Xpert
 
Ccna command
Siddhartha Rajbhatt
 
Cisco CCNA- How to Configure Multi-Layer Switch
Hamed Moghaddam
 
Juniper JNCIA – Juniper RIP and OSPF Route Configuration
Hamed Moghaddam
 
Cisco CCNA-Standard Access List
Hamed Moghaddam
 
Cisco CCNA EIGRP IPV6 Configuration
Hamed Moghaddam
 
Cisco CCNA CCNP VACL Configuration
Hamed Moghaddam
 
Cisco CCNA IPV6 Static Configuration
Hamed Moghaddam
 
Juniper JNCIA – Juniper Floating Static Route Configuration
Hamed Moghaddam
 
Cisco CCNA- PPP Multilink Configuration
Hamed Moghaddam
 
Juniper JNCIA – Juniper RIP Route Configuration
Hamed Moghaddam
 
CCNA - Routing & Switching Commands
Eng. Emad Al-Atoum
 
Cisco CCNA-CCNP IP SLA Configuration
Hamed Moghaddam
 
Cisco CCNA GRE Tunnel Configuration
Hamed Moghaddam
 
Basic cisco commands_by_marcus_nielson_2
MAFANTIRI SELLO
 
Cisco CCNA- NAT Configuration
Hamed Moghaddam
 
Cisco CCNA-Router on Stick
Hamed Moghaddam
 
Ccna commands
Hajji Mboowa Yahaya
 

Viewers also liked (20)

PDF
119163798 icnd1-practice-questions-9tut
nicolelemmimg
 
PDF
Networking Devices
Netwax Lab
 
PDF
Introduction of Networking
Netwax Lab
 
PDF
VPN (virtual private network)
Netwax Lab
 
PDF
Nxll24 i pv6
Netwax Lab
 
PDF
Eincop Netwax Lab: EIGRP iii
Netwax Lab
 
PDF
Wireless Technology
Netwax Lab
 
PDF
TCP Intercept
Netwax Lab
 
PDF
STP Protection
Netwax Lab
 
PDF
IP Address
Netwax Lab
 
PDF
Nxll23 i pv6
Netwax Lab
 
PDF
SSL Web VPN
Netwax Lab
 
PDF
VRF Configuration
Netwax Lab
 
PDF
Cisco Internetworking Operating System (ios)
Netwax Lab
 
PDF
Frame Relay
Netwax Lab
 
PDF
Nxll10 v lan and trunking
Netwax Lab
 
PDF
VLAN (virtual local area network)
Netwax Lab
 
PDF
Why We Need IPv6
Netwax Lab
 
PDF
Proxy Server
Netwax Lab
 
PDF
Routed Protocol
Netwax Lab
 
119163798 icnd1-practice-questions-9tut
nicolelemmimg
 
Networking Devices
Netwax Lab
 
Introduction of Networking
Netwax Lab
 
VPN (virtual private network)
Netwax Lab
 
Nxll24 i pv6
Netwax Lab
 
Eincop Netwax Lab: EIGRP iii
Netwax Lab
 
Wireless Technology
Netwax Lab
 
TCP Intercept
Netwax Lab
 
STP Protection
Netwax Lab
 
IP Address
Netwax Lab
 
Nxll23 i pv6
Netwax Lab
 
SSL Web VPN
Netwax Lab
 
VRF Configuration
Netwax Lab
 
Cisco Internetworking Operating System (ios)
Netwax Lab
 
Frame Relay
Netwax Lab
 
Nxll10 v lan and trunking
Netwax Lab
 
VLAN (virtual local area network)
Netwax Lab
 
Why We Need IPv6
Netwax Lab
 
Proxy Server
Netwax Lab
 
Routed Protocol
Netwax Lab
 
Ad

Similar to OSPF (open shortest path first) part iii (20)

PPTX
OSPF Virtual Link
NetProtocol Xpert
 
DOC
Ccna commands
Hajji Mboowa Yahaya
 
PDF
Ccna Commands In 10 Minutes
CCNAResources
 
PDF
Ccna commands
bunthon oun
 
DOCX
Ccnacommand 140205001152-phpapp01
A.S.M Shmimul Islam.
 
PPT
Dynamic routing OSPF 1
Kishore Kumar
 
PDF
Ciso commands
MAFANTIRI SELLO
 
PDF
Ciso commands
MAFANTIRI SELLO
 
PDF
Service Provider Networks and Frame Relay
Tharindu Sankalpa
 
PPTX
OSPF Routing.pptxsdgfsdegdsgddgdgdgdgdgdg
zmulani8
 
PDF
RIP (routing information protocol)
Netwax Lab
 
PDF
Networking Lab Report
Syed Ahmed Zaki
 
PPTX
Frame Relay (Multipoint)
NetProtocol Xpert
 
PPTX
How to configure frame realy
NetProtocol Xpert
 
DOC
Networking Tutorial Goes to Basic PPP Configuration
3Anetwork com
 
PPTX
GRE Tunnel Configuration
NetProtocol Xpert
 
PPTX
Lan Network with Redundancy.ppt
Santanu Mukhopadhyay
 
PPTX
Lan Network with Redundancy
Santanu Mukherjee
 
PDF
Aula04 - configuração da topologia ppp - resolvido
Carlos Veiga
 
DOCX
How to Configure Routing Information Protocol (RIP)
IT Tech
 
OSPF Virtual Link
NetProtocol Xpert
 
Ccna commands
Hajji Mboowa Yahaya
 
Ccna Commands In 10 Minutes
CCNAResources
 
Ccna commands
bunthon oun
 
Ccnacommand 140205001152-phpapp01
A.S.M Shmimul Islam.
 
Dynamic routing OSPF 1
Kishore Kumar
 
Ciso commands
MAFANTIRI SELLO
 
Ciso commands
MAFANTIRI SELLO
 
Service Provider Networks and Frame Relay
Tharindu Sankalpa
 
OSPF Routing.pptxsdgfsdegdsgddgdgdgdgdgdg
zmulani8
 
RIP (routing information protocol)
Netwax Lab
 
Networking Lab Report
Syed Ahmed Zaki
 
Frame Relay (Multipoint)
NetProtocol Xpert
 
How to configure frame realy
NetProtocol Xpert
 
Networking Tutorial Goes to Basic PPP Configuration
3Anetwork com
 
GRE Tunnel Configuration
NetProtocol Xpert
 
Lan Network with Redundancy.ppt
Santanu Mukhopadhyay
 
Lan Network with Redundancy
Santanu Mukherjee
 
Aula04 - configuração da topologia ppp - resolvido
Carlos Veiga
 
How to Configure Routing Information Protocol (RIP)
IT Tech
 
Ad

More from Netwax Lab (20)

PDF
Eincop Netwax Lab: Lab 1 static route
Netwax Lab
 
PDF
Eincop Netwax Lab: HSRP (Hot Standby Router Protocol)
Netwax Lab
 
PDF
Eincop Netwax Lab: Redistribution
Netwax Lab
 
PDF
Eincop Netwax Lab: Route Redistribution
Netwax Lab
 
PDF
Nxll12 zone based firewall
Netwax Lab
 
PDF
Nxll11 bgp
Netwax Lab
 
PDF
Nxll09 access list
Netwax Lab
 
PDF
Nxll21 ospf filtering & summarization
Netwax Lab
 
PDF
Nxll16 basic asa v8.2
Netwax Lab
 
PDF
Nxll20 na ting
Netwax Lab
 
PDF
Nxll14 cut through-proxy on asa
Netwax Lab
 
PDF
Nxll17 dynamic routing with asa
Netwax Lab
 
PDF
Nxll18 vpn (s2 s gre & dmvpn)
Netwax Lab
 
PDF
Nxll19 vrrp (virtual router redundancy protocol)
Netwax Lab
 
PDF
Nxll22 role based cli
Netwax Lab
 
PDF
Nxll25 hsrp with failover
Netwax Lab
 
PDF
Nxll26 bgp ii
Netwax Lab
 
PDF
Nxll28 ospf iii
Netwax Lab
 
PDF
Eincop Netwax Lab: Vlan and Trunking ii
Netwax Lab
 
PDF
Eincop Netwax Lab: EIGRP ii
Netwax Lab
 
Eincop Netwax Lab: Lab 1 static route
Netwax Lab
 
Eincop Netwax Lab: HSRP (Hot Standby Router Protocol)
Netwax Lab
 
Eincop Netwax Lab: Redistribution
Netwax Lab
 
Eincop Netwax Lab: Route Redistribution
Netwax Lab
 
Nxll12 zone based firewall
Netwax Lab
 
Nxll11 bgp
Netwax Lab
 
Nxll09 access list
Netwax Lab
 
Nxll21 ospf filtering & summarization
Netwax Lab
 
Nxll16 basic asa v8.2
Netwax Lab
 
Nxll20 na ting
Netwax Lab
 
Nxll14 cut through-proxy on asa
Netwax Lab
 
Nxll17 dynamic routing with asa
Netwax Lab
 
Nxll18 vpn (s2 s gre & dmvpn)
Netwax Lab
 
Nxll19 vrrp (virtual router redundancy protocol)
Netwax Lab
 
Nxll22 role based cli
Netwax Lab
 
Nxll25 hsrp with failover
Netwax Lab
 
Nxll26 bgp ii
Netwax Lab
 
Nxll28 ospf iii
Netwax Lab
 
Eincop Netwax Lab: Vlan and Trunking ii
Netwax Lab
 
Eincop Netwax Lab: EIGRP ii
Netwax Lab
 

Recently uploaded (20)

PDF
Empowering Cloud Providers with Apache CloudStack and Stackbill
ShapeBlue
 
PDF
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
PDF
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PPTX
Darren Mills The Migration Modernization Balancing Act: Navigating Risks and...
AWS Chicago
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PDF
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
CloudStack GPU Integration - Rohit Yadav
ShapeBlue
 
PPTX
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
PPTX
Building a Production-Ready Barts Health Secure Data Environment Tooling, Acc...
Barts Health
 
PPTX
Extensions Framework (XaaS) - Enabling Orchestrate Anything
ShapeBlue
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
Français Patch Tuesday - Juillet
Ivanti
 
Empowering Cloud Providers with Apache CloudStack and Stackbill
ShapeBlue
 
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
Darren Mills The Migration Modernization Balancing Act: Navigating Risks and...
AWS Chicago
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
CloudStack GPU Integration - Rohit Yadav
ShapeBlue
 
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
Building a Production-Ready Barts Health Secure Data Environment Tooling, Acc...
Barts Health
 
Extensions Framework (XaaS) - Enabling Orchestrate Anything
ShapeBlue
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Français Patch Tuesday - Juillet
Ivanti
 

OSPF (open shortest path first) part iii

  • 1. OSPF (Open Shortest Path First) Part- III Topology R1 (config) #int fa0/0 R1 (config-if) #ip add 192.168.101.1 255.255.255.0 R1 (config-if) #no shut R1 (config) #int s0/0 R1 (config-if) #ip add 192.168.1.1 255.255.255.0 R1 (config-if) #no shut R2 (config) #int fa0/0 R2 (config-if) #ip add 192.168.102.1 255.255.255.0 R2 (config-if) #no shut R2 (config) #int s0/0 R2 (config-if) #ip add 192.168.1.2 255.255.255.0 R2 (config-if) #no shut Figure 1 OSPF Topology
  • 2. OSPF (Open Shortest Path First) Part- III R2 (config) #int s0/1 R2 (config-if) #ip add 192.168.2.1 255.255.255.0 R2 (config-if) #no shut R3 (config) #int f0/0 R3 (config-if) #ip add 192.168.103.1 255.255.255.0 R3 (config-if) #no shut R3 (config) #int s0/0 R3 (config-if) #ip add 192.168.2.2 255.255.255.0 R3 (config-if) #no shut R3 (config) #int s0/1 R3 (config-if) #ip add 192.168.3.1 255.255.255.0 R3 (config-if) #no shut R3 (config) #int s0/2 R3 (config-if) #ip add 192.168.6.1 255.255.255.0 R3 (config-if) #no shut R3 (config) #int s0/3 R3 (config-if) #ip add 101.1.1.100 255.255.255.0 R3 (config-if) #no shut R4 (config) #int fa0/0 R4 (config-if) #ip add 192.168.104.1 255.255.255.0 R4 (config-if) #no shut R4 (config) #int s0/0 R4 (config-if) #ip add 192.168.3.2 255.255.255.0 R4 (config-if) #no shut R4 (config) #int s0/1 R4 (config-if) #ip add 192.168.4.1 255.255.255.0 R4 (config-if) #no shut R5 (config) #int f0/0 R5 (config-if) #ip add 192.168.105.1 255.255.255.0 R5 (config-if) #no shut R5 (config) #int s0/0 R5 (config-if) #ip add 192.168.4.2 255.255.255.0 R5 (config-if) #no shut R5 (config) #int s0/1 R5 (config-if) #ip add 192.168.5.1 255.255.255.0 R5 (config-if) #no shut R6 (config) #int f0/0 R6 (config-if) #ip add 192.168.106.1 255.255.255.0
  • 3. OSPF (Open Shortest Path First) Part- III R6 (config-if) #no shut R6 (config) #int s0/0 R6 (config-if) #ip add 192.168.5.2 255.255.255.0 R6 (config-if) #no shut R6 (config) #int loo 1 R6 (config-if) #ip add 172.60.1.1 255.255.255.0 R6 (config) #int loo 2 R6 (config-if) #ip add 172.60.2.1 255.255.255.0 R6 (config) #int loo 3 R6 (config-if) #ip add 172.60.3.1 255.255.255.0 R6 (config) #int loo 4 R6 (config-if) #ip add 172.60.4.1 255.255.255.0 R6 (config) #int loo 5 R6 (config-if) #ip add 172.60.5.1 255.255.255.0 R7 (config) #int fa0/0 R7 (config-if) #ip add 192.168.107.1 255.255.255.0 R7 (config-if) #no shut R7 (config) #int s0/0 R7 (config-if) #ip add 192.168.6.2 255.255.255.0 R7 (config-if) #no shut R7 (config) #int loo 1 R7 (config-if) #ip add 172.70.1.1 255.255.255.0 R7 (config) #int loo 2 R7 (config-if) #ip add 172.70.2.1 255.255.255.0 R7 (config) #int loo 3 R7 (config-if) #ip add 172.70.3.1 255.255.255.0 R7 (config) #int loo 4 R7 (config-if) #ip add 172.70.4.1 255.255.255.0 R7 (config) #int loo 5 R7 (config-if) #ip add 172.70.5.1 255.255.255.0 R7#ping 192.168.6.1 R7#ping 192.168.6.1 Successful ISP (config) #int fa0/0 ISP (config-if) #ip add 102.1.1.1 255.255.255.0 ISP (config-if) #no shut ISP (config) #int s0/0 ISP (config-if) #ip add 101.1.1.1 255.255.255.0
  • 4. OSPF (Open Shortest Path First) Part- III ISP (config-if) #no shut OSPF Configuration R1 (config) #int fa0/0 R1 (config-if) #ip os 100 area 1 R1 (config) #int s0/0 R1 (config-if) #ip os 100 area 1 R2 (config) #int fa0/0 R2 (config-if) #ip os 100 area 1 R2 (config) #int s0/0 R2 (config-if) #ip os 100 area 1 R2 (config) #int s0/1 R2 (config-if) #ip os 100 area 0 R3 (config) #int fa0/0 R3 (config-if) #ip os 100 area 0 R3 (config) #int s0/0 R3 (config-if) #ip os 100 area 0 R3 (config) #int s0/1 R3 (config-if) #ip os 100 area 0 R3 (config-if) #router ei 100 R3 (config-router) #no auto-summary R3 (config-router) #network 192.168.6.0 R4 (config) #int fa0/0 R4 (config-if) #ip os 100 area 2 R4 (config) #int s0/0 R4 (config-if) #ip os 100 area 0 R4 (config) #int s0/1 R4 (config-if) #ip os 100 area 2 R5 (config) #int s0/0 R5 (config-if) #ip os 100 area 2 R5 (config-if) #router ei 200 R5 (config-router) #no auto-summary R5 (config-router) #network 192.168.105.0 R5 (config-router) #network 192.168.5.0 R6 (config-if) #router ei 200 R6 (config-router) #no auto-summary
  • 5. OSPF (Open Shortest Path First) Part- III R6 (config-router) #network 0.0.0.0 R7 (config-if) #router ei 200 R7 (config-router) #no auto-summary R7 (config-router) #network 0.0.0.0 R3#sh ip route Now we want to communicate OSPF domain with ei 100 domain. For that we will perform here redistribution R3 (config) #router os 100 R3 (config-router) #redistribute ei 100 subnets metric-type 1 R3 (config-router) #router ei 100 R3 (config-router) #redistribute os 100 metric 1 1 1 1 1 We performed here two way of redistribution. R1#ping 172.70.1.1 source fa0/0 Successful R1#sh ip route os Here we can see two types of routes First is intra area (which belongs to its area) OIA means Inter area E – External Area Now our task is configure area 1 is as stub. R1 (config) #router os 100 R1 (config-router) #area 1 stub R2 (config) #router os 100 R2 (config-router) #area 1 stub Requirements for stub area 1. Virtual links are not allowed 2. Area 0 can’t be stub 3. All the routers must be agree that we are a part of stub area. If you are configuring R1, that area 1 is stub so it is your duty you have to configure R2 that area 1 is stub, if you will not configure, neighborship will not established.
  • 6. OSPF (Open Shortest Path First) Part- III R1#sh ip route os R1#ping 172.70.1.1 source fa0/0 Successful R2 #sh ip route It contains entire ospf routes. Now we will see totally stub, it filters the external routes and inter area routes, and places them as a default route. R2 (config) #router os 100 R2 (config) #area 1 stub no-summary R1#sh ip route os We can see small routing table here R5#sh ip route os R5 (config) #router os 100 R5 (config-router) #area 2 stub R4 (config) #router os 100 R4 (config-router) #area 2 stub no-summary R5#sh ip route os R5#ping 192.168.101.1 source s0/0 successful Now we will perform redistribution on R5 R5 (config) #router os 100 R5 (config-router) #redistribute ei 200 subnets metric-type 1 R5 (config) #router ei 200 R5 (config-router) #redistribute os 100 metric 1 1 1 1 1 R3#sh ip route Here we cannot see 172.60.0.0 routes Now we will configure NSSA First we need to remove this command here R4 (config) #router os 100 R4 (config-router) #no area 2 stub
  • 7. OSPF (Open Shortest Path First) Part- III R5 (config) #router os 100 R5 (config-router) #no area 2 stub If we will remove stub command totally stub command will removed automatically. R4 (config) #router os 100 R4 (config-router) #area 2 nssa R5 (config) #router os 100 R5 (config-router) #area 2 nssa R3#sh ip route Here we can see O E 1 – 172.60.1.0 to 5 R7#sh ip route ei Here we can see this route 172.60.1.0 to 5 R4#sh ip route os It contain 70 series here 172.70.0.0 R5#sh ip route os It doesn’t contain the route of 172.70.0.0 R5#ping 172.70.1.1 not successful Now we will configure Totally NSSA on R4 R4 (config) #router os 100 R4 (config-router) #area 2 nssa no-summary default-information-originate R5#ping 172.70.1.1 successful R6#ping 172.70.1.1 successful R6#ping 172.70.1.1 source fa0/0 successful
  • 8. OSPF (Open Shortest Path First) Part- III Now we will remove stub and totally stub from area 1 R1 (config) #router os 100 R1 (config-router) #no area 1 stub R2 (config) #router os 100 R2 (config-router) #no area 1 stub Now here we will provide the internet access on all routers. R3 is directly connected with the ISP router. R3#ping 101.1.1.1 successful. R3#ping 102.1.1.1 not successful. Now we will create default route on R3 towards ISP R3 (config) #Ip route 0.0.0.0 0.0.0.0 101.1.1.1 R3#ping 102.1.1.1 successful R3#ping 101.1.1.1 successful Here R3 is able to communicate with the ISP R3#ping 102.1.1.1 source fa0/0 not successful. R3 (config) #int s0/0 R3 (config-if) #ip nat inside R3 (config-if-nat) #int s0/1 R3 (config-if) #ip nat inside R3 (config-if-nat) #int s0/2 R3 (config-if) #ip nat inside R3 (config-if-nat) #int s0/3 R3 (config-if) #ip nat outside R3 (config-if-nat) #int f0/0 R3 (config-if) #ip nat inside R3 (config) #access-list 10 permit any R3 (config-access) #ip nat inside source list 10 int s0/3 overload R3#ping 102.1.1.1 source fa0/0 successful R3#sh ip nat translation Now we will provide the internet access to all areas. R2#sh ip route It hasn’t any default route so it can’t communicate with the internet.
  • 9. OSPF (Open Shortest Path First) Part- III R3 (config) #router os 100 R3 (config-router) #default-information originate always R2 #sh ip route Here we can see a default route O*E2 0.0.0.0/0 R1#piing 102.1.1.1 source fa0/0 successful R6#ping 102.1.1.1 source loo1 successful R7#ping 102.1.1.1 source loo1 not successful R7#sh ip route It doesn’t contain default route R3 (config) #ip summary-address ei 100 0.0.0.0 0.0.0.0 R3#sh ip route D* 0.0.0.0 / 0 Now we can see here default route. R7#ping 102.1.1.1 source loo 1 successful There are three ways to generate default route in Eigrp 1. Redistribution 2. Summarization 3. IP default network. Now here we will check LSAs. R1#sh ip ospf database  Router LSA Router LSA contains router ID of a router. It is sent within an area. Router ID (i) Highest Loop Back (ii) Highest Up Physical int IP (iii) Router ID Here we can see two router ID
  • 10. OSPF (Open Shortest Path First) Part- III 192.168.101.1 192.168.102.1  Network LSA It contains DR router ID and it is sent by DR. DR & BDR are elected only in Broadcast and non-broadcast multi-access network. We have point to point link, so DR and BDR is not available. We will make forcefully it broadcast segment via command. R1 (config) #int s0/0 R1 (config-if) #ip os network broadcast R2 (config) #int s0/0 R2 (config-if) #ip os network broadcast R1#sh ip os neighbor R1#debug ip os adj R1#clear ip os process Yes R1#un all We can see first is Down state. Attempt state only happens in frame-realy. To check init we need to go on R2. R2#debug ip os adj R2#clear ip process Yes R2#un all Here we can see init.  Network LSA Contain DR ID For DR (i) Highest router Priority (ii) Highest router ID Router 2 is DR here.
  • 11. OSPF (Open Shortest Path First) Part- III  Summary LSA When a route of one area goes to another area they go as summary SLA. It is sent by ABR. Here R2 is ABR  AS LSA It contains ASBR router ID & it is sent by ABR R3 is ASBR here  External LSA It contains External routes. It is sent by ASBR. 172.70 series sending R3 172.60 series sending R4  Group Membership LSA – It is not supported by cisco.  NSSA– It allows an ASBR to send external area through stub area to backbone area using LSA 7. R5#sh ip os database R4#sh ip os database R3#sh ip os database