SlideShare a Scribd company logo
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

PPTX
Juniper JNCIA – Juniper RIP and OSPF Route Configuration
PPTX
Cisco CCNA IP SLA with tracking configuration
PPTX
Cisco CCNA GRE Tunnel Configuration
PPTX
Cisco CCNA IPV6 Static Configuration
PPTX
Cisco CCNA OSPF IPV6 Configuration
PPTX
Cisco CCNA- How to Configure Multi-Layer Switch
PPTX
Cisco CCNA- PPP Multilink Configuration
PPTX
Juniper JNCIA – Juniper RIP Route Configuration
Juniper JNCIA – Juniper RIP and OSPF Route Configuration
Cisco CCNA IP SLA with tracking configuration
Cisco CCNA GRE Tunnel Configuration
Cisco CCNA IPV6 Static Configuration
Cisco CCNA OSPF IPV6 Configuration
Cisco CCNA- How to Configure Multi-Layer Switch
Cisco CCNA- PPP Multilink Configuration
Juniper JNCIA – Juniper RIP Route Configuration

What's hot (20)

PPTX
Cisco CCNA-Standard Access List
PPTX
Juniper JNCIA – Juniper Floating Static Route Configuration
PPTX
Cisco CCNA CCNP VACL Configuration
PPTX
Cisco CCNA-Router on Stick
PDF
Ccna command
PDF
CCNA - Routing & Switching Commands
PPTX
Cisco CCNA EIGRP IPV6 Configuration
DOCX
Ccna command
PPTX
Cisco CCNA-CCNP IP SLA Configuration
PDF
OSPF (open shortest path first) part iii
PDF
Vo ip avanzado pt
DOC
Cisco switch commands cheat sheet
DOC
Networking Tutorial Goes to Basic PPP Configuration
PPTX
Cisco CCNA- NAT Configuration
PDF
OSPF (open shortest path first) part ii
PDF
Ccna Commands In 10 Minutes
PPTX
Cisco CCNA Port Security
PDF
PDF
OSPF Route Filtering
PPTX
How to Configure ip address for router interfaces
Cisco CCNA-Standard Access List
Juniper JNCIA – Juniper Floating Static Route Configuration
Cisco CCNA CCNP VACL Configuration
Cisco CCNA-Router on Stick
Ccna command
CCNA - Routing & Switching Commands
Cisco CCNA EIGRP IPV6 Configuration
Ccna command
Cisco CCNA-CCNP IP SLA Configuration
OSPF (open shortest path first) part iii
Vo ip avanzado pt
Cisco switch commands cheat sheet
Networking Tutorial Goes to Basic PPP Configuration
Cisco CCNA- NAT Configuration
OSPF (open shortest path first) part ii
Ccna Commands In 10 Minutes
Cisco CCNA Port Security
OSPF Route Filtering
How to Configure ip address for router interfaces
Ad

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

PDF
bgp-01
PPT
Learn OSPF(Open Short Path First) routing to day
PDF
การคอนฟิกส์ OSPF บน Ubiquiti Edge Router
PPT
PPT
PPTX
Лекц 15
PPTX
OSPF Internal Route Summarization
PDF
How to configure the basic OSPF?
PDF
OSPF_multi.pdf
PDF
Ospf Last Modified Eng
DOCX
How to troubleshoot and verifying ospf configuration
PPTX
OSPF Router LSA (Type 1)
PPT
Ospf Cisco
PDF
Tiny Server Clustering using Vyatta/VyOS (MEMO)
PPTX
OSPF Virtual Link
PPTX
OSPFv2 on IOS XR
PDF
mpls-06
PDF
OSPF_Exercises.pdf
PPT
BSCI30S03 OSPF open shortest path first .ppt
bgp-01
Learn OSPF(Open Short Path First) routing to day
การคอนฟิกส์ OSPF บน Ubiquiti Edge Router
Лекц 15
OSPF Internal Route Summarization
How to configure the basic OSPF?
OSPF_multi.pdf
Ospf Last Modified Eng
How to troubleshoot and verifying ospf configuration
OSPF Router LSA (Type 1)
Ospf Cisco
Tiny Server Clustering using Vyatta/VyOS (MEMO)
OSPF Virtual Link
OSPFv2 on IOS XR
mpls-06
OSPF_Exercises.pdf
BSCI30S03 OSPF open shortest path first .ppt
Ad

More from Hamed Moghaddam (8)

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

Recently uploaded (20)

PDF
Uderstanding digital marketing and marketing stratergie for engaging the digi...
PDF
Hazard Identification & Risk Assessment .pdf
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
Share_Module_2_Power_conflict_and_negotiation.pptx
PDF
HVAC Specification 2024 according to central public works department
PDF
Empowerment Technology for Senior High School Guide
PDF
advance database management system book.pdf
PDF
Trump Administration's workforce development strategy
PDF
My India Quiz Book_20210205121199924.pdf
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
PPTX
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PDF
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
PPTX
Virtual and Augmented Reality in Current Scenario
PDF
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
PPTX
Computer Architecture Input Output Memory.pptx
Uderstanding digital marketing and marketing stratergie for engaging the digi...
Hazard Identification & Risk Assessment .pdf
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Share_Module_2_Power_conflict_and_negotiation.pptx
HVAC Specification 2024 according to central public works department
Empowerment Technology for Senior High School Guide
advance database management system book.pdf
Trump Administration's workforce development strategy
My India Quiz Book_20210205121199924.pdf
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
LDMMIA Reiki Yoga Finals Review Spring Summer
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
Virtual and Augmented Reality in Current Scenario
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
AI-driven educational solutions for real-life interventions in the Philippine...
Computer Architecture Input Output Memory.pptx

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