SlideShare a Scribd company logo
OSPF (Open Shortest Path First) Part- II
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-if) #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-if) #int s0/0
R2 (config-if) #ip add 192.168.1.2 255.255.255.0
R2 (config-if) #no shut
R2 (config-if) #int s0/1
R2 (config-if) #ip add 192.168.2.1 255.255.255.0
R2 (config-if) #no shut
Figure 1 OSPF Topology
OSPF (Open Shortest Path First) Part- II
R3 (config) #int fa0/0
R3 (config-if) #ip add 192.168.103.1 255.255.255.0
R3 (config-if) #no shut
R3 (config-if) #int s0/0
R3 (config-if) #ip add 192.168.2.2 255.255.255.0
R3 (config-if) #no shut
R3 (config-if) #int s0/1
R3 (config-if) #ip add 192.168.3.1 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-if) #int s0/0
R4 (config-if) #ip add 192.168.3.2 255.255.255.0
R4 (config-if) #no shut
R4 (config-if) #int s0/1
R4 (config-if) #ip add 192.168.4.1 255.255.255.0
R4 (config-if) #no shut
R4 (config-if) #int s0/2
R4 (config-if) #ip add 192.168.7.1 255.255.255.0
R4 (config-if) #no shut
R5 (config) #int fa0/0
R5 (config-if) #ip add 192.168.105.1 255.255.255.0
R5 (config-if) #no shut
R5 (config-if) #int s0/0
R5 (config-if) #ip add 192.168.4.2 255.255.255.0
R5 (config-if) #no shut
R5 (config-if) #int s0/1
R5 (config-if) #ip add 192.168.5.1 255.255.255.0
R5 (config-if) #no shut
R5 (config-if) #int lo1
R5 (config-if) #ip add 170.50.1.1 255.255.255.0
R5 (config-if) #int lo2
R5 (config-if) #ip add 170.50.2.1 255.255.255.0
R5 (config-if) #int lo3
R5 (config-if) #ip add 170.50.3.1 255.255.255.0
R5 (config-if) #int lo4
R5 (config-if) #ip add 170.50.4.1 255.255.255.0
R5 (config-if) #int lo5
OSPF (Open Shortest Path First) Part- II
R5 (config-if) #ip add 170.50.5.1 255.255.255.0
R6 (config) #int fa0/0
R6 (config-if) #ip add 192.168.106.1 255.255.255.0
R6 (config-if) #no shut
R6 (config-if) #int s0/0
R6 (config-if) #ip add 192.168.5.2 255.255.255.0
R6 (config-if) #no shut
R6 (config-if) #int s0/1
R6 (config-if) #ip add 192.168.6.1 255.255.255.0
R6 (config-if) #no shut
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-if) #int s0/0
R7 (config-if) #ip add 192.168.6.2 255.255.255.0
R7 (config-if) #no shut
R7 (config-if) #int lo1
R7 (config-if) #ip add 170.70.1.1 255.255.255.0
R7 (config-if) #int lo2
R7 (config-if) #ip add 170.70.2.1 255.255.255.0
R7 (config-if) #int lo3
R7 (config-if) #ip add 170.70.3.1 255.255.255.0
R7 (config-if) #int lo4
R7 (config-if) #ip add 170.70.4.1 255.255.255.0
R7 (config-if) #int lo5
R7 (config-if) #ip add 170.70.5.1 255.255.255.0
R8 (config) #int fa0/0
R8 (config-if) #ip add 192.168.108.1 255.255.255.0
R8 (config-if) #no shut
R8 (config-if) #int s0/0
R8 (config-if) #ip add 192.168.7.2 255.255.255.0
R8 (config-if) #no shut
R8 (config-if) #int lo1
R8 (config-if) #ip add 170.80.1.1 255.255.255.0
R8 (config-if) #int lo2
R8 (config-if) #ip add 170.80.2.1 255.255.255.0
R8 (config-if) #int lo3
R8 (config-if) #ip add 170.80.3.1 255.255.255.0
OSPF (Open Shortest Path First) Part- II
R8 (config-if) #int lo4
R8 (config-if) #ip add 170.80.4.1 255.255.255.0
R8 (config-if) #int lo5
R8 (config-if) #ip add 170.80.5.1 255.255.255.0
 Now we will run routing protocol on each router.
