SlideShare a Scribd company logo
1 of 57
Juniper JNCIA
ASM Educational Center Inc. (ASM)
Where Training,Technology& Service Converge
CheckoutourJuniperTrainingVideos:www.asmed.com/j1
Juniper RIP and OSPF Route Configuration
Juniper RIP and OSPF Route Configuration
Juniper RIP and OSPF Route Configuration
The Goal is when I configure OSPF on the left side ( between R1,R2,R3) ; R4
be able to ping 1.1.1.1 and 3.3.3.3 after I export from OSPF to RIP.
Up to now R2 has loopback address 2.2.2.2/32 and 2.2.2.3/32 that will be
seen on R4 Routing tables since I have done RIP on R2 and R4
Juniper RIP and OSPF Route Configuration
Here what we have on R4:
root@R4> show configuration
em2 {
unit 0 {
family inet {
address 20.20.20.4/24;
}
}
}
lo0 {
unit 0 {
family inet {
address 4.4.4.4/32;
}
}
}
}
Juniper RIP and OSPF Route Configuration
protocols {
rip {
group RIPGROUP4 {
export RIPPOLICY;
neighbor em2.0;
}
}
}
policy-options {
policy-statement RIPPOLICY {
term 1 {
from protocol [ rip direct ];
then accept;
}
}
}
Juniper RIP and OSPF Route Configuration
Here what I have on R2#
root@R2> show configuration
interfaces {
em1 {
unit 0 {
family inet {
address 10.10.10.2/24;
}
}
}
em2 {
unit 0 {
family inet {
address 20.20.20.2/24;
}
}
}
Juniper RIP and OSPF Route Configuration
em3 {
unit 0 {
family inet {
address 30.30.30.2/24;
}
}
}
lo0 {
unit 0 {
family inet {
address 2.2.2.2/32;
address 2.2.2.3/32;
}
}
}
}
Juniper RIP and OSPF Route Configuration
protocols {
rip {
group RIPGROUP {
export RIPPOLICY2;
neighbor em2.0;
}
}
}
policy-options {
policy-statement RIPPOLICY2 {
term 1 {
from protocol [ rip direct ];
then accept;
}
}
}
Juniper RIP and OSPF Route Configuration
Now remember from last lab R4 can ping loopback address 2.2.2.2 and 2.2.2.3
root@R4> show route
inet.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
Juniper RIP and OSPF Route Configuration
2.2.2.2/32 *[RIP/100] 00:01:48, metric 2, tag 0
> to 20.20.20.2 via em2.0
2.2.2.3/32 *[RIP/100] 00:01:48, metric 2, tag 0
> to 20.20.20.2 via em2.0
4.4.4.4/32 *[Direct/0] 00:02:59
> via lo0.0
10.10.10.0/24 *[RIP/100] 00:01:52, metric 2, tag 0
> to 20.20.20.2 via em2.0
20.20.20.0/24 *[Direct/0] 00:03:00
> via em2.0
20.20.20.4/32 *[Local/0] 00:03:00
Local via em2.0
30.30.30.0/24 *[RIP/100] 00:01:48, metric 2, tag 0
> to 20.20.20.2 via em2.0
224.0.0.9/32 *[RIP/100] 00:03:01, metric 1
MultiRecv
Juniper RIP and OSPF Route Configuration
root@R4> 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.462 ms
64 bytes from 2.2.2.2: icmp_seq=1 ttl=64 time=0.587 ms
64 bytes from 2.2.2.2: icmp_seq=2 ttl=64 time=1.029 ms
^C
--- 2.2.2.2 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.462/0.693/1.029/0.243 ms
Juniper RIP and OSPF Route Configuration
root@R4> ping 2.2.2.3
PING 2.2.2.3 (2.2.2.3): 56 data bytes
64 bytes from 2.2.2.3: icmp_seq=0 ttl=64 time=0.522 ms
64 bytes from 2.2.2.3: icmp_seq=1 ttl=64 time=0.910 ms
64 bytes from 2.2.2.3: icmp_seq=2 ttl=64 time=0.948 ms
64 bytes from 2.2.2.3: icmp_seq=3 ttl=64 time=0.^C
--- 2.2.2.3 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.522/0.825/0.948/0.175 ms
•
Juniper RIP and OSPF Route Configuration
Now I go to R1 and R3 and create all my interface and loopback address :
Here is R1 configuration:
root@R1# set interfaces em1 unit 0 family inet address 10.10.10.1/24
set interfaces lo0 unit 0 family inet address 1.1.1.1/32
Now I will do on R3:
root@R3#set interfaces em3 unit 0 family inet address 30.30.30.1/24
set interfaces lo0 unit 0 family inet address 3.3.3.3/32
Juniper RIP and OSPF Route Configuration
Now I will go configure OPPF on R1#
root@R1#set protocols ospf area 0.0.0.0 interface em1.0
set protocols ospf area 0.0.0.0 interface lo0.0
Now I will go configure OPSF on R2#
root@R2# set protocols ospf area 0.0.0.0 interface em1.0
set protocols ospf area 0.0.0.0 interface em3.0
set protocols ospf area 0.0.0.0 interface lo0.0
Juniper RIP and OSPF Route Configuration
Now we see R2 is neighbor with R1
root@R2> show ospf neighbor
Address Interface State ID Pri Dead
10.10.10.1 em1.0 Full 1.1.1.1 128 35
Lets look at R1 , routing table : I can see the loopback of R2 , not Loopback
of R3 =3.3.3.3 since I need to finish my OSPF configuration on R3
Juniper RIP and OSPF Route Configuration
root@R1> show route
inet.0: 7 destinations, 7 routes (7 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
1.1.1.1/32 *[Direct/0] 00:23:25
> via lo0.0
2.2.2.2/32 *[OSPF/10] 00:09:04, metric 1
> to 10.10.10.2 via em1.0
2.2.2.3/32 *[OSPF/10] 00:09:04, metric 1
> to 10.10.10.2 via em1.0
10.10.10.0/24 *[Direct/0] 00:31:53
> via em1.0
10.10.10.1/32 *[Local/0] 00:31:53
Local via em1.0
30.30.30.0/24 *[OSPF/10] 00:09:04, metric 2
> to 10.10.10.2 via em1.0
224.0.0.5/32 *[OSPF/10] 00:13:11, metric 1
MultiRecv
Juniper RIP and OSPF Route Configuration
Now I will configure OSPF on R3#
root@R3# set protocols ospf area 0.0.0.0 interface em3.0
set protocols ospf area 0.0.0.0 interface lo0.0
Now when I go to R3 and I should have two neighbors on R3
root@R2> show ospf neighbor
Address Interface State ID Pri Dead
10.10.10.1 em1.0 Full 1.1.1.1 128 34
30.30.30.1 em3.0 Full 3.3.3.3 128 39
Lets look at R1 routing table I should see the loopback of R2=2.2.2.2 , 2.2.2.3 and Loopback
of R3=3.3.3.3
Juniper RIP and OSPF Route Configuration
root@R1> show route
inet.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
1.1.1.1/32 *[Direct/0] 00:30:12
> via lo0.0
2.2.2.2/32 *[OSPF/10] 00:15:51, metric 1
> to 10.10.10.2 via em1.0
2.2.2.3/32 *[OSPF/10] 00:15:51, metric 1
> to 10.10.10.2 via em1.0
3.3.3.3/32 *[OSPF/10] 00:03:03, metric 2
> to 10.10.10.2 via em1.0
10.10.10.0/24 *[Direct/0] 00:38:40
> via em1.0
10.10.10.1/32 *[Local/0] 00:38:40
Local via em1.0
30.30.30.0/24 *[OSPF/10] 00:15:51, metric 2
> to 10.10.10.2 via em1.0
224.0.0.5/32 *[OSPF/10] 00:19:58, metric 1
MultiRecv
Juniper RIP and OSPF Route Configuration
So up to now R1, R2, R3 are talking via OPSF and R2 and R4 are
talking via RIP ; now when I go to R4 routing table I do not see the
loopback of R1=1.1.1.1 and R3=3.3.3.3 inside R4
Lets go to R4#
root@R4> show route
Juniper RIP and OSPF Route Configuration
inet.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
2.2.2.2/32 *[RIP/100] 00:48:21, metric 2, tag 0
> to 20.20.20.2 via em2.0
2.2.2.3/32 *[RIP/100] 00:48:21, metric 2, tag 0
> to 20.20.20.2 via em2.0
4.4.4.4/32 *[Direct/0] 00:49:32
> via lo0.0
10.10.10.0/24 *[RIP/100] 00:48:25, metric 2, tag 0
> to 20.20.20.2 via em2.0
20.20.20.0/24 *[Direct/0] 00:49:33
> via em2.0
20.20.20.4/32 *[Local/0] 00:49:33
Local via em2.0
30.30.30.0/24 *[RIP/100] 00:48:21, metric 2, tag 0
> to 20.20.20.2 via em2.0
224.0.0.9/32 *[RIP/100] 00:49:34, metric 1
MultiRecv
Juniper RIP and OSPF Route Configuration
inet.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
2.2.2.2/32 *[RIP/100] 00:48:21, metric 2, tag 0
> to 20.20.20.2 via em2.0
2.2.2.3/32 *[RIP/100] 00:48:21, metric 2, tag 0
> to 20.20.20.2 via em2.0
4.4.4.4/32 *[Direct/0] 00:49:32
> via lo0.0
10.10.10.0/24 *[RIP/100] 00:48:25, metric 2, tag 0
> to 20.20.20.2 via em2.0
20.20.20.0/24 *[Direct/0] 00:49:33
> via em2.0
20.20.20.4/32 *[Local/0] 00:49:33
Local via em2.0
30.30.30.0/24 *[RIP/100] 00:48:21, metric 2, tag 0
> to 20.20.20.2 via em2.0
224.0.0.9/32 *[RIP/100] 00:49:34, metric 1
MultiRecv
Juniper RIP and OSPF Route Configuration
In order R4 be able to see loopback 1.1.1.1 and 3.3.3.3 I need to go to Middle router R2 and export the
OSPF into RIP ( the same way we did on RIP and connected) let’s look at R2 , what we have so far:
root@R2> show configuration
protocols {
ospf {
area 0.0.0.0 {
interface em1.0;
interface em3.0;
interface lo0.0;
}
}
Juniper RIP and OSPF Route Configuration
rip {
group RIPGROUP {
export RIPPOLICY2;
neighbor em2.0;
}
}
}
policy-options {
policy-statement RIPPOLICY2 {
term 1 {
from protocol [ rip direct ];
then accept;
}
}
}
•
Juniper RIP and OSPF Route Configuration
Now in above Policy-option I need to Add OSFF that is :
root@R2#set policy-options policy-statement RIPPOLICY2 term 1 from protocol ospf
Now let’s look at show configuration on R2 again and make sure OSPF has been added :
root@R2> show configuration
protocols {
ospf {
area 0.0.0.0 {
interface em1.0;
interface em3.0;
interface lo0.0;
}
}
rip {
group RIPGROUP {
export RIPPOLICY2;
neighbor em2.0;
}
}
}
Juniper RIP and OSPF Route Configuration
policy-statement RIPPOLICY2 {
term 1 {
from protocol [ rip direct ospf ];
then accept;
}
}
}
Now when I go to R4 routing tables I see all the Loopback address of R1=1.1.1.1 and R3=3.3.3.3
root@R4> show route
Juniper RIP and OSPF Route Configuration
inet.0: 10 destinations, 10 routes (10 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
1.1.1.1/32 *[RIP/100] 00:03:11, metric 2, tag 0
> to 20.20.20.2 via em2.0
2.2.2.2/32 *[RIP/100] 00:59:32, metric 2, tag 0
> to 20.20.20.2 via em2.0
2.2.2.3/32 *[RIP/100] 00:59:32, metric 2, tag 0
> to 20.20.20.2 via em2.0
3.3.3.3/32 *[RIP/100] 00:03:11, metric 2, tag 0
> to 20.20.20.2 via em2.0
4.4.4.4/32 *[Direct/0] 01:00:43
> via lo0.0
Juniper RIP and OSPF Route Configuration
10.10.10.0/24 *[RIP/100] 00:59:36, metric 2, tag 0
> to 20.20.20.2 via em2.0
20.20.20.0/24 *[Direct/0] 01:00:44
> via em2.0
20.20.20.4/32 *[Local/0] 01:00:44
Local via em2.0
30.30.30.0/24 *[RIP/100] 00:59:32, metric 2, tag 0
> to 20.20.20.2 via em2.0
224.0.0.9/32 *[RIP/100] 01:00:45, metric 1
MultiRecv
Juniper RIP and OSPF Route Configuration
Now ; if I Go to R4 I will see all the loopback but I can not ping 1.1.1.1 and 3.3.3.3 ? why ?
Since remember Ping is Echo and Echo-reply and also when I go to R1 and look at Routing
table I do not see
The loopback address of R4=4.4.4.4 (since I need to export RIP into OSPF) , lets look at R1
routing table
root@R1> show route
inet.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
Juniper RIP and OSPF Route Configuration
1.1.1.1/32 *[Direct/0] 00:50:22
> via lo0.0
2.2.2.2/32 *[OSPF/10] 00:36:01, metric 1
> to 10.10.10.2 via em1.0
2.2.2.3/32 *[OSPF/10] 00:36:01, metric 1
> to 10.10.10.2 via em1.0
3.3.3.3/32 *[OSPF/10] 00:23:13, metric 2
> to 10.10.10.2 via em1.0
10.10.10.0/24 *[Direct/0] 00:58:50
> via em1.0
10.10.10.1/32 *[Local/0] 00:58:50
Local via em1.0
30.30.30.0/24 *[OSPF/10] 00:36:01, metric 2
> to 10.10.10.2 via em1.0
224.0.0.5/32 *[OSPF/10] 00:40:08, metric 1
MultiRecv
Juniper RIP and OSPF Route Configuration
So how do you solve the problem ; I must go to Middle Router R2 and do same concept as
before ; but in this case I need to export RIP into OSPF , before we did export OSPF into
RIP.
The above concept is called redistribution that is cover in Cisco CCNP class.
Let’s look at what I have on R2 so far :
root@R2> show configuration
protocols {
ospf {
area 0.0.0.0 {
interface em1.0;
interface em3.0;
interface lo0.0;
}
}
Juniper RIP and OSPF Route Configuration
rip {
group RIPGROUP {
export RIPPOLICY2;
neighbor em2.0;
}
}
}
policy-options {
policy-statement RIPPOLICY2 {
term 1 {
from protocol [ rip direct ospf ];
then accept;
}
}
}
Juniper RIP and OSPF Route Configuration
So what I need to do create another Policy-option and lets called it OSPFPOLICY and then export it
(apply) it under Protocol ospf
root@R2# set policy-options policy-statement OSPFPOLICY term 1 from protocol rip
set policy-options policy-statement OSPFPOLICY term 1 then accept
now I need to Export it under OSPF (apply this policy) , lets see what we have so far :
Juniper RIP and OSPF Route Configuration
So what I need to do create another Policy-option and lets called it OSPFPOLICY and then export it
(apply) it under Protocol ospf
root@R2# set policy-options policy-statement OSPFPOLICY term 1 from protocol rip
set policy-options policy-statement OSPFPOLICY term 1 then accept
now I need to Export it under OSPF (apply this policy) , lets see what we have so far :
Juniper RIP and OSPF Route Configuration
root@R2> show configuration
protocols {
ospf {
area 0.0.0.0 {
interface em1.0;
interface em3.0;
interface lo0.0;
}
}
rip {
group RIPGROUP {
export RIPPOLICY2;
neighbor em2.0;
}
}
}
Juniper RIP and OSPF Route Configuration
policy-options {
policy-statement OSPFPOLICY {
term 1 {
from protocol ospf;
then accept;
}
}
policy-statement RIPPOLICY2 {
term 1 {
from protocol [ rip direct ospf ];
then accept;
}
}
}
Juniper RIP and OSPF Route Configuration
Now all I have to do Export ( apply OSPFPOLICY) under protocol ospf same as RIP.
root@R2# set protocols ospf export OSPFPOLICY
let’s see what we have on R2 now :
root@R2# run show configuration
protocols {
ospf {
export OSPFPOLICY;
area 0.0.0.0 {
interface em1.0;
interface em3.0;
interface lo0.0;
}
}
Juniper RIP and OSPF Route Configuration
rip {
group RIPGROUP {
export RIPPOLICY2;
neighbor em2.0;
}
}
}
policy-options {
policy-statement OSPFPOLICY {
term 1 {
from protocol rip;
then accept;
}
}
Juniper RIP and OSPF Route Configuration
policy-statement RIPPOLICY2 {
term 1 {
from protocol [ rip direct ospf ];
then accept;
}
}
}
Now If I go to R1 and look at Routing table I will see the loopback of R4 as OSPF with tag 2 (
similar to Cisco which is called OE2 =means external ) and here the prefarcane for external
is 150 instead of 10
Juniper RIP and OSPF Route Configuration
root@R1> show route
inet.0: 9 destinations, 9 routes (9 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
1.1.1.1/32 *[Direct/0] 01:21:26
> via lo0.0
2.2.2.2/32 *[OSPF/10] 01:07:05, metric 1
> to 10.10.10.2 via em1.0
2.2.2.3/32 *[OSPF/10] 01:07:05, metric 1
> to 10.10.10.2 via em1.0
3.3.3.3/32 *[OSPF/10] 00:54:17, metric 2
> to 10.10.10.2 via em1.0
Juniper RIP and OSPF Route Configuration
4.4.4.4/32 *[OSPF/150] 00:00:54, metric 2, tag 0
> to 10.10.10.2 via em1.0
10.10.10.0/24 *[Direct/0] 01:29:54
> via em1.0
10.10.10.1/32 *[Local/0] 01:29:54
Local via em1.0
30.30.30.0/24 *[OSPF/10] 01:07:05, metric 2
> to 10.10.10.2 via em1.0
224.0.0.5/32 *[OSPF/10] 01:11:12, metric 1
MultiRecv
Juniper RIP and OSPF Route Configuration
root@R1> ping 4.4.4.4
PING 4.4.4.4 (4.4.4.4): 56 data bytes
64 bytes from 4.4.4.4: icmp_seq=0 ttl=63 time=0.860 ms
64 bytes from 4.4.4.4: icmp_seq=1 ttl=63 time=2.033 ms
64 bytes from 4.4.4.4: icmp_seq=2 ttl=63 time=1.631 ms
^C
--- 4.4.4.4 ping statistics ---
Now even R3 can see loopback of R4=4.4.4.4 and can ping it : (With Preference of 150 and
metric 2 instead of default Preference of 10 and metric 1)
Juniper RIP and OSPF Route Configuration
root@R3> show route
inet.0: 9 destinations, 9 routes (9 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
1.1.1.1/32 *[OSPF/10] 01:04:56, metric 2
> to 30.30.30.2 via em3.0
2.2.2.2/32 *[OSPF/10] 01:04:56, metric 1
> to 30.30.30.2 via em3.0
2.2.2.3/32 *[OSPF/10] 01:04:56, metric 1
> to 30.30.30.2 via em3.0
3.3.3.3/32 *[Direct/0] 01:28:34
> via lo0.0
Juniper RIP and OSPF Route Configuration
4.4.4.4/32 *[OSPF/150] 00:10:14, metric 2, tag 0
> to 30.30.30.2 via em3.0
10.10.10.0/24 *[OSPF/10] 01:04:56, metric 2
> to 30.30.30.2 via em3.0
30.30.30.0/24 *[Direct/0] 01:30:19
> via em3.0
30.30.30.1/32 *[Local/0] 01:30:19
Local via em3.0
224.0.0.5/32 *[OSPF/10] 01:05:01, metric 1
MultiRecv
Juniper RIP and OSPF Route Configuration
root@R3> ping 4.4.4.4
PING 4.4.4.4 (4.4.4.4): 56 data bytes
64 bytes from 4.4.4.4: icmp_seq=0 ttl=63 time=1.017 ms
64 bytes from 4.4.4.4: icmp_seq=1 ttl=63 time=1.556 ms
^C
Now If I go to R4 and look at Routing table of R4 I see the loopback 1.1.1.1 and 3.3.3.3 but
still can not ping it ? Since I need under OSPF also export direct connection on R2
Here what we had before on R2#
Juniper RIP and OSPF Route Configuration
root@R2> run show configuration
protocols {
ospf {
export OSPFPOLICY;
area 0.0.0.0 {
interface em1.0;
interface em3.0;
interface lo0.0;
}
}
rip {
group RIPGROUP {
export RIPPOLICY2;
neighbor em2.0;
}
}
}
Juniper RIP and OSPF Route Configuration
policy-options {
policy-statement OSPFPOLICY {
term 1 {
from protocol rip;
then accept;
}
}
policy-statement RIPPOLICY2 {
term 1 {
from protocol [ rip direct ospf ];
then accept;
}
}
}
Juniper RIP and OSPF Route Configuration
As we see I have this on R2:
policy-options {
policy-statement OSPFPOLICY {
term 1 {
from protocol rip;
then accept;
The above means redistribute or export RIP into ospf that is what R1 can ping 4.4.4.4 but
R1 can not ping the link 20.20.20.2 or 20.20.20.4
Juniper RIP and OSPF Route Configuration
So If I add the export Direct in above , then It means I am also exporting RIP and direct
connection to OSPF then R1 can ping 20.20.20.2 and 20.20.20.4 , and then R4 will be able
to ping 1.1.1.1 and 3.3.3.3
So I go to R2#
root@R2# set policy-options policy-statement OSPFPOLICY term 1 from protocol
Now here what I have in R2 compare in above :
Juniper RIP and OSPF Route Configuration
policy-options {
policy-statement OSPFPOLICY {
term 1 {
from protocol [ rip direct ];
then accept;
Now above means export RIP and directed connection into OSPF
Now R1 should be able ping directly connection link 20.20.20.2 and 20.20.20.4 and R4 be
able to ping 1.1.1.1 and 3.3.3.3
Juniper RIP and OSPF Route Configuration
root@R1> ping 20.20.20.2
PING 20.20.20.2 (20.20.20.2): 56 data bytes
64 bytes from 20.20.20.2: icmp_seq=0 ttl=64 time=0.462 ms
64 bytes from 20.20.20.2: icmp_seq=1 ttl=64 time=1.097 ms
64 bytes from 20.20.20.2: icmp_seq=2 ttl=64 time=0.752 ms
64 bytes from 20.20.20.2: icmp_seq=3 ttl=64 time=0.978 ms
^C
--- 20.20.20.2 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.462/0.822/1.097/0.242 ms
Juniper RIP and OSPF Route Configuration
root@R1>
root@R1> ping 20.20.20.4
PING 20.20.20.4 (20.20.20.4): 56 data bytes
64 bytes from 20.20.20.4: icmp_seq=0 ttl=63 time=0.774 ms
64 bytes from 20.20.20.4: icmp_seq=1 ttl=63 time=1.569 ms
64 bytes from 20.20.20.4: icmp_seq=2 ttl=63 time=1.646 ms
^C
--- 20.20.20.4 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.774/1.330/1.646/0.394 ms
Juniper RIP and OSPF Route Configuration
Now R4 should be able to ping 3.3.3.3 and 1.1.1.1 of R3 and R1
root@R4> 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=63 time=1.257 ms
64 bytes from 1.1.1.1: icmp_seq=1 ttl=63 time=1.804 ms
64 bytes from 1.1.1.1: icmp_seq=2 ttl=63 time=1.885 ms
^C
--- 1.1.1.1 ping statistics ---
Juniper RIP and OSPF Route Configuration
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 1.257/1.649/1.885/0.279 ms
root@R4> ping 3.3.3.3
PING 3.3.3.3 (3.3.3.3): 56 data bytes
64 bytes from 3.3.3.3: icmp_seq=0 ttl=63 time=0.882 ms
64 bytes from 3.3.3.3: icmp_seq=1 ttl=63 time=1.520 ms
64 bytes from 3.3.3.3: icmp_seq=2 ttl=63 time=1.733 ms
64 bytes from 3.3.3.3: icmp_seq=3 ttl=63 time=1.495 ms
^C
--- 3.3.3.3 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.882/1.407/1.733/0.317 ms
Juniper RIP and OSPF Route Configuration
So summary on R2 we had this :
root@R2# run show configuration
protocols {
ospf {
export OSPFPOLICY;
area 0.0.0.0 {
interface em1.0;
interface em3.0;
interface lo0.0;
}
}
Juniper RIP and OSPF Route Configuration
rip {
group RIPGROUP {
export RIPPOLICY2;
neighbor em2.0;
}
}
}
policy-options {
policy-statement OSPFPOLICY {
term 1 {
from protocol [ rip direct ]; ( This means export Rip and directed connection to
OSPF)
then accept;
}
}
Juniper RIP and OSPF Route Configuration
policy-statement RIPPOLICY2 {
term 1 {
from protocol [ rip direct ospf ]; ( this means Export RIP, Directed connection and
OSPF
into RIP)
then accept;
}
}
}
ASM Educational Center Inc. (ASM)
WhereTraining,Technology&ServiceConverge
www.asmed.com

More Related Content

What's hot

What's hot (20)

CCNA Lab Guide
CCNA Lab GuideCCNA Lab Guide
CCNA Lab Guide
 
Ospf
OspfOspf
Ospf
 
lab1
lab1lab1
lab1
 
Ccna ppt1
Ccna ppt1Ccna ppt1
Ccna ppt1
 
Juniper Bgp
Juniper BgpJuniper Bgp
Juniper Bgp
 
Ncat ccna cheat sheet
Ncat ccna cheat sheetNcat ccna cheat sheet
Ncat ccna cheat sheet
 
Policy Based Routing (PBR)
Policy Based Routing (PBR)Policy Based Routing (PBR)
Policy Based Routing (PBR)
 
Router commands
Router commandsRouter commands
Router commands
 
Tp voip
Tp voipTp voip
Tp voip
 
3 g notes
3 g notes3 g notes
3 g notes
 
Juniper Networks Router Architecture
Juniper Networks Router ArchitectureJuniper Networks Router Architecture
Juniper Networks Router Architecture
 
Lte most used command rev1
Lte most used command rev1Lte most used command rev1
Lte most used command rev1
 
Using GTP on Linux with libgtpnl
Using GTP on Linux with libgtpnlUsing GTP on Linux with libgtpnl
Using GTP on Linux with libgtpnl
 
Cấu hình RIP v2
Cấu hình RIP v2Cấu hình RIP v2
Cấu hình RIP v2
 
Nat failover with dual isp on cisco router configuration explained with example
Nat failover with dual isp on cisco router configuration explained with exampleNat failover with dual isp on cisco router configuration explained with example
Nat failover with dual isp on cisco router configuration explained with example
 
Cisco ospf
Cisco ospf Cisco ospf
Cisco ospf
 
OSPF Overview
OSPF OverviewOSPF Overview
OSPF Overview
 
Session 1
Session 1Session 1
Session 1
 
Juniper Srx quickstart-12.1r3
Juniper Srx quickstart-12.1r3Juniper Srx quickstart-12.1r3
Juniper Srx quickstart-12.1r3
 
Juniper Trouble Shooting
Juniper Trouble ShootingJuniper Trouble Shooting
Juniper Trouble Shooting
 

Viewers also liked

Cisco CCNA IPV6 Static Configuration
Cisco CCNA  IPV6 Static ConfigurationCisco CCNA  IPV6 Static Configuration
Cisco CCNA IPV6 Static ConfigurationHamed Moghaddam
 
Cisco CCNA OSPF IPV6 Configuration
Cisco CCNA OSPF IPV6 ConfigurationCisco CCNA OSPF IPV6 Configuration
Cisco CCNA OSPF IPV6 ConfigurationHamed 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
 
Juniper JNCIA – Juniper RIP Route Configuration
Juniper JNCIA – Juniper RIP Route ConfigurationJuniper JNCIA – Juniper RIP Route Configuration
Juniper JNCIA – Juniper RIP Route ConfigurationHamed Moghaddam
 
Cisco CCNA- How to Configure Multi-Layer Switch
Cisco CCNA- How to Configure Multi-Layer SwitchCisco CCNA- How to Configure Multi-Layer Switch
Cisco CCNA- How to Configure Multi-Layer SwitchHamed 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
 
Juniper JNCIA – Juniper OSPF Route Configuration
Juniper JNCIA – Juniper OSPF Route ConfigurationJuniper JNCIA – Juniper OSPF Route Configuration
Juniper JNCIA – Juniper OSPF Route ConfigurationHamed Moghaddam
 
Cisco CCNA EIGRP IPV6 Configuration
Cisco CCNA EIGRP IPV6 ConfigurationCisco CCNA EIGRP IPV6 Configuration
Cisco CCNA EIGRP IPV6 ConfigurationHamed 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
 
Cisco CCNA IP SLA with tracking configuration
Cisco CCNA IP SLA  with tracking  configurationCisco CCNA IP SLA  with tracking  configuration
Cisco CCNA IP SLA with tracking configurationHamed Moghaddam
 
Cisco CCNA- NAT Configuration
Cisco CCNA- NAT ConfigurationCisco CCNA- NAT Configuration
Cisco CCNA- NAT ConfigurationHamed Moghaddam
 
Cisco CCNA CCNP VACL Configuration
Cisco CCNA CCNP VACL ConfigurationCisco CCNA CCNP VACL Configuration
Cisco CCNA CCNP VACL ConfigurationHamed Moghaddam
 
Cisco CCNA Port Security
Cisco CCNA Port SecurityCisco CCNA Port Security
Cisco CCNA Port SecurityHamed Moghaddam
 

Viewers also liked (13)

Cisco CCNA IPV6 Static Configuration
Cisco CCNA  IPV6 Static ConfigurationCisco CCNA  IPV6 Static Configuration
Cisco CCNA IPV6 Static Configuration
 
Cisco CCNA OSPF IPV6 Configuration
Cisco CCNA OSPF IPV6 ConfigurationCisco CCNA OSPF IPV6 Configuration
Cisco CCNA OSPF IPV6 Configuration
 
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
 
Juniper JNCIA – Juniper RIP Route Configuration
Juniper JNCIA – Juniper RIP Route ConfigurationJuniper JNCIA – Juniper RIP Route Configuration
Juniper JNCIA – Juniper RIP Route Configuration
 
Cisco CCNA- How to Configure Multi-Layer Switch
Cisco CCNA- How to Configure Multi-Layer SwitchCisco CCNA- How to Configure Multi-Layer Switch
Cisco CCNA- How to Configure Multi-Layer Switch
 
Cisco CCNA-CCNP IP SLA Configuration
Cisco CCNA-CCNP IP SLA ConfigurationCisco CCNA-CCNP IP SLA Configuration
Cisco CCNA-CCNP IP SLA Configuration
 
Juniper JNCIA – Juniper OSPF Route Configuration
Juniper JNCIA – Juniper OSPF Route ConfigurationJuniper JNCIA – Juniper OSPF Route Configuration
Juniper JNCIA – Juniper OSPF Route Configuration
 
Cisco CCNA EIGRP IPV6 Configuration
Cisco CCNA EIGRP IPV6 ConfigurationCisco CCNA EIGRP IPV6 Configuration
Cisco CCNA EIGRP IPV6 Configuration
 
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
 
Cisco CCNA IP SLA with tracking configuration
Cisco CCNA IP SLA  with tracking  configurationCisco CCNA IP SLA  with tracking  configuration
Cisco CCNA IP SLA with tracking configuration
 
Cisco CCNA- NAT Configuration
Cisco CCNA- NAT ConfigurationCisco CCNA- NAT Configuration
Cisco CCNA- NAT Configuration
 
Cisco CCNA CCNP VACL Configuration
Cisco CCNA CCNP VACL ConfigurationCisco CCNA CCNP VACL Configuration
Cisco CCNA CCNP VACL Configuration
 
Cisco CCNA Port Security
Cisco CCNA Port SecurityCisco CCNA Port Security
Cisco CCNA Port Security
 

Similar to Juniper JNCIA – Juniper RIP and OSPF Route Configuration

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

bgp-01
bgp-01bgp-01
bgp-01
 
CCIE Lab - IGP Routing
CCIE Lab -  IGP Routing  CCIE Lab -  IGP Routing
CCIE Lab - IGP Routing
 
OSPF 3
OSPF 3OSPF 3
OSPF 3
 
OSPF 3
OSPF 3OSPF 3
OSPF 3
 
Ppt of routing protocols
Ppt of routing protocolsPpt of routing protocols
Ppt of routing protocols
 
Ospf Last Modified Eng
Ospf  Last Modified EngOspf  Last Modified Eng
Ospf Last Modified Eng
 
Lab 9 instructions
Lab 9 instructionsLab 9 instructions
Lab 9 instructions
 
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
 
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
 
CCNP Troubleshooting
CCNP TroubleshootingCCNP Troubleshooting
CCNP Troubleshooting
 
CCNP Troubleshooting
CCNP TroubleshootingCCNP Troubleshooting
CCNP Troubleshooting
 
OSPF_multi.pdf
OSPF_multi.pdfOSPF_multi.pdf
OSPF_multi.pdf
 
Labs ospf
Labs ospfLabs ospf
Labs ospf
 
Routing Information Protocol (RIP)
Routing Information Protocol (RIP)Routing Information Protocol (RIP)
Routing Information Protocol (RIP)
 
Ospf Cisco
Ospf CiscoOspf Cisco
Ospf Cisco
 
IPv6_ROUTING_RIP
IPv6_ROUTING_RIPIPv6_ROUTING_RIP
IPv6_ROUTING_RIP
 
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
 
Cisco CCNA GRE Tunnel Configuration
Cisco CCNA GRE Tunnel ConfigurationCisco CCNA GRE Tunnel Configuration
Cisco CCNA GRE Tunnel Configuration
 
Icnd210 s04l01
Icnd210 s04l01Icnd210 s04l01
Icnd210 s04l01
 

More from Hamed Moghaddam

Cisco CCNA- PPP Multilink Configuration
Cisco CCNA- PPP Multilink ConfigurationCisco CCNA- PPP Multilink Configuration
Cisco CCNA- PPP Multilink ConfigurationHamed 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
 
Cisco CCNA-Router on Stick
Cisco CCNA-Router on StickCisco CCNA-Router on Stick
Cisco CCNA-Router on StickHamed Moghaddam
 
Cisco CCNA-Standard Access List
Cisco CCNA-Standard Access ListCisco CCNA-Standard Access List
Cisco CCNA-Standard Access ListHamed 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
 
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 (10)

Cisco CCNA- PPP Multilink Configuration
Cisco CCNA- PPP Multilink ConfigurationCisco CCNA- PPP Multilink Configuration
Cisco CCNA- PPP Multilink Configuration
 
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-Router on Stick
Cisco CCNA-Router on StickCisco CCNA-Router on Stick
Cisco CCNA-Router on Stick
 
Cisco CCNA-Standard Access List
Cisco CCNA-Standard Access ListCisco CCNA-Standard Access List
Cisco CCNA-Standard Access List
 
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!
 
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

Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
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
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 

Recently uploaded (20)

Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
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
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 

Juniper JNCIA – Juniper RIP and OSPF Route Configuration

  • 1. Juniper JNCIA ASM Educational Center Inc. (ASM) Where Training,Technology& Service Converge CheckoutourJuniperTrainingVideos:www.asmed.com/j1 Juniper RIP and OSPF Route Configuration
  • 2. Juniper RIP and OSPF Route Configuration
  • 3. Juniper RIP and OSPF Route Configuration The Goal is when I configure OSPF on the left side ( between R1,R2,R3) ; R4 be able to ping 1.1.1.1 and 3.3.3.3 after I export from OSPF to RIP. Up to now R2 has loopback address 2.2.2.2/32 and 2.2.2.3/32 that will be seen on R4 Routing tables since I have done RIP on R2 and R4
  • 4. Juniper RIP and OSPF Route Configuration Here what we have on R4: root@R4> show configuration em2 { unit 0 { family inet { address 20.20.20.4/24; } } } lo0 { unit 0 { family inet { address 4.4.4.4/32; } } } }
  • 5. Juniper RIP and OSPF Route Configuration protocols { rip { group RIPGROUP4 { export RIPPOLICY; neighbor em2.0; } } } policy-options { policy-statement RIPPOLICY { term 1 { from protocol [ rip direct ]; then accept; } } }
  • 6. Juniper RIP and OSPF Route Configuration Here what I have on R2# root@R2> show configuration interfaces { em1 { unit 0 { family inet { address 10.10.10.2/24; } } } em2 { unit 0 { family inet { address 20.20.20.2/24; } } }
  • 7. Juniper RIP and OSPF Route Configuration em3 { unit 0 { family inet { address 30.30.30.2/24; } } } lo0 { unit 0 { family inet { address 2.2.2.2/32; address 2.2.2.3/32; } } } }
  • 8. Juniper RIP and OSPF Route Configuration protocols { rip { group RIPGROUP { export RIPPOLICY2; neighbor em2.0; } } } policy-options { policy-statement RIPPOLICY2 { term 1 { from protocol [ rip direct ]; then accept; } } }
  • 9. Juniper RIP and OSPF Route Configuration Now remember from last lab R4 can ping loopback address 2.2.2.2 and 2.2.2.3 root@R4> show route inet.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both
  • 10. Juniper RIP and OSPF Route Configuration 2.2.2.2/32 *[RIP/100] 00:01:48, metric 2, tag 0 > to 20.20.20.2 via em2.0 2.2.2.3/32 *[RIP/100] 00:01:48, metric 2, tag 0 > to 20.20.20.2 via em2.0 4.4.4.4/32 *[Direct/0] 00:02:59 > via lo0.0 10.10.10.0/24 *[RIP/100] 00:01:52, metric 2, tag 0 > to 20.20.20.2 via em2.0 20.20.20.0/24 *[Direct/0] 00:03:00 > via em2.0 20.20.20.4/32 *[Local/0] 00:03:00 Local via em2.0 30.30.30.0/24 *[RIP/100] 00:01:48, metric 2, tag 0 > to 20.20.20.2 via em2.0 224.0.0.9/32 *[RIP/100] 00:03:01, metric 1 MultiRecv
  • 11. Juniper RIP and OSPF Route Configuration root@R4> 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.462 ms 64 bytes from 2.2.2.2: icmp_seq=1 ttl=64 time=0.587 ms 64 bytes from 2.2.2.2: icmp_seq=2 ttl=64 time=1.029 ms ^C --- 2.2.2.2 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.462/0.693/1.029/0.243 ms
  • 12. Juniper RIP and OSPF Route Configuration root@R4> ping 2.2.2.3 PING 2.2.2.3 (2.2.2.3): 56 data bytes 64 bytes from 2.2.2.3: icmp_seq=0 ttl=64 time=0.522 ms 64 bytes from 2.2.2.3: icmp_seq=1 ttl=64 time=0.910 ms 64 bytes from 2.2.2.3: icmp_seq=2 ttl=64 time=0.948 ms 64 bytes from 2.2.2.3: icmp_seq=3 ttl=64 time=0.^C --- 2.2.2.3 ping statistics --- 4 packets transmitted, 4 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.522/0.825/0.948/0.175 ms •
  • 13. Juniper RIP and OSPF Route Configuration Now I go to R1 and R3 and create all my interface and loopback address : Here is R1 configuration: root@R1# set interfaces em1 unit 0 family inet address 10.10.10.1/24 set interfaces lo0 unit 0 family inet address 1.1.1.1/32 Now I will do on R3: root@R3#set interfaces em3 unit 0 family inet address 30.30.30.1/24 set interfaces lo0 unit 0 family inet address 3.3.3.3/32
  • 14. Juniper RIP and OSPF Route Configuration Now I will go configure OPPF on R1# root@R1#set protocols ospf area 0.0.0.0 interface em1.0 set protocols ospf area 0.0.0.0 interface lo0.0 Now I will go configure OPSF on R2# root@R2# set protocols ospf area 0.0.0.0 interface em1.0 set protocols ospf area 0.0.0.0 interface em3.0 set protocols ospf area 0.0.0.0 interface lo0.0
  • 15. Juniper RIP and OSPF Route Configuration Now we see R2 is neighbor with R1 root@R2> show ospf neighbor Address Interface State ID Pri Dead 10.10.10.1 em1.0 Full 1.1.1.1 128 35 Lets look at R1 , routing table : I can see the loopback of R2 , not Loopback of R3 =3.3.3.3 since I need to finish my OSPF configuration on R3
  • 16. Juniper RIP and OSPF Route Configuration root@R1> show route inet.0: 7 destinations, 7 routes (7 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 1.1.1.1/32 *[Direct/0] 00:23:25 > via lo0.0 2.2.2.2/32 *[OSPF/10] 00:09:04, metric 1 > to 10.10.10.2 via em1.0 2.2.2.3/32 *[OSPF/10] 00:09:04, metric 1 > to 10.10.10.2 via em1.0 10.10.10.0/24 *[Direct/0] 00:31:53 > via em1.0 10.10.10.1/32 *[Local/0] 00:31:53 Local via em1.0 30.30.30.0/24 *[OSPF/10] 00:09:04, metric 2 > to 10.10.10.2 via em1.0 224.0.0.5/32 *[OSPF/10] 00:13:11, metric 1 MultiRecv
  • 17. Juniper RIP and OSPF Route Configuration Now I will configure OSPF on R3# root@R3# set protocols ospf area 0.0.0.0 interface em3.0 set protocols ospf area 0.0.0.0 interface lo0.0 Now when I go to R3 and I should have two neighbors on R3 root@R2> show ospf neighbor Address Interface State ID Pri Dead 10.10.10.1 em1.0 Full 1.1.1.1 128 34 30.30.30.1 em3.0 Full 3.3.3.3 128 39 Lets look at R1 routing table I should see the loopback of R2=2.2.2.2 , 2.2.2.3 and Loopback of R3=3.3.3.3
  • 18. Juniper RIP and OSPF Route Configuration root@R1> show route inet.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 1.1.1.1/32 *[Direct/0] 00:30:12 > via lo0.0 2.2.2.2/32 *[OSPF/10] 00:15:51, metric 1 > to 10.10.10.2 via em1.0 2.2.2.3/32 *[OSPF/10] 00:15:51, metric 1 > to 10.10.10.2 via em1.0 3.3.3.3/32 *[OSPF/10] 00:03:03, metric 2 > to 10.10.10.2 via em1.0 10.10.10.0/24 *[Direct/0] 00:38:40 > via em1.0 10.10.10.1/32 *[Local/0] 00:38:40 Local via em1.0 30.30.30.0/24 *[OSPF/10] 00:15:51, metric 2 > to 10.10.10.2 via em1.0 224.0.0.5/32 *[OSPF/10] 00:19:58, metric 1 MultiRecv
  • 19. Juniper RIP and OSPF Route Configuration So up to now R1, R2, R3 are talking via OPSF and R2 and R4 are talking via RIP ; now when I go to R4 routing table I do not see the loopback of R1=1.1.1.1 and R3=3.3.3.3 inside R4 Lets go to R4# root@R4> show route
  • 20. Juniper RIP and OSPF Route Configuration inet.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 2.2.2.2/32 *[RIP/100] 00:48:21, metric 2, tag 0 > to 20.20.20.2 via em2.0 2.2.2.3/32 *[RIP/100] 00:48:21, metric 2, tag 0 > to 20.20.20.2 via em2.0 4.4.4.4/32 *[Direct/0] 00:49:32 > via lo0.0 10.10.10.0/24 *[RIP/100] 00:48:25, metric 2, tag 0 > to 20.20.20.2 via em2.0 20.20.20.0/24 *[Direct/0] 00:49:33 > via em2.0 20.20.20.4/32 *[Local/0] 00:49:33 Local via em2.0 30.30.30.0/24 *[RIP/100] 00:48:21, metric 2, tag 0 > to 20.20.20.2 via em2.0 224.0.0.9/32 *[RIP/100] 00:49:34, metric 1 MultiRecv
  • 21. Juniper RIP and OSPF Route Configuration inet.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 2.2.2.2/32 *[RIP/100] 00:48:21, metric 2, tag 0 > to 20.20.20.2 via em2.0 2.2.2.3/32 *[RIP/100] 00:48:21, metric 2, tag 0 > to 20.20.20.2 via em2.0 4.4.4.4/32 *[Direct/0] 00:49:32 > via lo0.0 10.10.10.0/24 *[RIP/100] 00:48:25, metric 2, tag 0 > to 20.20.20.2 via em2.0 20.20.20.0/24 *[Direct/0] 00:49:33 > via em2.0 20.20.20.4/32 *[Local/0] 00:49:33 Local via em2.0 30.30.30.0/24 *[RIP/100] 00:48:21, metric 2, tag 0 > to 20.20.20.2 via em2.0 224.0.0.9/32 *[RIP/100] 00:49:34, metric 1 MultiRecv
  • 22. Juniper RIP and OSPF Route Configuration In order R4 be able to see loopback 1.1.1.1 and 3.3.3.3 I need to go to Middle router R2 and export the OSPF into RIP ( the same way we did on RIP and connected) let’s look at R2 , what we have so far: root@R2> show configuration protocols { ospf { area 0.0.0.0 { interface em1.0; interface em3.0; interface lo0.0; } }
  • 23. Juniper RIP and OSPF Route Configuration rip { group RIPGROUP { export RIPPOLICY2; neighbor em2.0; } } } policy-options { policy-statement RIPPOLICY2 { term 1 { from protocol [ rip direct ]; then accept; } } } •
  • 24. Juniper RIP and OSPF Route Configuration Now in above Policy-option I need to Add OSFF that is : root@R2#set policy-options policy-statement RIPPOLICY2 term 1 from protocol ospf Now let’s look at show configuration on R2 again and make sure OSPF has been added : root@R2> show configuration protocols { ospf { area 0.0.0.0 { interface em1.0; interface em3.0; interface lo0.0; } } rip { group RIPGROUP { export RIPPOLICY2; neighbor em2.0; } } }
  • 25. Juniper RIP and OSPF Route Configuration policy-statement RIPPOLICY2 { term 1 { from protocol [ rip direct ospf ]; then accept; } } } Now when I go to R4 routing tables I see all the Loopback address of R1=1.1.1.1 and R3=3.3.3.3 root@R4> show route
  • 26. Juniper RIP and OSPF Route Configuration inet.0: 10 destinations, 10 routes (10 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 1.1.1.1/32 *[RIP/100] 00:03:11, metric 2, tag 0 > to 20.20.20.2 via em2.0 2.2.2.2/32 *[RIP/100] 00:59:32, metric 2, tag 0 > to 20.20.20.2 via em2.0 2.2.2.3/32 *[RIP/100] 00:59:32, metric 2, tag 0 > to 20.20.20.2 via em2.0 3.3.3.3/32 *[RIP/100] 00:03:11, metric 2, tag 0 > to 20.20.20.2 via em2.0 4.4.4.4/32 *[Direct/0] 01:00:43 > via lo0.0
  • 27. Juniper RIP and OSPF Route Configuration 10.10.10.0/24 *[RIP/100] 00:59:36, metric 2, tag 0 > to 20.20.20.2 via em2.0 20.20.20.0/24 *[Direct/0] 01:00:44 > via em2.0 20.20.20.4/32 *[Local/0] 01:00:44 Local via em2.0 30.30.30.0/24 *[RIP/100] 00:59:32, metric 2, tag 0 > to 20.20.20.2 via em2.0 224.0.0.9/32 *[RIP/100] 01:00:45, metric 1 MultiRecv
  • 28. Juniper RIP and OSPF Route Configuration Now ; if I Go to R4 I will see all the loopback but I can not ping 1.1.1.1 and 3.3.3.3 ? why ? Since remember Ping is Echo and Echo-reply and also when I go to R1 and look at Routing table I do not see The loopback address of R4=4.4.4.4 (since I need to export RIP into OSPF) , lets look at R1 routing table root@R1> show route inet.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both
  • 29. Juniper RIP and OSPF Route Configuration 1.1.1.1/32 *[Direct/0] 00:50:22 > via lo0.0 2.2.2.2/32 *[OSPF/10] 00:36:01, metric 1 > to 10.10.10.2 via em1.0 2.2.2.3/32 *[OSPF/10] 00:36:01, metric 1 > to 10.10.10.2 via em1.0 3.3.3.3/32 *[OSPF/10] 00:23:13, metric 2 > to 10.10.10.2 via em1.0 10.10.10.0/24 *[Direct/0] 00:58:50 > via em1.0 10.10.10.1/32 *[Local/0] 00:58:50 Local via em1.0 30.30.30.0/24 *[OSPF/10] 00:36:01, metric 2 > to 10.10.10.2 via em1.0 224.0.0.5/32 *[OSPF/10] 00:40:08, metric 1 MultiRecv
  • 30. Juniper RIP and OSPF Route Configuration So how do you solve the problem ; I must go to Middle Router R2 and do same concept as before ; but in this case I need to export RIP into OSPF , before we did export OSPF into RIP. The above concept is called redistribution that is cover in Cisco CCNP class. Let’s look at what I have on R2 so far : root@R2> show configuration protocols { ospf { area 0.0.0.0 { interface em1.0; interface em3.0; interface lo0.0; } }
  • 31. Juniper RIP and OSPF Route Configuration rip { group RIPGROUP { export RIPPOLICY2; neighbor em2.0; } } } policy-options { policy-statement RIPPOLICY2 { term 1 { from protocol [ rip direct ospf ]; then accept; } } }
  • 32. Juniper RIP and OSPF Route Configuration So what I need to do create another Policy-option and lets called it OSPFPOLICY and then export it (apply) it under Protocol ospf root@R2# set policy-options policy-statement OSPFPOLICY term 1 from protocol rip set policy-options policy-statement OSPFPOLICY term 1 then accept now I need to Export it under OSPF (apply this policy) , lets see what we have so far :
  • 33. Juniper RIP and OSPF Route Configuration So what I need to do create another Policy-option and lets called it OSPFPOLICY and then export it (apply) it under Protocol ospf root@R2# set policy-options policy-statement OSPFPOLICY term 1 from protocol rip set policy-options policy-statement OSPFPOLICY term 1 then accept now I need to Export it under OSPF (apply this policy) , lets see what we have so far :
  • 34. Juniper RIP and OSPF Route Configuration root@R2> show configuration protocols { ospf { area 0.0.0.0 { interface em1.0; interface em3.0; interface lo0.0; } } rip { group RIPGROUP { export RIPPOLICY2; neighbor em2.0; } } }
  • 35. Juniper RIP and OSPF Route Configuration policy-options { policy-statement OSPFPOLICY { term 1 { from protocol ospf; then accept; } } policy-statement RIPPOLICY2 { term 1 { from protocol [ rip direct ospf ]; then accept; } } }
  • 36. Juniper RIP and OSPF Route Configuration Now all I have to do Export ( apply OSPFPOLICY) under protocol ospf same as RIP. root@R2# set protocols ospf export OSPFPOLICY let’s see what we have on R2 now : root@R2# run show configuration protocols { ospf { export OSPFPOLICY; area 0.0.0.0 { interface em1.0; interface em3.0; interface lo0.0; } }
  • 37. Juniper RIP and OSPF Route Configuration rip { group RIPGROUP { export RIPPOLICY2; neighbor em2.0; } } } policy-options { policy-statement OSPFPOLICY { term 1 { from protocol rip; then accept; } }
  • 38. Juniper RIP and OSPF Route Configuration policy-statement RIPPOLICY2 { term 1 { from protocol [ rip direct ospf ]; then accept; } } } Now If I go to R1 and look at Routing table I will see the loopback of R4 as OSPF with tag 2 ( similar to Cisco which is called OE2 =means external ) and here the prefarcane for external is 150 instead of 10
  • 39. Juniper RIP and OSPF Route Configuration root@R1> show route inet.0: 9 destinations, 9 routes (9 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 1.1.1.1/32 *[Direct/0] 01:21:26 > via lo0.0 2.2.2.2/32 *[OSPF/10] 01:07:05, metric 1 > to 10.10.10.2 via em1.0 2.2.2.3/32 *[OSPF/10] 01:07:05, metric 1 > to 10.10.10.2 via em1.0 3.3.3.3/32 *[OSPF/10] 00:54:17, metric 2 > to 10.10.10.2 via em1.0
  • 40. Juniper RIP and OSPF Route Configuration 4.4.4.4/32 *[OSPF/150] 00:00:54, metric 2, tag 0 > to 10.10.10.2 via em1.0 10.10.10.0/24 *[Direct/0] 01:29:54 > via em1.0 10.10.10.1/32 *[Local/0] 01:29:54 Local via em1.0 30.30.30.0/24 *[OSPF/10] 01:07:05, metric 2 > to 10.10.10.2 via em1.0 224.0.0.5/32 *[OSPF/10] 01:11:12, metric 1 MultiRecv
  • 41. Juniper RIP and OSPF Route Configuration root@R1> ping 4.4.4.4 PING 4.4.4.4 (4.4.4.4): 56 data bytes 64 bytes from 4.4.4.4: icmp_seq=0 ttl=63 time=0.860 ms 64 bytes from 4.4.4.4: icmp_seq=1 ttl=63 time=2.033 ms 64 bytes from 4.4.4.4: icmp_seq=2 ttl=63 time=1.631 ms ^C --- 4.4.4.4 ping statistics --- Now even R3 can see loopback of R4=4.4.4.4 and can ping it : (With Preference of 150 and metric 2 instead of default Preference of 10 and metric 1)
  • 42. Juniper RIP and OSPF Route Configuration root@R3> show route inet.0: 9 destinations, 9 routes (9 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 1.1.1.1/32 *[OSPF/10] 01:04:56, metric 2 > to 30.30.30.2 via em3.0 2.2.2.2/32 *[OSPF/10] 01:04:56, metric 1 > to 30.30.30.2 via em3.0 2.2.2.3/32 *[OSPF/10] 01:04:56, metric 1 > to 30.30.30.2 via em3.0 3.3.3.3/32 *[Direct/0] 01:28:34 > via lo0.0
  • 43. Juniper RIP and OSPF Route Configuration 4.4.4.4/32 *[OSPF/150] 00:10:14, metric 2, tag 0 > to 30.30.30.2 via em3.0 10.10.10.0/24 *[OSPF/10] 01:04:56, metric 2 > to 30.30.30.2 via em3.0 30.30.30.0/24 *[Direct/0] 01:30:19 > via em3.0 30.30.30.1/32 *[Local/0] 01:30:19 Local via em3.0 224.0.0.5/32 *[OSPF/10] 01:05:01, metric 1 MultiRecv
  • 44. Juniper RIP and OSPF Route Configuration root@R3> ping 4.4.4.4 PING 4.4.4.4 (4.4.4.4): 56 data bytes 64 bytes from 4.4.4.4: icmp_seq=0 ttl=63 time=1.017 ms 64 bytes from 4.4.4.4: icmp_seq=1 ttl=63 time=1.556 ms ^C Now If I go to R4 and look at Routing table of R4 I see the loopback 1.1.1.1 and 3.3.3.3 but still can not ping it ? Since I need under OSPF also export direct connection on R2 Here what we had before on R2#
  • 45. Juniper RIP and OSPF Route Configuration root@R2> run show configuration protocols { ospf { export OSPFPOLICY; area 0.0.0.0 { interface em1.0; interface em3.0; interface lo0.0; } } rip { group RIPGROUP { export RIPPOLICY2; neighbor em2.0; } } }
  • 46. Juniper RIP and OSPF Route Configuration policy-options { policy-statement OSPFPOLICY { term 1 { from protocol rip; then accept; } } policy-statement RIPPOLICY2 { term 1 { from protocol [ rip direct ospf ]; then accept; } } }
  • 47. Juniper RIP and OSPF Route Configuration As we see I have this on R2: policy-options { policy-statement OSPFPOLICY { term 1 { from protocol rip; then accept; The above means redistribute or export RIP into ospf that is what R1 can ping 4.4.4.4 but R1 can not ping the link 20.20.20.2 or 20.20.20.4
  • 48. Juniper RIP and OSPF Route Configuration So If I add the export Direct in above , then It means I am also exporting RIP and direct connection to OSPF then R1 can ping 20.20.20.2 and 20.20.20.4 , and then R4 will be able to ping 1.1.1.1 and 3.3.3.3 So I go to R2# root@R2# set policy-options policy-statement OSPFPOLICY term 1 from protocol Now here what I have in R2 compare in above :
  • 49. Juniper RIP and OSPF Route Configuration policy-options { policy-statement OSPFPOLICY { term 1 { from protocol [ rip direct ]; then accept; Now above means export RIP and directed connection into OSPF Now R1 should be able ping directly connection link 20.20.20.2 and 20.20.20.4 and R4 be able to ping 1.1.1.1 and 3.3.3.3
  • 50. Juniper RIP and OSPF Route Configuration root@R1> ping 20.20.20.2 PING 20.20.20.2 (20.20.20.2): 56 data bytes 64 bytes from 20.20.20.2: icmp_seq=0 ttl=64 time=0.462 ms 64 bytes from 20.20.20.2: icmp_seq=1 ttl=64 time=1.097 ms 64 bytes from 20.20.20.2: icmp_seq=2 ttl=64 time=0.752 ms 64 bytes from 20.20.20.2: icmp_seq=3 ttl=64 time=0.978 ms ^C --- 20.20.20.2 ping statistics --- 4 packets transmitted, 4 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.462/0.822/1.097/0.242 ms
  • 51. Juniper RIP and OSPF Route Configuration root@R1> root@R1> ping 20.20.20.4 PING 20.20.20.4 (20.20.20.4): 56 data bytes 64 bytes from 20.20.20.4: icmp_seq=0 ttl=63 time=0.774 ms 64 bytes from 20.20.20.4: icmp_seq=1 ttl=63 time=1.569 ms 64 bytes from 20.20.20.4: icmp_seq=2 ttl=63 time=1.646 ms ^C --- 20.20.20.4 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.774/1.330/1.646/0.394 ms
  • 52. Juniper RIP and OSPF Route Configuration Now R4 should be able to ping 3.3.3.3 and 1.1.1.1 of R3 and R1 root@R4> 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=63 time=1.257 ms 64 bytes from 1.1.1.1: icmp_seq=1 ttl=63 time=1.804 ms 64 bytes from 1.1.1.1: icmp_seq=2 ttl=63 time=1.885 ms ^C --- 1.1.1.1 ping statistics ---
  • 53. Juniper RIP and OSPF Route Configuration 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 1.257/1.649/1.885/0.279 ms root@R4> ping 3.3.3.3 PING 3.3.3.3 (3.3.3.3): 56 data bytes 64 bytes from 3.3.3.3: icmp_seq=0 ttl=63 time=0.882 ms 64 bytes from 3.3.3.3: icmp_seq=1 ttl=63 time=1.520 ms 64 bytes from 3.3.3.3: icmp_seq=2 ttl=63 time=1.733 ms 64 bytes from 3.3.3.3: icmp_seq=3 ttl=63 time=1.495 ms ^C --- 3.3.3.3 ping statistics --- 4 packets transmitted, 4 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.882/1.407/1.733/0.317 ms
  • 54. Juniper RIP and OSPF Route Configuration So summary on R2 we had this : root@R2# run show configuration protocols { ospf { export OSPFPOLICY; area 0.0.0.0 { interface em1.0; interface em3.0; interface lo0.0; } }
  • 55. Juniper RIP and OSPF Route Configuration rip { group RIPGROUP { export RIPPOLICY2; neighbor em2.0; } } } policy-options { policy-statement OSPFPOLICY { term 1 { from protocol [ rip direct ]; ( This means export Rip and directed connection to OSPF) then accept; } }
  • 56. Juniper RIP and OSPF Route Configuration policy-statement RIPPOLICY2 { term 1 { from protocol [ rip direct ospf ]; ( this means Export RIP, Directed connection and OSPF into RIP) then accept; } } }
  • 57. ASM Educational Center Inc. (ASM) WhereTraining,Technology&ServiceConverge www.asmed.com