Routing

 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 11.1.1.1)--- (ge-0/0/0 11.1.1.2)R1 (ge-0/0/1 192.168.10.1) ---- (ge-0/0/1 192.168.10.2)R2
        lo0 1.1.1.1                                                                     lo0 2.2.2.2                                                                                                     lo0 3.3.3.3
     
     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<
     
        [edit]
        root@r1# run show route protocol rip
        
        inet.0: 21 destinations, 23 routes (20 active, 0 holddown, 1 hidden)
        + = Active Route, - = Last Active, * = Both
        
        1.1.1.1/32          [RIP/100] 00:29:17, metric 2, tag 0
                            >  to 11.1.1.1 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
        traffic-engineering;
        area 0.0.0.0 {
            interface lo0.0 {
                passive;
            }
            interface ge-0/0/1.0;
            interface ge-0/0/0.0 {
                passive;
            }
            interface ge-0/0/0.200 {
                passive;
            }
        }
        export rip-ospf;
     
     Below is ospf details. I am unable to see 1.1.1.1 being advertised. Also, not sure why the address 11.1.1.0 is present in  show ospf route but not in show ospf database. Any help is appreciated
     
        [edit]
        root@r1# run show ospf route
        Topology default Route Table:
        
        Prefix             Path  Route      NH       Metric NextHop       Nexthop
                           Type  Type       Type            Interface     Address/LSP
        3.3.3.3            Intra Router     IP            1 ge-0/0/1.0    192.168.10.2
        2.2.2.2/32         Intra Network    IP            0 lo0.0
        3.3.3.3/32         Intra Network    IP            1 ge-0/0/1.0    192.168.10.2
        11.1.1.0/24        Intra Network    IP            1 ge-0/0/0.200
        128.52.34.200/32   Intra Network    IP            1 ge-0/0/1.0    192.168.10.2
        128.52.56.65/32    Intra Network    IP            0 lo0.0
        192.168.10.0/24    Intra Network    IP            1 ge-0/0/1.0
        
        [edit]
        root@eop2-vmx# run show ospf database
        
            OSPF database, Area 0.0.0.0
         Type       ID               Adv Rtr           Seq      Age  Opt  Cksum  Len
        Router  *2.2.2.2          2.2.2.2          0x80000034   895  0x22 0xe7a8  72
        Router   3.3.3.3          3.3.3.3          0x8000002e  1680  0x22 0x8bac  60
        Network *192.168.10.1     2.2.2.2          0x80000023  1682  0x22 0xcfb7  32
        OpaqArea*1.0.0.1          2.2.2.2          0x8000002a   682  0x22 0xe114  28
        OpaqArea 1.0.0.1          3.3.3.3          0x80000027  1685  0x22 0xeb05  28
            OSPF AS SCOPE link state database
         Type       ID               Adv Rtr           Seq      Age  Opt  Cksum  Len
        Extern  *128.52.53.122    2.2.2.2          0x80000001   895  0x22 0xcd76  36


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

    Posted 12-02-2023 19:45

    Hi,

    Regarding why 11.1.1.0/24 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 1.1.1.1/32 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.



    ------------------------------
    FARID AKHUNDOV
    ------------------------------