R1 (config) #router ospf 100
R1 (config-router) #router-id 1.1.1.1
R1 (config-router) #int fa0/0
R1 (config-if) #ip ospf 100 area 2
R1 (config-router) #int s0/0
R1 (config-if) #ip ospf 100 area 2
R2 (config) #router ospf 100
R2 (config-router) #router-id 2.2.2.2
R2 (config-router) #int fa0/0
R2 (config-if) #ip ospf 100 area 2
R2 (config-router) #int s0/0
R2 (config-if) #ip ospf 100 area 2
R2 (config-router) #int s0/1
R2 (config-if) #ip ospf 100 area 1
R3 (config) #router ospf 100
R3 (config-router) #router-id 3.3.3.3
R3 (config-router) #int fa0/0
R3 (config-if) #ip ospf 100 area 1
R3 (config-router) #int s0/0
R3 (config-if) #ip ospf 100 area 1
R3 (config-router) #int s0/1
R3 (config-if) #ip ospf 100 area 0
R4 (config) #router ospf 100
R4 (config-router) #router-id 4.4.4.4
R4 (config-router) #int fa0/0
R4 (config-if) #ip ospf 100 area 0
R4 (config-router) #int s0/0
R4 (config-if) #ip ospf 100 area 0
R4 (config-router) #int s0/1
R4 (config-if) #ip ospf 100 area 0
R4 (config) #router ei 100
R4 (config-router) #no auto-summary
OSPF (Open Shortest Path First) Part- II
R4 (config-router) #network 192.168.7.0
R5 (config) #router ospf 100
R5 (config-router) #router-id 5.5.5.5
R5 (config-router) #int fa0/0
R5 (config-if) #ip ospf 100 area 3
R5 (config-router) #int s0/0
R5 (config-if) #ip ospf 100 area 0
R5 (config-router) #int s0/1
R5 (config-if) #ip ospf 100 area 3
R5 (config-router) #int lo1
R5 (config-if) #ip ospf 100 area 3
R5 (config-router) #int lo2
R5 (config-if) #ip ospf 100 area 3
R5 (config-router) #int lo3
R5 (config-if) #ip ospf 100 area 3
R5 (config-router) #int lo4
R5 (config-if) #ip ospf 100 area 3
R5 (config-router) #int lo5
R5 (config-if) #ip ospf 100 area 3
R6 (config) #router ospf 100
R6 (config-router) #router-id 6.6.6.6
R6 (config-router) #int s0/0
R6 (config-if) #ip ospf 100 area 3
R6 (config-router) #router ei 200
R6 (config-router) #no auto-summary
R6 (config-router) #network 192.168.6.0
R6 (config-router) #network 192.168.106.0
R7 (config) #router ei 200
R7 (config) #no auto-summary
R7 (config) #network 0.0.0.0
R8 (config) #router ei 100
R8 (config-router) #no auto-summary
R8 (config-router) #network 0.0.0.0
R1#sh ip route
OSPF (Open Shortest Path First) Part- II
Here we can see only one route, because R1 is in Area 2 and it is not directly connected with area 0.
Each area must be connected with area 0. Now we will create virtual link to connect area 2 with area 0.
 Virtual link would be created on edge to edge router.
R2 (config) #router os 100
R2 (config-router) #area 1 virtual link 3.3.3.3
R3 (config) #router os 100
R3 (config-router) #area 1 virtual link 2.2.2.2
R1#sh ip route os
R1#ping 192.168.5.2 successful
R1#ping 172.30.1.1 successful
 OSPF creates three tables
R1#sh ip os neighbor
R1#sh ip os database
R1#sh ip route os
 Passive-Interface
