Quantcast
Channel: All SRX Services Gateway posts
Viewing all articles
Browse latest Browse all 17645

Re: destination net unreachable with virtual-instances

$
0
0

Hi,

 

To have the route in RIs imported in inet.0, the rib-group needs to be configured to share the static route.

A policy can be applied to filter which routes to import. Example:

 

[edit routing-instances R1]
root@CE1# show routing-options 
static {
    rib-group TEST;
    route 0.0.0.0/0 next-hop [ 1.1.1.2 1.1.1.3 ];
    route 3.3.3.0/24 next-hop 1.1.1.10;
}
root@CE1# show policy-options policy-statement TEST term test { from { protocol static; route-filter 3.3.3.0/24 exact; } then { metric 100; preference 40; accept; } } then reject;
root@CE1# show routing-options rib-groups { TEST { import-rib [ R1.inet.0 R2.inet.0 ]; import-policy TEST; } }
------
root@CE1# run show route table R2.inet.0 3.3.3.0 detail


R2.inet.0: 3 destinations, 4 routes (3 active, 0 holddown, 0 hidden)
3.3.3.0/24 (1 entry, 1 announced)
*Static Preference: 40
Next hop type: Router, Next hop index: 661
Address: 0x9600d20
Next-hop reference count: 7
Next hop: 1.1.1.10 via ge-0/0/3.0, selected
Session Id: 0x8
State: <Secondary Active Int Ext>
Age: 2:21:37 Metric: 100
Validation State: unverified
Task: RT
Announcement bits (1): 0-KRT
AS path: I
Primary Routing Table R1.inet.0

Cheers,

Ashvin

 

 


Viewing all articles
Browse latest Browse all 17645

Trending Articles