SlideShare a Scribd company logo
1 of 18
Juniper JNCIA
Juniper OSPF Route Configuration
ASM EDUCATIONAL CENTER INC. (ASM)
WHERETRAINING,TECHNOLOGY&SERVICECONVERGE
CHECKOUTOURJUNIPERTRAININGVIDEOS:WWW.ASMED.COM/J1
Juniper OSPF Route Configuration
Juniper OSPF Route Configuration
In here R1 and R2 are connected via cable
e3 to e3 is 40.40.40.1/24
40.40.40.2/24
Goal is to that R1 will be able go to Loopback address of R2=2.2.2.2 via OSPF
And R2 be able to Ping Loopback of R1=1.1.1.1
Here I will give IP address to R1 em3 and Lo0
root@R1# set interfaces em3 unit 0 family inet address 40.40.40.1/24
root@R1# set interfaces lo0 unit 0 family inet address 1.1.1.1/24
Here are R1 Configuration
Juniper OSPF Route Configuration
root@R1> show configuration
interfaces {
em3 {
unit 0 {
family inet {
address 40.40.40.1/24;
}
}
}
lo0 {
unit 0 {
family inet {
address 1.1.1.1/24;
}
}
}
}
Juniper OSPF Route Configuration
Here I will give IP address to R2 em3 and Lo0
root@R2# set interfaces em3 unit 0 family inet address 40.40.40.2/24
root@R2# set interfaces lo0 unit 0 family inet address 2.2.2.2/24
root@R2# show interfaces
em3 {
unit 0 {
family inet {
address 40.40.40.2/24;
}
}
}
lo0 {
unit 0 {
family inet {
address 2.2.2.2/24;
}
}
}
Juniper OSPF Route Configuration
Now seated at R1 I cannot ping Loopback address of R2=2.2.2.2 Why? Since Network 2.2.2.0 is not inside the
routing table,
root@R1> show route
inet.0: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
1.1.1.0/24 *[Direct/0] 00:12:59
> via lo0.0
1.1.1.1/32 *[Local/0] 00:12:59
Local via lo0.0
40.40.40.0/24 *[Direct/0] 00:12:59
> via em3.0
40.40.40.1/32 *[Local/0] 00:12:59
Local via em3.0
Juniper OSPF Route Configuration
As we see the network 2.2.2.0/24 is not inside the Routing table ; So I will configure it with OSPF on
both R1 and R2 .
Remember you need always advertise connected interface on the OSPF.
root@R1# set protocols ospf area 0.0.0.0 interface em3
root@R1# set protocols ospf area 0.0.0.0 interface lo0
Here is my show commands to check it:
root@R1# show protocols ospf
area 0.0.0.0 {
interface em3.0;
interface lo0.0;
Juniper OSPF Route Configuration
Now I will do same concept in R2, that is advertise each interface em3 and lo0 inside the OSPF
root@R2# set protocols ospf area 0.0.0.0 interface em3
root@R2# set protocols ospf area 0.0.0.0 interface lo0
root@R2# show protocols ospf
area 0.0.0.0 {
interface em3.0;
interface lo0.0;
Juniper OSPF Route Configuration
Now in same way that we use to see my neighbors I will be able to see my neighbors
root@R1> show ospf neighbor
Address Interface State ID Pri Dead
40.40.40.2 em3.0 Full 2.2.2.2 128 35
Here is my routing table on R1
root@R1> show route
inet.0: 7 destinations, 7 routes (7 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
Juniper OSPF Route Configuration
1.1.1.0/24 *[Direct/0] 00:30:07
> via lo0.0
1.1.1.1/32 *[Local/0] 00:30:07
Local via lo0.0
2.2.2.0/24 *[OSPF/10] 00:05:56, metric 1
> to 40.40.40.2 via em3.0
2.2.2.2/32 *[OSPF/10] 00:05:56, metric 1
> to 40.40.40.2 via em3.0
40.40.40.0/24 *[Direct/0] 00:30:07
> via em3.0
40.40.40.1/32 *[Local/0] 00:30:07
Local via em3.0
224.0.0.5/32 *[OSPF/10] 00:12:24, metric 1
MultiRecv
Juniper OSPF Route Configuration
Now since I see network 2.2.2.0/24 on my tables I can ping 2.2.2.2
root@R1> ping 2.2.2.2
PING 2.2.2.2 (2.2.2.2): 56 data bytes
64 bytes from 2.2.2.2: icmp_seq=0 ttl=64 time=0.557 ms
64 bytes from 2.2.2.2: icmp_seq=1 ttl=64 time=0.418 ms
64 bytes from 2.2.2.2: icmp_seq=2 ttl=64 time=0.372 ms
64 bytes from 2.2.2.2: icmp_seq=3 ttl=64 time=0.714 ms
^C
Juniper OSPF Route Configuration
Now lets check the routing table on R2, R2 should be able to see the loopback of R1=1.1.1.0
inside his routing table.
root@R2> show ospf neighbor
Address Interface State ID Pri Dead
40.40.40.1 em3.0 Full 1.1.1.1 128 34
root@R2> show route
inet.0: 7 destinations, 7 routes (7 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
Juniper OSPF Route Configuration
1.1.1.0/24 *[OSPF/10] 00:04:04, metric 1
> to 40.40.40.1 via em3.0
1.1.1.1/32 *[OSPF/10] 00:04:04, metric 1
> to 40.40.40.1 via em3.0
2.2.2.0/24 *[Direct/0] 00:33:38
> via lo0.0
2.2.2.2/32 *[Local/0] 00:33:38
Local via lo0.0
40.40.40.0/24 *[Direct/0] 00:33:38
> via em3.0
40.40.40.2/32 *[Local/0] 00:33:38
Local via em3.0
224.0.0.5/32 *[OSPF/10] 00:08:29, metric 1
MultiRecv
Now since 1.1.1.0 is inside the table I should be able to ping 1.1.1.1 from R2
Juniper OSPF Route Configuration
1.1.1.0/24 *[OSPF/10] 00:04:04, metric 1
> to 40.40.40.1 via em3.0
1.1.1.1/32 *[OSPF/10] 00:04:04, metric 1
> to 40.40.40.1 via em3.0
2.2.2.0/24 *[Direct/0] 00:33:38
> via lo0.0
2.2.2.2/32 *[Local/0] 00:33:38
Local via lo0.0
40.40.40.0/24 *[Direct/0] 00:33:38
> via em3.0
40.40.40.2/32 *[Local/0] 00:33:38
Local via em3.0
224.0.0.5/32 *[OSPF/10] 00:08:29, metric 1
MultiRecv
Now since 1.1.1.0 is inside the table I should be able to ping 1.1.1.1 from R2
Juniper OSPF Route Configuration
root@R2> ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1): 56 data bytes
64 bytes from 1.1.1.1: icmp_seq=0 ttl=64 time=0.471 ms
64 bytes from 1.1.1.1: icmp_seq=1 ttl=64 time=0.836 ms
64 bytes from 1.1.1.1: icmp_seq=2 ttl=64 time=1.159 ms
64 bytes from 1.1.1.1: icmp_seq=3 ttl=64 time=0.843 ms
So summary : make sure always advertise directkty connected inside the OPSF
Juniper OSPF Route Configuration
Here is R1#:
root@R1> show configuration
interfaces {
em3 {
unit 0 {
family inet {
address 40.40.40.1/24;
}
}
}
lo0 {
unit 0 {
family inet {
address 1.1.1.1/24;
}
}
}
}
protocols {
ospf {
area 0.0.0.0 {
interface em3.0;
interface lo0.0;
}
}
}
Juniper OSPF Route Configuration
Here is R2 Configuration:
root@R2> show configuration
interfaces {
em3 {
unit 0 {
family inet {
address 40.40.40.2/24;
}
}
}
lo0 {
unit 0 {
family inet {
address 2.2.2.2/24;
}
}
}
}
protocols {
ospf {
area 0.0.0.0 {
interface em3.0;
interface lo0.0;
}
}
}
ASM EDUCATIONAL CENTER INC. (ASM)
WHERETRAINING,TECHNOLOGY&SERVICECONVERGE
WWW.ASMED.COM

More Related Content

What's hot

Cisco CCNA-Standard Access List
Cisco CCNA-Standard Access ListCisco CCNA-Standard Access List
Cisco CCNA-Standard Access ListHamed Moghaddam
 
Juniper JNCIA – Juniper Floating Static Route Configuration
Juniper JNCIA – Juniper Floating Static Route ConfigurationJuniper JNCIA – Juniper Floating Static Route Configuration
Juniper JNCIA – Juniper Floating Static Route ConfigurationHamed Moghaddam
 
Cisco CCNA CCNP VACL Configuration
Cisco CCNA CCNP VACL ConfigurationCisco CCNA CCNP VACL Configuration
Cisco CCNA CCNP VACL ConfigurationHamed Moghaddam
 
Cisco CCNA-Router on Stick
Cisco CCNA-Router on StickCisco CCNA-Router on Stick
Cisco CCNA-Router on StickHamed Moghaddam
 
CCNA - Routing & Switching Commands
CCNA - Routing & Switching CommandsCCNA - Routing & Switching Commands
CCNA - Routing & Switching CommandsEng. Emad Al-Atoum
 
Cisco CCNA EIGRP IPV6 Configuration
Cisco CCNA EIGRP IPV6 ConfigurationCisco CCNA EIGRP IPV6 Configuration
Cisco CCNA EIGRP IPV6 ConfigurationHamed Moghaddam
 
Cisco CCNA-CCNP IP SLA Configuration
Cisco CCNA-CCNP IP SLA ConfigurationCisco CCNA-CCNP IP SLA Configuration
Cisco CCNA-CCNP IP SLA ConfigurationHamed Moghaddam
 
OSPF (open shortest path first) part iii
OSPF (open shortest path first) part  iiiOSPF (open shortest path first) part  iii
OSPF (open shortest path first) part iiiNetwax Lab
 
Cisco switch commands cheat sheet
Cisco switch commands cheat sheetCisco switch commands cheat sheet
Cisco switch commands cheat sheet3Anetwork com
 
Networking Tutorial Goes to Basic PPP Configuration
Networking Tutorial Goes to Basic PPP ConfigurationNetworking Tutorial Goes to Basic PPP Configuration
Networking Tutorial Goes to Basic PPP Configuration3Anetwork com
 
Cisco CCNA- NAT Configuration
Cisco CCNA- NAT ConfigurationCisco CCNA- NAT Configuration
Cisco CCNA- NAT ConfigurationHamed Moghaddam
 
OSPF (open shortest path first) part ii
OSPF (open shortest path first) part  iiOSPF (open shortest path first) part  ii
OSPF (open shortest path first) part iiNetwax Lab
 
Ccna Commands In 10 Minutes
Ccna Commands In 10 MinutesCcna Commands In 10 Minutes
Ccna Commands In 10 MinutesCCNAResources
 
Cisco CCNA Port Security
Cisco CCNA Port SecurityCisco CCNA Port Security
Cisco CCNA Port SecurityHamed Moghaddam
 
OSPF Route Filtering
OSPF Route FilteringOSPF Route Filtering
OSPF Route FilteringNetwax Lab
 
How to Configure ip address for router interfaces
How to Configure ip address for router interfacesHow to Configure ip address for router interfaces
How to Configure ip address for router interfacestcpipguru
 

What's hot (20)

Cisco CCNA-Standard Access List
Cisco CCNA-Standard Access ListCisco CCNA-Standard Access List
Cisco CCNA-Standard Access List
 
Juniper JNCIA – Juniper Floating Static Route Configuration
Juniper JNCIA – Juniper Floating Static Route ConfigurationJuniper JNCIA – Juniper Floating Static Route Configuration
Juniper JNCIA – Juniper Floating Static Route Configuration
 
Cisco CCNA CCNP VACL Configuration
Cisco CCNA CCNP VACL ConfigurationCisco CCNA CCNP VACL Configuration
Cisco CCNA CCNP VACL Configuration
 
Cisco CCNA-Router on Stick
Cisco CCNA-Router on StickCisco CCNA-Router on Stick
Cisco CCNA-Router on Stick
 
Ccna command
Ccna commandCcna command
Ccna command
 
CCNA - Routing & Switching Commands
CCNA - Routing & Switching CommandsCCNA - Routing & Switching Commands
CCNA - Routing & Switching Commands
 
Cisco CCNA EIGRP IPV6 Configuration
Cisco CCNA EIGRP IPV6 ConfigurationCisco CCNA EIGRP IPV6 Configuration
Cisco CCNA EIGRP IPV6 Configuration
 
Ccna command
Ccna commandCcna command
Ccna command
 
Cisco CCNA-CCNP IP SLA Configuration
Cisco CCNA-CCNP IP SLA ConfigurationCisco CCNA-CCNP IP SLA Configuration
Cisco CCNA-CCNP IP SLA Configuration
 
OSPF (open shortest path first) part iii
OSPF (open shortest path first) part  iiiOSPF (open shortest path first) part  iii
OSPF (open shortest path first) part iii
 
Vo ip avanzado pt
Vo ip avanzado ptVo ip avanzado pt
Vo ip avanzado pt
 
Cisco switch commands cheat sheet
Cisco switch commands cheat sheetCisco switch commands cheat sheet
Cisco switch commands cheat sheet
 
Networking Tutorial Goes to Basic PPP Configuration
Networking Tutorial Goes to Basic PPP ConfigurationNetworking Tutorial Goes to Basic PPP Configuration
Networking Tutorial Goes to Basic PPP Configuration
 
Cisco CCNA- NAT Configuration
Cisco CCNA- NAT ConfigurationCisco CCNA- NAT Configuration
Cisco CCNA- NAT Configuration
 
OSPF (open shortest path first) part ii
OSPF (open shortest path first) part  iiOSPF (open shortest path first) part  ii
OSPF (open shortest path first) part ii
 
Ccna Commands In 10 Minutes
Ccna Commands In 10 MinutesCcna Commands In 10 Minutes
Ccna Commands In 10 Minutes
 
Cisco CCNA Port Security
Cisco CCNA Port SecurityCisco CCNA Port Security
Cisco CCNA Port Security
 
Ccnpswitch
CcnpswitchCcnpswitch
Ccnpswitch
 
OSPF Route Filtering
OSPF Route FilteringOSPF Route Filtering
OSPF Route Filtering
 
How to Configure ip address for router interfaces
How to Configure ip address for router interfacesHow to Configure ip address for router interfaces
How to Configure ip address for router interfaces
 

Similar to Juniper JNCIA – Juniper OSPF Route Configuration

การคอนฟิกส์ OSPF บน Ubiquiti Edge Router
การคอนฟิกส์ OSPF บน Ubiquiti Edge Routerการคอนฟิกส์ OSPF บน Ubiquiti Edge Router
การคอนฟิกส์ OSPF บน Ubiquiti Edge RouterTũi Wichets
 
Лекц 15
Лекц 15Лекц 15
Лекц 15Muuluu
 
OSPF Internal Route Summarization
OSPF Internal Route SummarizationOSPF Internal Route Summarization
OSPF Internal Route SummarizationNetProtocol Xpert
 
Ospf Last Modified Eng
Ospf  Last Modified EngOspf  Last Modified Eng
Ospf Last Modified EngAlp isik
 
How to troubleshoot and verifying ospf configuration
How to troubleshoot and verifying ospf configurationHow to troubleshoot and verifying ospf configuration
How to troubleshoot and verifying ospf configurationIT Tech
 
Ospf Cisco
Ospf CiscoOspf Cisco
Ospf CiscoAlp isik
 
Tiny Server Clustering using Vyatta/VyOS (MEMO)
Tiny Server Clustering using Vyatta/VyOS (MEMO)Tiny Server Clustering using Vyatta/VyOS (MEMO)
Tiny Server Clustering using Vyatta/VyOS (MEMO)Naoto MATSUMOTO
 
Lab_5_OSPF_MPLS_sham_link_on_MPLS_VPN_1698700003.pdf
Lab_5_OSPF_MPLS_sham_link_on_MPLS_VPN_1698700003.pdfLab_5_OSPF_MPLS_sham_link_on_MPLS_VPN_1698700003.pdf
Lab_5_OSPF_MPLS_sham_link_on_MPLS_VPN_1698700003.pdfEnRios1
 
Route Redistribution between OSPF and EIGRP
Route Redistribution between OSPF and EIGRPRoute Redistribution between OSPF and EIGRP
Route Redistribution between OSPF and EIGRPNetProtocol Xpert
 

Similar to Juniper JNCIA – Juniper OSPF Route Configuration (20)

bgp-01
bgp-01bgp-01
bgp-01
 
Labs ospf
Labs ospfLabs ospf
Labs ospf
 
การคอนฟิกส์ OSPF บน Ubiquiti Edge Router
การคอนฟิกส์ OSPF บน Ubiquiti Edge Routerการคอนฟิกส์ OSPF บน Ubiquiti Edge Router
การคอนฟิกส์ OSPF บน Ubiquiti Edge Router
 
OSPF 3
OSPF 3OSPF 3
OSPF 3
 
OSPF 3
OSPF 3OSPF 3
OSPF 3
 
Лекц 15
Лекц 15Лекц 15
Лекц 15
 
OSPF Internal Route Summarization
OSPF Internal Route SummarizationOSPF Internal Route Summarization
OSPF Internal Route Summarization
 
How to configure the basic OSPF?
How to configure the basic OSPF?How to configure the basic OSPF?
How to configure the basic OSPF?
 
OSPF_multi.pdf
OSPF_multi.pdfOSPF_multi.pdf
OSPF_multi.pdf
 
Ospf Last Modified Eng
Ospf  Last Modified EngOspf  Last Modified Eng
Ospf Last Modified Eng
 
How to troubleshoot and verifying ospf configuration
How to troubleshoot and verifying ospf configurationHow to troubleshoot and verifying ospf configuration
How to troubleshoot and verifying ospf configuration
 
OSPF Router LSA (Type 1)
OSPF Router LSA (Type 1)OSPF Router LSA (Type 1)
OSPF Router LSA (Type 1)
 
Ospf Cisco
Ospf CiscoOspf Cisco
Ospf Cisco
 
Tiny Server Clustering using Vyatta/VyOS (MEMO)
Tiny Server Clustering using Vyatta/VyOS (MEMO)Tiny Server Clustering using Vyatta/VyOS (MEMO)
Tiny Server Clustering using Vyatta/VyOS (MEMO)
 
OSPF Virtual Link
OSPF Virtual LinkOSPF Virtual Link
OSPF Virtual Link
 
OSPFv2 on IOS XR
OSPFv2 on IOS XROSPFv2 on IOS XR
OSPFv2 on IOS XR
 
mpls-06
mpls-06mpls-06
mpls-06
 
OSPF_Exercises.pdf
OSPF_Exercises.pdfOSPF_Exercises.pdf
OSPF_Exercises.pdf
 
Lab_5_OSPF_MPLS_sham_link_on_MPLS_VPN_1698700003.pdf
Lab_5_OSPF_MPLS_sham_link_on_MPLS_VPN_1698700003.pdfLab_5_OSPF_MPLS_sham_link_on_MPLS_VPN_1698700003.pdf
Lab_5_OSPF_MPLS_sham_link_on_MPLS_VPN_1698700003.pdf
 
Route Redistribution between OSPF and EIGRP
Route Redistribution between OSPF and EIGRPRoute Redistribution between OSPF and EIGRP
Route Redistribution between OSPF and EIGRP
 

More from Hamed Moghaddam

CISSP Certification Security Engineering-Part2
CISSP Certification Security Engineering-Part2CISSP Certification Security Engineering-Part2
CISSP Certification Security Engineering-Part2Hamed Moghaddam
 
CISSP Certification- Security Engineering-part1
CISSP Certification- Security Engineering-part1CISSP Certification- Security Engineering-part1
CISSP Certification- Security Engineering-part1Hamed Moghaddam
 
Microsoft MCSA- Joining Client Machines To The Domain!
Microsoft MCSA- Joining Client Machines To The Domain!Microsoft MCSA- Joining Client Machines To The Domain!
Microsoft MCSA- Joining Client Machines To The Domain!Hamed Moghaddam
 
Microsoft MCSA - Install active directory domain services (adds) role
Microsoft MCSA - Install active directory domain services (adds) roleMicrosoft MCSA - Install active directory domain services (adds) role
Microsoft MCSA - Install active directory domain services (adds) roleHamed Moghaddam
 
CISSP Certification-Asset Security
CISSP Certification-Asset SecurityCISSP Certification-Asset Security
CISSP Certification-Asset SecurityHamed Moghaddam
 
Cissp- Security and Risk Management
Cissp- Security and Risk ManagementCissp- Security and Risk Management
Cissp- Security and Risk ManagementHamed Moghaddam
 

More from Hamed Moghaddam (8)

CISSP Certification Security Engineering-Part2
CISSP Certification Security Engineering-Part2CISSP Certification Security Engineering-Part2
CISSP Certification Security Engineering-Part2
 
CISSP Certification- Security Engineering-part1
CISSP Certification- Security Engineering-part1CISSP Certification- Security Engineering-part1
CISSP Certification- Security Engineering-part1
 
Cisco CCNA- DHCP Server
Cisco CCNA-  DHCP ServerCisco CCNA-  DHCP Server
Cisco CCNA- DHCP Server
 
Microsoft MCSA- Joining Client Machines To The Domain!
Microsoft MCSA- Joining Client Machines To The Domain!Microsoft MCSA- Joining Client Machines To The Domain!
Microsoft MCSA- Joining Client Machines To The Domain!
 
Microsoft MCSA - Install active directory domain services (adds) role
Microsoft MCSA - Install active directory domain services (adds) roleMicrosoft MCSA - Install active directory domain services (adds) role
Microsoft MCSA - Install active directory domain services (adds) role
 
CISSP Certification-Asset Security
CISSP Certification-Asset SecurityCISSP Certification-Asset Security
CISSP Certification-Asset Security
 
Cissp- Security and Risk Management
Cissp- Security and Risk ManagementCissp- Security and Risk Management
Cissp- Security and Risk Management
 
Become CISSP Certified
Become CISSP CertifiedBecome CISSP Certified
Become CISSP Certified
 

Recently uploaded

Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptxPoojaSen20
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 

Recently uploaded (20)

Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 

Juniper JNCIA – Juniper OSPF Route Configuration

  • 1. Juniper JNCIA Juniper OSPF Route Configuration ASM EDUCATIONAL CENTER INC. (ASM) WHERETRAINING,TECHNOLOGY&SERVICECONVERGE CHECKOUTOURJUNIPERTRAININGVIDEOS:WWW.ASMED.COM/J1
  • 2. Juniper OSPF Route Configuration
  • 3. Juniper OSPF Route Configuration In here R1 and R2 are connected via cable e3 to e3 is 40.40.40.1/24 40.40.40.2/24 Goal is to that R1 will be able go to Loopback address of R2=2.2.2.2 via OSPF And R2 be able to Ping Loopback of R1=1.1.1.1 Here I will give IP address to R1 em3 and Lo0 root@R1# set interfaces em3 unit 0 family inet address 40.40.40.1/24 root@R1# set interfaces lo0 unit 0 family inet address 1.1.1.1/24 Here are R1 Configuration
  • 4. Juniper OSPF Route Configuration root@R1> show configuration interfaces { em3 { unit 0 { family inet { address 40.40.40.1/24; } } } lo0 { unit 0 { family inet { address 1.1.1.1/24; } } } }
  • 5. Juniper OSPF Route Configuration Here I will give IP address to R2 em3 and Lo0 root@R2# set interfaces em3 unit 0 family inet address 40.40.40.2/24 root@R2# set interfaces lo0 unit 0 family inet address 2.2.2.2/24 root@R2# show interfaces em3 { unit 0 { family inet { address 40.40.40.2/24; } } } lo0 { unit 0 { family inet { address 2.2.2.2/24; } } }
  • 6. Juniper OSPF Route Configuration Now seated at R1 I cannot ping Loopback address of R2=2.2.2.2 Why? Since Network 2.2.2.0 is not inside the routing table, root@R1> show route inet.0: 4 destinations, 4 routes (4 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 1.1.1.0/24 *[Direct/0] 00:12:59 > via lo0.0 1.1.1.1/32 *[Local/0] 00:12:59 Local via lo0.0 40.40.40.0/24 *[Direct/0] 00:12:59 > via em3.0 40.40.40.1/32 *[Local/0] 00:12:59 Local via em3.0
  • 7. Juniper OSPF Route Configuration As we see the network 2.2.2.0/24 is not inside the Routing table ; So I will configure it with OSPF on both R1 and R2 . Remember you need always advertise connected interface on the OSPF. root@R1# set protocols ospf area 0.0.0.0 interface em3 root@R1# set protocols ospf area 0.0.0.0 interface lo0 Here is my show commands to check it: root@R1# show protocols ospf area 0.0.0.0 { interface em3.0; interface lo0.0;
  • 8. Juniper OSPF Route Configuration Now I will do same concept in R2, that is advertise each interface em3 and lo0 inside the OSPF root@R2# set protocols ospf area 0.0.0.0 interface em3 root@R2# set protocols ospf area 0.0.0.0 interface lo0 root@R2# show protocols ospf area 0.0.0.0 { interface em3.0; interface lo0.0;
  • 9. Juniper OSPF Route Configuration Now in same way that we use to see my neighbors I will be able to see my neighbors root@R1> show ospf neighbor Address Interface State ID Pri Dead 40.40.40.2 em3.0 Full 2.2.2.2 128 35 Here is my routing table on R1 root@R1> show route inet.0: 7 destinations, 7 routes (7 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both
  • 10. Juniper OSPF Route Configuration 1.1.1.0/24 *[Direct/0] 00:30:07 > via lo0.0 1.1.1.1/32 *[Local/0] 00:30:07 Local via lo0.0 2.2.2.0/24 *[OSPF/10] 00:05:56, metric 1 > to 40.40.40.2 via em3.0 2.2.2.2/32 *[OSPF/10] 00:05:56, metric 1 > to 40.40.40.2 via em3.0 40.40.40.0/24 *[Direct/0] 00:30:07 > via em3.0 40.40.40.1/32 *[Local/0] 00:30:07 Local via em3.0 224.0.0.5/32 *[OSPF/10] 00:12:24, metric 1 MultiRecv
  • 11. Juniper OSPF Route Configuration Now since I see network 2.2.2.0/24 on my tables I can ping 2.2.2.2 root@R1> ping 2.2.2.2 PING 2.2.2.2 (2.2.2.2): 56 data bytes 64 bytes from 2.2.2.2: icmp_seq=0 ttl=64 time=0.557 ms 64 bytes from 2.2.2.2: icmp_seq=1 ttl=64 time=0.418 ms 64 bytes from 2.2.2.2: icmp_seq=2 ttl=64 time=0.372 ms 64 bytes from 2.2.2.2: icmp_seq=3 ttl=64 time=0.714 ms ^C
  • 12. Juniper OSPF Route Configuration Now lets check the routing table on R2, R2 should be able to see the loopback of R1=1.1.1.0 inside his routing table. root@R2> show ospf neighbor Address Interface State ID Pri Dead 40.40.40.1 em3.0 Full 1.1.1.1 128 34 root@R2> show route inet.0: 7 destinations, 7 routes (7 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both
  • 13. Juniper OSPF Route Configuration 1.1.1.0/24 *[OSPF/10] 00:04:04, metric 1 > to 40.40.40.1 via em3.0 1.1.1.1/32 *[OSPF/10] 00:04:04, metric 1 > to 40.40.40.1 via em3.0 2.2.2.0/24 *[Direct/0] 00:33:38 > via lo0.0 2.2.2.2/32 *[Local/0] 00:33:38 Local via lo0.0 40.40.40.0/24 *[Direct/0] 00:33:38 > via em3.0 40.40.40.2/32 *[Local/0] 00:33:38 Local via em3.0 224.0.0.5/32 *[OSPF/10] 00:08:29, metric 1 MultiRecv Now since 1.1.1.0 is inside the table I should be able to ping 1.1.1.1 from R2
  • 14. Juniper OSPF Route Configuration 1.1.1.0/24 *[OSPF/10] 00:04:04, metric 1 > to 40.40.40.1 via em3.0 1.1.1.1/32 *[OSPF/10] 00:04:04, metric 1 > to 40.40.40.1 via em3.0 2.2.2.0/24 *[Direct/0] 00:33:38 > via lo0.0 2.2.2.2/32 *[Local/0] 00:33:38 Local via lo0.0 40.40.40.0/24 *[Direct/0] 00:33:38 > via em3.0 40.40.40.2/32 *[Local/0] 00:33:38 Local via em3.0 224.0.0.5/32 *[OSPF/10] 00:08:29, metric 1 MultiRecv Now since 1.1.1.0 is inside the table I should be able to ping 1.1.1.1 from R2
  • 15. Juniper OSPF Route Configuration root@R2> ping 1.1.1.1 PING 1.1.1.1 (1.1.1.1): 56 data bytes 64 bytes from 1.1.1.1: icmp_seq=0 ttl=64 time=0.471 ms 64 bytes from 1.1.1.1: icmp_seq=1 ttl=64 time=0.836 ms 64 bytes from 1.1.1.1: icmp_seq=2 ttl=64 time=1.159 ms 64 bytes from 1.1.1.1: icmp_seq=3 ttl=64 time=0.843 ms So summary : make sure always advertise directkty connected inside the OPSF
  • 16. Juniper OSPF Route Configuration Here is R1#: root@R1> show configuration interfaces { em3 { unit 0 { family inet { address 40.40.40.1/24; } } } lo0 { unit 0 { family inet { address 1.1.1.1/24; } } } } protocols { ospf { area 0.0.0.0 { interface em3.0; interface lo0.0; } } }
  • 17. Juniper OSPF Route Configuration Here is R2 Configuration: root@R2> show configuration interfaces { em3 { unit 0 { family inet { address 40.40.40.2/24; } } } lo0 { unit 0 { family inet { address 2.2.2.2/24; } } } } protocols { ospf { area 0.0.0.0 { interface em3.0; interface lo0.0; } } }
  • 18. ASM EDUCATIONAL CENTER INC. (ASM) WHERETRAINING,TECHNOLOGY&SERVICECONVERGE WWW.ASMED.COM