SlideShare uma empresa Scribd logo
1 de 57
Baixar para ler offline
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

Mais conteúdo relacionado

Mais procurados

Cisco switch commands cheat sheet
Cisco switch commands cheat sheetCisco switch commands cheat sheet
Cisco switch commands cheat sheet3Anetwork com
 
Introducing segment routing TE
Introducing segment routing TEIntroducing segment routing TE
Introducing segment routing TEAlex Bogdanov
 
Troubleshooting BGP Juniper Examples
Troubleshooting BGP Juniper ExamplesTroubleshooting BGP Juniper Examples
Troubleshooting BGP Juniper ExamplesSalachudin Emir
 
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9e
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9eChapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9e
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9eadpeer
 
OSPF- Multi area
OSPF- Multi area OSPF- Multi area
OSPF- Multi area Ahmed Ali
 
Huawei switch configuration commands
Huawei switch configuration commandsHuawei switch configuration commands
Huawei switch configuration commandsHuanetwork
 
Capturing NIC and Kernel TX and RX Timestamps for Packets in Go
Capturing NIC and Kernel TX and RX Timestamps for Packets in GoCapturing NIC and Kernel TX and RX Timestamps for Packets in Go
Capturing NIC and Kernel TX and RX Timestamps for Packets in GoScyllaDB
 
Segment routing tutorial
Segment routing tutorialSegment routing tutorial
Segment routing tutorialYi-Sung Chiu
 
1000 Ccna Questions And Answers
1000 Ccna Questions And Answers1000 Ccna Questions And Answers
1000 Ccna Questions And AnswersCCNAResources
 
Cisco ACL
Cisco ACLCisco ACL
Cisco ACLfaust0
 
MPLS basic interview questions and Answers
MPLS basic interview questions and AnswersMPLS basic interview questions and Answers
MPLS basic interview questions and AnswersNetworKingStudy
 
Vxlan deep dive session rev0.5 final
Vxlan deep dive session rev0.5   finalVxlan deep dive session rev0.5   final
Vxlan deep dive session rev0.5 finalKwonSun Bae
 

Mais procurados (20)

HSRP ccna
HSRP ccna HSRP ccna
HSRP ccna
 
Cisco switch commands cheat sheet
Cisco switch commands cheat sheetCisco switch commands cheat sheet
Cisco switch commands cheat sheet
 
Juniper Trouble Shooting
Juniper Trouble ShootingJuniper Trouble Shooting
Juniper Trouble Shooting
 
Implementing cisco mpls
Implementing cisco mplsImplementing cisco mpls
Implementing cisco mpls
 
Introducing segment routing TE
Introducing segment routing TEIntroducing segment routing TE
Introducing segment routing TE
 
Cisco ospf
Cisco ospf Cisco ospf
Cisco ospf
 
Troubleshooting BGP Juniper Examples
Troubleshooting BGP Juniper ExamplesTroubleshooting BGP Juniper Examples
Troubleshooting BGP Juniper Examples
 
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9e
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9eChapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9e
Chapter 8 - IP Subnetting, Troubleshooting and Introduction to NAT 9e
 
OSPF- Multi area
OSPF- Multi area OSPF- Multi area
OSPF- Multi area
 
OSPF
OSPF OSPF
OSPF
 
Huawei switch configuration commands
Huawei switch configuration commandsHuawei switch configuration commands
Huawei switch configuration commands
 
Capturing NIC and Kernel TX and RX Timestamps for Packets in Go
Capturing NIC and Kernel TX and RX Timestamps for Packets in GoCapturing NIC and Kernel TX and RX Timestamps for Packets in Go
Capturing NIC and Kernel TX and RX Timestamps for Packets in Go
 
Segment routing tutorial
Segment routing tutorialSegment routing tutorial
Segment routing tutorial
 
OSPF Fundamental
OSPF FundamentalOSPF Fundamental
OSPF Fundamental
 
1000 Ccna Questions And Answers
1000 Ccna Questions And Answers1000 Ccna Questions And Answers
1000 Ccna Questions And Answers
 
Cisco ACL
Cisco ACLCisco ACL
Cisco ACL
 
MPLS basic interview questions and Answers
MPLS basic interview questions and AnswersMPLS basic interview questions and Answers
MPLS basic interview questions and Answers
 
Vxlan deep dive session rev0.5 final
Vxlan deep dive session rev0.5   finalVxlan deep dive session rev0.5   final
Vxlan deep dive session rev0.5 final
 
Bgp
BgpBgp
Bgp
 
CCNA presentation.
CCNA presentation.CCNA presentation.
CCNA presentation.
 

Destaque

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
 