R1 (config) #router os 100
R1 (config-router) #passive-interface default
This command will apply on each interface.
R1 (config-router) #no passive-interface s0/0
If we want to make only fa0/0 passive then we need to apply only on fa0/0
R1 (config) #router os 100
R1 (config-router) #passive-interface fa0/0
 OSPF Authentication
R1 (config) #int s0/0
R1 (config-if) #ip ospf authentication message-digest
R1 (config-if) #ip ospf message-digest key 1 md-5 Mani
R1#sh ip ospf neighbor
After 40 sec neighborship will be down.
R1#debug ip ospf events
OSPF (Open Shortest Path First) Part- II
Mismatch authentication.
R1#un all
R2 (config) #int s0/0
R2 (config-if) #ip ospf authentication message-digest
R2 (config-if) #ip ospf message-digest key 1 md-5 Mani
Neighborship will be up.
 Now we will check hello & hold timers
R1#sh ip ospf int s0/0
Hello – 10 sec Dead 40 sec
We will change the timer
R1 (config) #int s0/0
R1 (config-if) #ip ospf hello-interval 5
R1#sh ip os int s0/0
Hello 5 Dead 20
We can see if we change hello, Dead will be changed automatically.
R1#sh ip os ne
Neighborship will be break. In ospf hello and dead interval must match for the neighborship.
R1#clear ip os process
Yes
R1#debug ip os events
Mismatch hello parameter
R – Received
C – Configured
R2 (config) #int s0/0
R2 (config-if) #ip os hello-interval 5
Neighborship will be build-up
Now we will change Dead interval
OSPF (Open Shortest Path First) Part- II
R2 (config) #int s0/0
R2 (config-if) #ip os dead-interval 15
R2#sh ip int os s0/0
When we change dead, hello will not change automatically.
R2#debug ip os events
R2#un all
R1 (config) #int s0/0
R1 (config-if) #ip os dead-interval 15
Neighborship will be buildup
Now OSPF domain should be communicated with Eigrp 100.
 For that we will perform redistribution.
R4 (config) #router os 100
R4 (config-router) #redistribute ei 100
R1#sh ip route os
E2 – 192.168.108.0
E2 – 192.168.7.0
By default it would advertise classfull network. If we want to advertise classless also then we need to
add a keyword “Subnets”.
R4 (config) #router os 100
R4 (config-router) #redistribute ei 100 subnets
R1#sh ip route os
Now we can see the classless network also. 172.50.0.0.
O – OSPF
E2 – External (Metric type 2)
Now we can see external routes metric is 20 on each route.
That is not true.
Default metric 20
Here internal cost should be added.
OSPF (Open Shortest Path First) Part- II
R4 (config) #router os 100
R4 (config-router) #redistribute ei 100 subnets metric-type 1
Metric type 1 means add internal cost also when you exchange routes.
R1#sh ip route
OE – 172.30.4.0 (110/212) previously it was 20.
Above we redistributed Eigrp in ospf
 Now we will redistribute ospf in Eigrp
R4 (config) #router ei 100
R4 (config-router) #redistribute os 100 metric 1 1 1 1 1
R1#ping 172.30.1.1 successful
R1#sh ip route
Here we can see two types of route, External routes and Inter area routes.
There are two types of summarization
1. External Summarization (ASBR)
2. Inter Area Summarization (ABR)
ASBR router is router no 4 here.
R4 (config) #router os 100
R4 (config-router) #summary-address 172.80.0.0 255.255.248.0
R1#sh ip route
Here we can see only one route of 172.80.0.0/21
R1#ping 172.80.1.1
R1#ping 172.80.1.1
Successful
Now we will remove it.
R4 (config) #router os 100
R4 (config-router) #no summary-address 172.80.0.0 255.255.248.0
 Now we will summarize inter area routes.
It will perform on ABR.
OSPF (Open Shortest Path First) Part- II
We will summarize the network 172.50.0.0 network. For that ABR is R5.
R5 (config) #router os 100
R5 (config-router) #area 3 range 172.50.0.0 255.255.248.0
R1#sh ip route os
Here we can see summarized inter area routes.
R1#ping 172.50.1.1
R1#ping 172.50.1.1
Successful

