Routing

last person joined: 4 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.
  • 1.  inter vrf routing?

    Posted 02-14-2013 07:53

    I need some help with understanding how inter-vrf routing works. i need to be able to ping hosts in X_VRF from a source address in the Y_VRF. My desired source host (Solarwinds) is in a seperate VRF than the end host it is trying to ping. How can this be easily accomplished. Hopefully the below can help clarify.

     

    set routing-instances X_VRF instance-type vrf
    set routing-instances X_VRF interface ae0.0
    set routing-instances X_VRF interface ae1.0
    set routing-instances X_VRF interface lo0.3
    set routing-instances X_VRF route-distinguisher 543:805
    set routing-instances X_VRF vrf-import X_VRF-IMPORT
    set routing-instances X_VRF vrf-target target:543:805
    set routing-instances X_VRF protocols ospf export X_VRF-OSPF-EXPORT
    set routing-instances X_VRF protocols ospf reference-bandwidth 40g
    set routing-instances X_VRF protocols ospf area 0.0.0.0 interface lo0.3 passive
    set routing-instances X_VRF protocols ospf area 0.0.0.0 interface ae0.0 metric 2
    set routing-instances X_VRF protocols ospf area 0.0.0.0 interface ae0.0 authentication md5 1 key

     

    set routing-instances Y_VRF instance-type vrf
    set routing-instances Y_VRF interface ge-1/0/0.101
    set routing-instances Y_VRF interface vt-3/0/0.101
    set routing-instances Y_VRF route-distinguisher 543:101
    set routing-instances Y_VRF vrf-target target:543:101

     

    set policy-options policy-statement JTEN_VRF-IMPORT term 0 from community JFCOM-JTEN
    set policy-options policy-statement JTEN_VRF-IMPORT term 0 from community JFCOM-eventb
    set policy-options policy-statement JTEN_VRF-IMPORT term 0 from community JFCOM-eventc
    set policy-options policy-statement JTEN_VRF-IMPORT term 0 from community JFCOM-VOIP_VTC
    set policy-options policy-statement JTEN_VRF-IMPORT term 0 then accept
    set policy-options policy-statement JTEN_VRF-IMPORT term 1 then reject


    set policy-options policy-statement JTEN_VRF-OSPF-EXPORT term 0 from protocol bgp
    set policy-options policy-statement JTEN_VRF-OSPF-EXPORT term 0 from protocol direct
    set policy-options policy-statement JTEN_VRF-OSPF-EXPORT term 0 then external type 1
    set policy-options policy-statement JTEN_VRF-OSPF-EXPORT term 0 then accept
    set policy-options policy-statement JTEN_VRF-OSPF-EXPORT term 1 then reject

     

    set routing-options static route 0.0.0.0/0 next-hop xx.xx.240.254
    set routing-options router-id xx.xx.252.1
    set routing-options autonomous-system 543


    adm@J-re0> ping xx.xx.247.10                       
    PING xx.xx.247.10 (xx.xx.247.10): 56 data bytes
    ping: sendto: Operation not permitted
    ping: sendto: Operation not permitted
    ping: sendto: Operation not permitted
    ^C
    --- xx.xx.247.10 ping statistics ---
    3 packets transmitted, 0 packets received, 100% packet loss

     

    .adm@J-re0> ping xx.xx.247.10 routing-instance Y_VRF   
    PING xx.xx.247.10 (xx.xx.247.10): 56 data bytes
    64 bytes from xx.xx.247.10: icmp_seq=0 ttl=61 time=5.132 ms
    64 bytes from xx.xx.247.10: icmp_seq=1 ttl=61 time=5.188 ms
    64 bytes from xx.xx.247.10: icmp_seq=2 ttl=61 time=5.244 ms

     

     

    adm@J-re0>show route xx.xx.247.10

    Y_VRF.inet.0: 6 destinations, 6 routes (6 active, 0 holddown, 0 hidden)
    + = Active Route, - = Last Active, * = Both

    xx.xx.247.8/30    *[BGP/170] 6w0d 17:19:55, localpref 100, from xx.xx.252.21
                          AS path: I
                        > to xx.xx.246.3 via ge-1/0/0.100, label-switched-path xx.xx.252.21:dt-rsvp-TEST_RSVP_TE_TUNNEL

    X_VRF.inet.0: 75 destinations, 75 routes (75 active, 0 holddown, 0 hidden)
    + = Active Route, - = Last Active, * = Both

    0.0.0.0/0          *[OSPF/150] 8w4d 23:13:46, metric 3, tag 767
                        > to xx.xx.250.130 via ae0.0


     

     

     

     



  • 2.  RE: inter vrf routing?

    Posted 02-14-2013 07:54

    To clarify, Solarwinds is in the Y_VRF. My seat is also in the Y_VRF so I can use that as source for ping as well. Thanks!



  • 3.  RE: inter vrf routing?

    Posted 02-14-2013 14:48

     

    If you want communication from one VRF to other VRF on same Router, why dont you use Virtual Router and have an lt between them.

     

    VRF is used in an MPLS/VPN (  L3VPN )and virtual router is to have separate routing table.

     

    I am assuming you want to keep X and Y users in different Routing Tables.