Routing

 View Only
last person joined: 2 days 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.

Question about AS loop for instance-import

  • 1.  Question about AS loop for instance-import

    Posted 01-03-2022 05:43
    I have two virtual routers as follows:
    set routing-instances CE2-3 instance-type virtual-router
    set routing-instances CE2-3 interface ge-0/0/6.320
    set routing-instances CE2-3 interface lo0.12
    set routing-instances CE2-3 routing-options instance-import CE2-3-rib-import
    set routing-instances CE2-3 protocols bgp group ToR4 type external
    set routing-instances CE2-3 protocols bgp group ToR4 local-as 64600
    set routing-instances CE2-3 protocols bgp group ToR4 neighbor 192.168.0.77 peer-as 54591
    
    set policy-options policy-statement CE2-3-bgp-export term 1 from protocol static
    set policy-options policy-statement CE2-3-bgp-export term 1 then accept
    
    set routing-instances CE2-4 instance-type virtual-router
    set routing-instances CE2-4 interface ge-0/0/7.321
    set routing-instances CE2-4 interface lo0.13
    set routing-instances CE2-4 routing-options autonomous-system 64600
    set routing-instances CE2-4 routing-options instance-import CE2-4-rib-import
    set routing-instances CE2-4 protocols bgp group ToR5 type external
    set routing-instances CE2-4 protocols bgp group ToR5 neighbor 192.168.0.81 peer-as 54591
    
    set policy-options policy-statement CE2-4-bgp-export term 1 from protocol static
    set policy-options policy-statement CE2-4-bgp-export term 1 then accept
    
    
    
    
    ​

    I happened to configure AS in two different ways, I thought they are the same.  But all the routes from CE2-3 are imported to CE2-4,  the routes from CE2-4 are hidden in CE2-3 as follows:

    root@CE2-3-4# run show route 192.168.0.80
    
    CE2-4.inet.0: 14 destinations, 14 routes (14 active, 0 holddown, 0 hidden)
    + = Active Route, - = Last Active, * = Both
    
    192.168.0.80/30    *[Direct/0] 15:17:43
                        > via ge-0/0/7.321
    
    [edit]
    root@CE2-3-4# run show route hidden 192.168.0.80 extensive
    
    CE2-3.inet.0: 14 destinations, 14 routes (7 active, 0 holddown, 7 hidden)
    192.168.0.80/30 (1 entry, 0 announced)
             Direct
                    Next hop type: Interface
                    Address: 0x940d564
                    Next-hop reference count: 2
                    Next hop: via ge-0/0/7.321, selected
                    State: <Secondary Hidden Int>
                    Local AS: 64600
                    Age: 8:13:08
                    Validation State: unverified
                    Task: IF
                    AS path: 64600 I (Looped: 64600)
                    Primary Routing Table CE2-4.inet.0
    
    [edit]
    

    Anyone can shed some light on this ?

    thanks !!