I did as you asked me, and it was indeed learned in Junos5 Rip routes and in R2 routes as OSPF, not external route.
I don't know if this is correct or not but here's the configuration
Junos6
root@Jun6# show
## Last changed: 2014-09-27 21:28:44 UTC
version 10.1R1.8;
system {
host-name Jun6;
root-authentication {
encrypted-password "$1$wI2B0vxt$UEKbbHBQGDU7RKJEj5CBq/"; ## SECRET-DATA
}
syslog {
user * {
any emergency;
}
file messages {
any notice;
authorization info;
}
file interactive-commands {
interactive-commands any;
}
}
}
interfaces {
em0 {
unit 0 {
family inet {
address 56.56.56.6/24;
}
}
}
lo0 {
unit 0 {
family inet {
address 1.1.1.1/24;
}
}
}
}
routing-options {
router-id 6.6.6.6;
}
protocols {
rip {
group walid {
export rip-routes;
neighbor em0.0;
}
}
}
policy-options {
policy-statement rip-routes {
from {
protocol direct;
interface lo0.0;
}
then accept;
}
}
[edit]
Junos5
# Last changed: 2014-09-27 21:23:20 UTC
version 10.1R1.8;
system {
host-name Jun5;
root-authentication {
encrypted-password "$1$Ce/ZTzNE$egKrbkHmL0CL9izkoDsHU1"; ## SECRET-DATA
}
syslog {
user * {
any emergency;
}
file messages {
any notice;
authorization info;
}
file interactive-commands {
interactive-commands any;
}
}
}
interfaces {
em0 {
unit 0 {
family inet {
address 25.25.25.5/24;
}
}
}
em1 {
unit 0 {
family inet {
address 56.56.56.5/24;
}
}
}
}
routing-options {
router-id 5.5.5.5;
}
protocols {
ospf {
export RIP;
area 0.0.0.20 {
nssa;
interface em0.0;
}
}
rip {
group walid {
export rip-routes;
neighbor em1.0;
}
}
}
policy-options {
policy-statement RIP {
from protocol rip;
then accept;
}
policy-statement rip-routes {
from protocol direct;
then accept;
}
}
root@Jun5# run show route
inet.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
0.0.0.0/0 *[OSPF/150] 00:05:46, metric 20, tag 0
> to 25.25.25.2 via em0.0
1.1.1.0/24 *[RIP/100] 00:00:49, metric 2, tag 0
> to 56.56.56.6 via em1.0
25.25.25.0/24 *[Direct/0] 02:24:59
> via em0.0
25.25.25.5/32 *[Local/0] 02:24:59
Local via em0.0
56.56.56.0/24 *[Direct/0] 02:24:59
> via em1.0
56.56.56.5/32 *[Local/0] 02:24:59
Local via em1.0
224.0.0.5/32 *[OSPF/10] 02:24:59, metric 1
MultiRecv
224.0.0.9/32 *[RIP/100] 00:05:58, metric 1
MultiRecv
And on Junos2
root@Jun2# run show route
inet.0: 11 destinations, 11 routes (11 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
1.1.1.0/24 *[OSPF/150] 00:00:58, metric 2, tag 0
> to 25.25.25.5 via em3.0
12.12.12.0/24 *[Direct/0] 02:25:15
> via em0.0
12.12.12.2/32 *[Local/0] 02:25:15
Local via em0.0
23.23.23.0/24 *[Direct/0] 02:25:15
> via em1.0
23.23.23.2/32 *[Local/0] 02:25:15
Local via em1.0
24.24.24.0/24 *[Direct/0] 02:25:15
> via em2.0
24.24.24.2/32 *[Local/0] 02:25:15
Local via em2.0
25.25.25.0/24 *[Direct/0] 02:25:15
> via em3.0
25.25.25.2/32 *[Local/0] 02:25:15
Local via em3.0
34.34.34.0/24 *[OSPF/10] 00:05:54, metric 2
> to 23.23.23.3 via em1.0
224.0.0.5/32 *[OSPF/10] 02:25:16, metric 1
MultiRecv
[edit]
root@Jun2# run show ospd
^
syntax error, expecting <command>.
root@Jun2# run show ospf route
Topology default Route Table:
Prefix Path Route NH Metric NextHop Nexthop
Type Type Type Interface Address/LSP
1.1.1.1 Intra Router IP 1 em0.0 12.12.12.1
3.3.3.3 Intra Router IP 1 em1.0 23.23.23.3
4.4.4.4 Intra Router IP 2 em1.0 23.23.23.3
5.5.5.5 Intra AS BR IP 1 em3.0 25.25.25.5
1.1.1.0/24 Ext2 Network IP 2 em3.0 25.25.25.5
12.12.12.0/24 Intra Network IP 1 em0.0
23.23.23.0/24 Intra Network IP 1 em1.0
24.24.24.0/24 Intra Network IP 1 em2.0
25.25.25.0/24 Intra Network IP 1 em3.0
34.34.34.0/24 Intra Network IP 2 em1.0 23.23.23.3
I see 1.1.1.1/24 is learned as an EXT2 route
But I am confused as 56.56.56.0/24 should be found the same as 1.1.1.1/24 (lo0)
As I exported directly connected routes in Rip and then exported rip to ospf
Thanks in advance