Routing

Expand all | Collapse all

Routing between instances - issues

Jump to Best Answer
  • 1.  Routing between instances - issues

    Posted 05-21-2018 04:03

     Hi,

    I have  EX4550 with JUNOS 12.3R11.2. I configured simple routing between instances. I want route traffic between 192.168.0.0/23 (master/default instance) and 192.168.2.0/24 (RA2 instance). Now I see correct routes in a routing table, but traffic isn’t forwarded directly between instances, but use default route. Do you have ideas why is it use default route instead route from routing table (more specific)? I try similar configuration on GNS3, it works well. 

     

    show route terse

    inet.0: 8 destinations, 9 routes (8 active, 0 holddown, 0 hidden)

    + = Active Route, - = Last Active, * = Both 

    A V Destination        P Prf   Metric 1   Metric 2  Next hop        AS path

    * ? 0.0.0.0/0              S   5                       >192.168.15.2

    * ? 192.168.0.0/23       D   0                       >vlan.100    

      ?                                         D   0                       >vlan.100    

    * ? 192.168.0.1/32       L   0                        Local

    * ? 192.168.0.61/32      L   0                        Local

    * ? 192.168.2.0/24       D   0                       >vlan.200    

     

    RA2.inet.0: 10 destinations, 10 routes (10 active, 0 holddown, 0 hidden)

    + = Active Route, - = Last Active, * = Both

    A V Destination        P Prf   Metric 1   Metric 2  Next hop        AS path

    * ? 0.0.0.0/0          S   5                       >192.168.2.5

    * ? 192.168.0.0/23       D   0                       >vlan.100    

    * ? 192.168.2.0/24       D   0                       >vlan.200    

    * ? 192.168.2.1/32       L   0                        Local

     

    routing-options {

        nonstop-routing;                    

        static {

            route 0.0.0.0/0 next-hop 192.168.15.2;

        }

        instance-import from_RA2;

     

     

    policy-options {

        prefix-list SNMP {

            192.168.2.2/32;

        }

        policy-statement from_RA2 {

            term 1 {

                from {

                    instance RA2;

                    route-filter 192.168.2.0/24 exact;

                }

                then accept;

            }

            term 2 {

                then reject;

            }

        }

        policy-statement from_master {

            term 1 {

                from {

                    instance master;

                    route-filter 192.168.0.0/23 exact;

                }

                then accept;

            }

            term 2 {

                then reject;

            }

        }

    }

     

    routing-instances {

        RA2 {

            instance-type virtual-router;

            interface vlan.200;

            routing-options {

                static {

                    route 0.0.0.0/0 next-hop 192.168.2.5;

                }

                instance-import from_master;

            }

        }

    }



  • 2.  RE: Routing between instances - issues

    Posted 05-21-2018 07:28

    I don't have an answer for you, but I would check the forwarding tables next.

    What does master say for the .2.0/24

    and RA2 for the .0.0/23

     

    show route forwarding-table destination <prefix> table <table>



  • 3.  RE: Routing between instances - issues
    Best Answer

    Posted 05-21-2018 08:57

    Hello,

    On EX4K platform, leaking directly connected routes between instances is not supported

    https://kb.juniper.net/InfoCenter/index?page=content&id=KB23027

    HTH

    Thx

    Alex

     



  • 4.  RE: Routing between instances - issues

    Posted 05-22-2018 02:32

    Thank you for an answer. You are right!