Destaque (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
 

Semelhante a Juniper JNCIA – Juniper RIP and OSPF Route Configuration

Semelhante a 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
 

Mais de 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
 

Mais de 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
 

Último

DBMSArchitecture_QueryProcessingandOptimization.pdf
DBMSArchitecture_QueryProcessingandOptimization.pdfDBMSArchitecture_QueryProcessingandOptimization.pdf
DBMSArchitecture_QueryProcessingandOptimization.pdfChristalin Nelson
 
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQ-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQuiz Club NITW
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxkarenfajardo43
 
6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroom6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroomSamsung Business USA
 
Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17Celine George
 
The role of Geography in climate education: science and active citizenship
The role of Geography in climate education: science and active citizenshipThe role of Geography in climate education: science and active citizenship
The role of Geography in climate education: science and active citizenshipKarl Donert
 
How to Uninstall a Module in Odoo 17 Using Command Line
How to Uninstall a Module in Odoo 17 Using Command LineHow to Uninstall a Module in Odoo 17 Using Command Line
How to Uninstall a Module in Odoo 17 Using Command LineCeline George
 
DiskStorage_BasicFileStructuresandHashing.pdf
DiskStorage_BasicFileStructuresandHashing.pdfDiskStorage_BasicFileStructuresandHashing.pdf
DiskStorage_BasicFileStructuresandHashing.pdfChristalin Nelson
 
Comparative Literature in India by Amiya dev.pptx
Comparative Literature in India by Amiya dev.pptxComparative Literature in India by Amiya dev.pptx
Comparative Literature in India by Amiya dev.pptxAvaniJani1
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfPrerana Jadhav
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research DiscourseAnita GoswamiGiri
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Projectjordimapav
 
Sulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesSulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesVijayaLaxmi84
 
Employablity presentation and Future Career Plan.pptx
Employablity presentation and Future Career Plan.pptxEmployablity presentation and Future Career Plan.pptx
Employablity presentation and Future Career Plan.pptxryandux83rd
 

Último (20)

DBMSArchitecture_QueryProcessingandOptimization.pdf
DBMSArchitecture_QueryProcessingandOptimization.pdfDBMSArchitecture_QueryProcessingandOptimization.pdf
DBMSArchitecture_QueryProcessingandOptimization.pdf
 
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQ-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
 
Spearman's correlation,Formula,Advantages,
Spearman's correlation,Formula,Advantages,Spearman's correlation,Formula,Advantages,
Spearman's correlation,Formula,Advantages,
 
6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroom6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroom
 
Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17
 
Paradigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTAParadigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTA
 
Mattingly "AI & Prompt Design" - Introduction to Machine Learning"
Mattingly "AI & Prompt Design" - Introduction to Machine Learning"Mattingly "AI & Prompt Design" - Introduction to Machine Learning"
Mattingly "AI & Prompt Design" - Introduction to Machine Learning"
 
The role of Geography in climate education: science and active citizenship
The role of Geography in climate education: science and active citizenshipThe role of Geography in climate education: science and active citizenship
The role of Geography in climate education: science and active citizenship
 
Chi-Square Test Non Parametric Test Categorical Variable
Chi-Square Test Non Parametric Test Categorical VariableChi-Square Test Non Parametric Test Categorical Variable
Chi-Square Test Non Parametric Test Categorical Variable
 
How to Uninstall a Module in Odoo 17 Using Command Line
How to Uninstall a Module in Odoo 17 Using Command LineHow to Uninstall a Module in Odoo 17 Using Command Line
How to Uninstall a Module in Odoo 17 Using Command Line
 
DiskStorage_BasicFileStructuresandHashing.pdf
DiskStorage_BasicFileStructuresandHashing.pdfDiskStorage_BasicFileStructuresandHashing.pdf
DiskStorage_BasicFileStructuresandHashing.pdf
 
Comparative Literature in India by Amiya dev.pptx
Comparative Literature in India by Amiya dev.pptxComparative Literature in India by Amiya dev.pptx
Comparative Literature in India by Amiya dev.pptx
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdf
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research Discourse
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Project
 
Sulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesSulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their uses
 
Introduction to Research ,Need for research, Need for design of Experiments, ...
Introduction to Research ,Need for research, Need for design of Experiments, ...Introduction to Research ,Need for research, Need for design of Experiments, ...
Introduction to Research ,Need for research, Need for design of Experiments, ...
 
CARNAVAL COM MAGIA E EUFORIA _
CARNAVAL COM MAGIA E EUFORIA            _CARNAVAL COM MAGIA E EUFORIA            _
CARNAVAL COM MAGIA E EUFORIA _
 
Employablity presentation and Future Career Plan.pptx
Employablity presentation and Future Career Plan.pptxEmployablity presentation and Future Career Plan.pptx
Employablity presentation and Future Career Plan.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