More Related Content

What's hot (18)

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

Viewers also liked (20)

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

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

PDF
OSPF_Exercises.pdf
Denis Rasskazov
 
PPT
Day 12 enabling ospf
CYBERINTELLIGENTS
 
PPTX
Лекц 15
Muuluu
 
PPT
Dynamic routing OSPF 1
Kishore Kumar
 
PDF
Configure ospf v3 single areaa
jebong03
 
PPT
acit mumbai - ospf rouitng
Sleek International
 
PPTX
Redistribution into OSPF
NetProtocol Xpert
 
DOC
Networking Tutorial Goes to Basic PPP Configuration
3Anetwork com
 
PPT
OSPF 3
Kishore Kumar
 
PPT
OSPF 3
Kishore Kumar
 
PPT
Routing and OSPF
arpit
 
PPT
Chapter7ccna
Lakshan Perera
 
DOCX
Lab 9 instructions
trayyoo
 
PDF
6to4tunnel sample config
jebong03
 
PDF
Practice Lab CSC
Salachudin Emir
 
PPTX
Eigrp Basics
Alp isik
 
PDF
How to configure the basic OSPF?
E-Lins Technology Co. Ltd.
 
PPT
Chapter7ccna
ernestlithur
 
PPT
Chapter7ccna
robertoxe
 
OSPF_Exercises.pdf
Denis Rasskazov
 
Day 12 enabling ospf
CYBERINTELLIGENTS
 
Лекц 15
Muuluu
 
Dynamic routing OSPF 1
Kishore Kumar
 
Configure ospf v3 single areaa
jebong03
 
acit mumbai - ospf rouitng
Sleek International
 
Redistribution into OSPF
NetProtocol Xpert
 
Networking Tutorial Goes to Basic PPP Configuration
3Anetwork com
 
Routing and OSPF
arpit
 
Chapter7ccna
Lakshan Perera
 
Lab 9 instructions
trayyoo
 
6to4tunnel sample config
jebong03
 
Practice Lab CSC
Salachudin Emir
 
Eigrp Basics
Alp isik
 
How to configure the basic OSPF?
E-Lins Technology Co. Ltd.
 
Chapter7ccna
ernestlithur
 
Chapter7ccna
robertoxe
 
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
Women in Automation Presents: Reinventing Yourself — Bold Career Pivots That ...
DianaGray10
 
PPTX
Darren Mills The Migration Modernization Balancing Act: Navigating Risks and...
AWS Chicago
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
Rethinking Security Operations - SOC Evolution Journey.pdf
Haris Chughtai
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PPTX
Building a Production-Ready Barts Health Secure Data Environment Tooling, Acc...
Barts Health
 
PPT
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PPTX
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
PPTX
Extensions Framework (XaaS) - Enabling Orchestrate Anything
ShapeBlue
 
PDF
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
PDF
Ampere Offers Energy-Efficient Future For AI And Cloud
ShapeBlue
 
PDF
Meetup Kickoff & Welcome - Rohit Yadav, CSIUG Chairman
ShapeBlue
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PPTX
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
Women in Automation Presents: Reinventing Yourself — Bold Career Pivots That ...
DianaGray10
 
Darren Mills The Migration Modernization Balancing Act: Navigating Risks and...
AWS Chicago
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
Rethinking Security Operations - SOC Evolution Journey.pdf
Haris Chughtai
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Building a Production-Ready Barts Health Secure Data Environment Tooling, Acc...
Barts Health
 
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
Extensions Framework (XaaS) - Enabling Orchestrate Anything
ShapeBlue
 
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
Ampere Offers Energy-Efficient Future For AI And Cloud
ShapeBlue
 
Meetup Kickoff & Welcome - Rohit Yadav, CSIUG Chairman
ShapeBlue
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 

