View Only
last person joined: 19 hours ago 

Ask questions and share experiences about ACX Series, CTP Series, MX Series, PTX Series, SSR Series, JRR Series, and all things routing, including portfolios and protocols.
  • 1.  Junos re-distribute RIP route in ospf

    Posted 12-01-2023 10:25
    I am starting out with ospf and have the below topo:
        R0 (ge-0/0/0 (ge-0/0/0 (ge-0/0/1 ---- (ge-0/0/1
        lo0                                                                     lo0                                                                                                     lo0
     1. OSPF adjacency between R1 and R2 
     2. RIP neigbhourship between R0 and R1
    I am able to see R0's lo IP in R1 route<
        root@r1# run show route protocol rip
        inet.0: 21 destinations, 23 routes (20 active, 0 holddown, 1 hidden)
        + = Active Route, - = Last Active, * = Both
                 [RIP/100] 00:29:17, metric 2, tag 0
                            >  to via ge-0/0/0.200
    I have defined a policy to export it to OSPF on R1
        root@r1# show policy-options | display set
        set policy-options policy-statement rip-ospf term 1 from protocol rip
        set policy-options policy-statement rip-ospf term 1 then accept
        root@r1# show protocols ospf
        area {
            interface lo0.0 {
            interface ge-0/0/1.0;
            interface ge-0/0/0.0 {
            interface ge-0/0/0.200 {
        export rip-ospf;
     Below is ospf details. I am unable to see being advertised. Also, not sure why the address is present in  show ospf route but not in show ospf database. Any help is appreciated
        root@r1# run show ospf route
        Topology default Route Table:
        Prefix             Path  Route      NH       Metric NextHop       Nexthop
                           Type  Type       Type            Interface     Address/LSP            Intra Router     IP            1 ge-0/0/1.0         Intra Network    IP            0 lo0.0         Intra Network    IP            1 ge-0/0/1.0        Intra Network    IP            1 ge-0/0/0.200   Intra Network    IP            1 ge-0/0/1.0    Intra Network    IP            0 lo0.0    Intra Network    IP            1 ge-0/0/1.0
        root@eop2-vmx# run show ospf database
            OSPF database, Area
         Type       ID               Adv Rtr           Seq      Age  Opt  Cksum  Len
        Router  *          0x80000034   895  0x22 0xe7a8  72
        Router          0x8000002e  1680  0x22 0x8bac  60
        Network *          0x80000023  1682  0x22 0xcfb7  32
        OpaqArea*          0x8000002a   682  0x22 0xe114  28
        OpaqArea          0x80000027  1685  0x22 0xeb05  28
            OSPF AS SCOPE link state database
         Type       ID               Adv Rtr           Seq      Age  Opt  Cksum  Len
        Extern  *          0x80000001   895  0x22 0xcd76  36

  • 2.  RE: Junos re-distribute RIP route in ospf

    Posted 12-02-2023 19:45


    Regarding why appears in show route ospf, but not show ospf database - well, actually, it is in OSPF database, but as LSA 1. See, making interface passive in OSPF prevents OSPF from sending hello packets, but OSPF will include this link in its LSA 1 (Router LSA). Therefore, checking LSA 1 with show ospf database router advertising-router self detail will reveal that this link is included.

    Regarding why does not appear in OSPF database as external (LSA 5) - that is interesting question. If there is no typo, then that prefix, received from RIP, is not selected as Active (there is no * sign next to it). Also the output reveals one hidden route, I wonder if it is the same route, received from RIP neighbor. If yes, then need to focus on extensive output for that prefix to understand why it is not being accepted.