SRX

last person joined: 4 days ago 

Ask questions and share experiences about the SRX Series, vSRX, and cSRX.
  • 1.  Importing Routes to INET.0 - SRX 3600

    Posted 11-04-2010 18:05

    Hi All,

     

       I have a question about importing routes from other Virtual-routers into the main Master table (inet.0).  currently I have 3 VR's ( Master plus two othe VR).  I want to import some routes from the VR's into the Main table. To do this I created a policy statements that matches some static routes.  the policies look somethign like this (syntax not correct)

     

     

    policy statement VM1

        term one

               from

                    routing-instance VM1

                    protocol static

               then

                    accept

         term last

                then reject

     

    policy statement VM2

        term one

               from

                    routing-instance VM2

                    protocol static

               then

                    accept

         term last

                then reject

     

     

    Then I got into the routing options of the main table and import them in.

     

     

    [routing-options]

        instance-import (VM1 || VM2)

     

    As you can see here I have to use an or (||) operation in order to get routes from both tables imported.  I will eventually have about 100 Virtual routers in this SRX.  Does anyone know a way i can do the imports without having to have a instance-import command that will have 99 OR statements inside?

     

    thanks

     

     

     

     

     

     



  • 2.  RE: Importing Routes to INET.0 - SRX 3600

    Posted 11-10-2010 08:19
    you can use rib-groups for route import and export. http://kb.juniper.net/InfoCenter/index?page=content&id=KB16133 I don't know if you can use wildcard in the rib groups, or ranges. maybe you can ask juniper for the range option in the rib group, or ask for this feature to be added to a future release.


  • 3.  RE: Importing Routes to INET.0 - SRX 3600

    Posted 11-10-2010 08:22

    Thanks for the suggestion PKC but I wanted to stay away from this aswell because this will still require me to have the inport rib command in my main table which will get WAY to big.

     

    ex) when i have 100 VR's

     

    routing-options      {
             rib-groups  {
                   test {
                     import-rib [ inet.0 test.inet.0 a.inet.0 z.inet.0 b.inet.0 c.inet.0 d.inet.0 e.inet.0 f.inet.0 g.inet.0 h.inet.0 .....ETC  ];
              }
    }



  • 4.  RE: Importing Routes to INET.0 - SRX 3600

    Posted 11-10-2010 18:02

    Maybe this will work for you:

    routing-instances {

        vr_98 {
            routing-options {
                auto-export;
            }
        }

        vr_99 {
            routing-options {
                auto-export;
            }
        }
    and so on.



  • 5.  RE: Importing Routes to INET.0 - SRX 3600
    Best Answer

    Posted 03-10-2011 14:13

    Solution was that my policy statements had a term reject all at the end.  The policy-import would then hit only the first one in the list the || operation would never even get used.



  • 6.  RE: Importing Routes to INET.0 - SRX 3600

    Posted 01-15-2013 15:52

    could you not put it all in one policy and use the then next-term statement to jump from term to term until a final reject?