OSPF (open shortest path first) part ii

  • 1. OSPF (Open Shortest Path First) Part- II 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-if) #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-if) #int s0/0 R2 (config-if) #ip add 192.168.1.2 255.255.255.0 R2 (config-if) #no shut R2 (config-if) #int s0/1 R2 (config-if) #ip add 192.168.2.1 255.255.255.0 R2 (config-if) #no shut Figure 1 OSPF Topology
  • 2. OSPF (Open Shortest Path First) Part- II R3 (config) #int fa0/0 R3 (config-if) #ip add 192.168.103.1 255.255.255.0 R3 (config-if) #no shut R3 (config-if) #int s0/0 R3 (config-if) #ip add 192.168.2.2 255.255.255.0 R3 (config-if) #no shut R3 (config-if) #int s0/1 R3 (config-if) #ip add 192.168.3.1 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-if) #int s0/0 R4 (config-if) #ip add 192.168.3.2 255.255.255.0 R4 (config-if) #no shut R4 (config-if) #int s0/1 R4 (config-if) #ip add 192.168.4.1 255.255.255.0 R4 (config-if) #no shut R4 (config-if) #int s0/2 R4 (config-if) #ip add 192.168.7.1 255.255.255.0 R4 (config-if) #no shut R5 (config) #int fa0/0 R5 (config-if) #ip add 192.168.105.1 255.255.255.0 R5 (config-if) #no shut R5 (config-if) #int s0/0 R5 (config-if) #ip add 192.168.4.2 255.255.255.0 R5 (config-if) #no shut R5 (config-if) #int s0/1 R5 (config-if) #ip add 192.168.5.1 255.255.255.0 R5 (config-if) #no shut R5 (config-if) #int lo1 R5 (config-if) #ip add 170.50.1.1 255.255.255.0 R5 (config-if) #int lo2 R5 (config-if) #ip add 170.50.2.1 255.255.255.0 R5 (config-if) #int lo3 R5 (config-if) #ip add 170.50.3.1 255.255.255.0 R5 (config-if) #int lo4 R5 (config-if) #ip add 170.50.4.1 255.255.255.0 R5 (config-if) #int lo5
  • 3. OSPF (Open Shortest Path First) Part- II R5 (config-if) #ip add 170.50.5.1 255.255.255.0 R6 (config) #int fa0/0 R6 (config-if) #ip add 192.168.106.1 255.255.255.0 R6 (config-if) #no shut R6 (config-if) #int s0/0 R6 (config-if) #ip add 192.168.5.2 255.255.255.0 R6 (config-if) #no shut R6 (config-if) #int s0/1 R6 (config-if) #ip add 192.168.6.1 255.255.255.0 R6 (config-if) #no shut 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-if) #int s0/0 R7 (config-if) #ip add 192.168.6.2 255.255.255.0 R7 (config-if) #no shut R7 (config-if) #int lo1 R7 (config-if) #ip add 170.70.1.1 255.255.255.0 R7 (config-if) #int lo2 R7 (config-if) #ip add 170.70.2.1 255.255.255.0 R7 (config-if) #int lo3 R7 (config-if) #ip add 170.70.3.1 255.255.255.0 R7 (config-if) #int lo4 R7 (config-if) #ip add 170.70.4.1 255.255.255.0 R7 (config-if) #int lo5 R7 (config-if) #ip add 170.70.5.1 255.255.255.0 R8 (config) #int fa0/0 R8 (config-if) #ip add 192.168.108.1 255.255.255.0 R8 (config-if) #no shut R8 (config-if) #int s0/0 R8 (config-if) #ip add 192.168.7.2 255.255.255.0 R8 (config-if) #no shut R8 (config-if) #int lo1 R8 (config-if) #ip add 170.80.1.1 255.255.255.0 R8 (config-if) #int lo2 R8 (config-if) #ip add 170.80.2.1 255.255.255.0 R8 (config-if) #int lo3 R8 (config-if) #ip add 170.80.3.1 255.255.255.0
  • 4. OSPF (Open Shortest Path First) Part- II R8 (config-if) #int lo4 R8 (config-if) #ip add 170.80.4.1 255.255.255.0 R8 (config-if) #int lo5 R8 (config-if) #ip add 170.80.5.1 255.255.255.0  Now we will run routing protocol on each router. R1 (config) #router ospf 100 R1 (config-router) #router-id 1.1.1.1 R1 (config-router) #int fa0/0 R1 (config-if) #ip ospf 100 area 2 R1 (config-router) #int s0/0 R1 (config-if) #ip ospf 100 area 2 R2 (config) #router ospf 100 R2 (config-router) #router-id 2.2.2.2 R2 (config-router) #int fa0/0 R2 (config-if) #ip ospf 100 area 2 R2 (config-router) #int s0/0 R2 (config-if) #ip ospf 100 area 2 R2 (config-router) #int s0/1 R2 (config-if) #ip ospf 100 area 1 R3 (config) #router ospf 100 R3 (config-router) #router-id 3.3.3.3 R3 (config-router) #int fa0/0 R3 (config-if) #ip ospf 100 area 1 R3 (config-router) #int s0/0 R3 (config-if) #ip ospf 100 area 1 R3 (config-router) #int s0/1 R3 (config-if) #ip ospf 100 area 0 R4 (config) #router ospf 100 R4 (config-router) #router-id 4.4.4.4 R4 (config-router) #int fa0/0 R4 (config-if) #ip ospf 100 area 0 R4 (config-router) #int s0/0 R4 (config-if) #ip ospf 100 area 0 R4 (config-router) #int s0/1 R4 (config-if) #ip ospf 100 area 0 R4 (config) #router ei 100 R4 (config-router) #no auto-summary
  • 5. OSPF (Open Shortest Path First) Part- II R4 (config-router) #network 192.168.7.0 R5 (config) #router ospf 100 R5 (config-router) #router-id 5.5.5.5 R5 (config-router) #int fa0/0 R5 (config-if) #ip ospf 100 area 3 R5 (config-router) #int s0/0 R5 (config-if) #ip ospf 100 area 0 R5 (config-router) #int s0/1 R5 (config-if) #ip ospf 100 area 3 R5 (config-router) #int lo1 R5 (config-if) #ip ospf 100 area 3 R5 (config-router) #int lo2 R5 (config-if) #ip ospf 100 area 3 R5 (config-router) #int lo3 R5 (config-if) #ip ospf 100 area 3 R5 (config-router) #int lo4 R5 (config-if) #ip ospf 100 area 3 R5 (config-router) #int lo5 R5 (config-if) #ip ospf 100 area 3 R6 (config) #router ospf 100 R6 (config-router) #router-id 6.6.6.6 R6 (config-router) #int s0/0 R6 (config-if) #ip ospf 100 area 3 R6 (config-router) #router ei 200 R6 (config-router) #no auto-summary R6 (config-router) #network 192.168.6.0 R6 (config-router) #network 192.168.106.0 R7 (config) #router ei 200 R7 (config) #no auto-summary R7 (config) #network 0.0.0.0 R8 (config) #router ei 100 R8 (config-router) #no auto-summary R8 (config-router) #network 0.0.0.0 R1#sh ip route
  • 6. OSPF (Open Shortest Path First) Part- II Here we can see only one route, because R1 is in Area 2 and it is not directly connected with area 0. Each area must be connected with area 0. Now we will create virtual link to connect area 2 with area 0.  Virtual link would be created on edge to edge router. R2 (config) #router os 100 R2 (config-router) #area 1 virtual link 3.3.3.3 R3 (config) #router os 100 R3 (config-router) #area 1 virtual link 2.2.2.2 R1#sh ip route os R1#ping 192.168.5.2 successful R1#ping 172.30.1.1 successful  OSPF creates three tables R1#sh ip os neighbor R1#sh ip os database R1#sh ip route os  Passive-Interface R1 (config) #router os 100 R1 (config-router) #passive-interface default This command will apply on each interface. R1 (config-router) #no passive-interface s0/0 If we want to make only fa0/0 passive then we need to apply only on fa0/0 R1 (config) #router os 100 R1 (config-router) #passive-interface fa0/0  OSPF Authentication R1 (config) #int s0/0 R1 (config-if) #ip ospf authentication message-digest R1 (config-if) #ip ospf message-digest key 1 md-5 Mani R1#sh ip ospf neighbor After 40 sec neighborship will be down. R1#debug ip ospf events
  • 7. OSPF (Open Shortest Path First) Part- II Mismatch authentication. R1#un all R2 (config) #int s0/0 R2 (config-if) #ip ospf authentication message-digest R2 (config-if) #ip ospf message-digest key 1 md-5 Mani Neighborship will be up.  Now we will check hello & hold timers R1#sh ip ospf int s0/0 Hello – 10 sec Dead 40 sec We will change the timer R1 (config) #int s0/0 R1 (config-if) #ip ospf hello-interval 5 R1#sh ip os int s0/0 Hello 5 Dead 20 We can see if we change hello, Dead will be changed automatically. R1#sh ip os ne Neighborship will be break. In ospf hello and dead interval must match for the neighborship. R1#clear ip os process Yes R1#debug ip os events Mismatch hello parameter R – Received C – Configured R2 (config) #int s0/0 R2 (config-if) #ip os hello-interval 5 Neighborship will be build-up Now we will change Dead interval
  • 8. OSPF (Open Shortest Path First) Part- II R2 (config) #int s0/0 R2 (config-if) #ip os dead-interval 15 R2#sh ip int os s0/0 When we change dead, hello will not change automatically. R2#debug ip os events R2#un all R1 (config) #int s0/0 R1 (config-if) #ip os dead-interval 15 Neighborship will be buildup Now OSPF domain should be communicated with Eigrp 100.  For that we will perform redistribution. R4 (config) #router os 100 R4 (config-router) #redistribute ei 100 R1#sh ip route os E2 – 192.168.108.0 E2 – 192.168.7.0 By default it would advertise classfull network. If we want to advertise classless also then we need to add a keyword “Subnets”. R4 (config) #router os 100 R4 (config-router) #redistribute ei 100 subnets R1#sh ip route os Now we can see the classless network also. 172.50.0.0. O – OSPF E2 – External (Metric type 2) Now we can see external routes metric is 20 on each route. That is not true. Default metric 20 Here internal cost should be added.
  • 9. OSPF (Open Shortest Path First) Part- II R4 (config) #router os 100 R4 (config-router) #redistribute ei 100 subnets metric-type 1 Metric type 1 means add internal cost also when you exchange routes. R1#sh ip route OE – 172.30.4.0 (110/212) previously it was 20. Above we redistributed Eigrp in ospf  Now we will redistribute ospf in Eigrp R4 (config) #router ei 100 R4 (config-router) #redistribute os 100 metric 1 1 1 1 1 R1#ping 172.30.1.1 successful R1#sh ip route Here we can see two types of route, External routes and Inter area routes. There are two types of summarization 1. External Summarization (ASBR) 2. Inter Area Summarization (ABR) ASBR router is router no 4 here. R4 (config) #router os 100 R4 (config-router) #summary-address 172.80.0.0 255.255.248.0 R1#sh ip route Here we can see only one route of 172.80.0.0/21 R1#ping 172.80.1.1 R1#ping 172.80.1.1 Successful Now we will remove it. R4 (config) #router os 100 R4 (config-router) #no summary-address 172.80.0.0 255.255.248.0  Now we will summarize inter area routes. It will perform on ABR.
  • 10. OSPF (Open Shortest Path First) Part- II We will summarize the network 172.50.0.0 network. For that ABR is R5. R5 (config) #router os 100 R5 (config-router) #area 3 range 172.50.0.0 255.255.248.0 R1#sh ip route os Here we can see summarized inter area routes. R1#ping 172.50.1.1 R1#ping 172.50.1.1 Successful