Junos OS

Expand all | Collapse all

group configuration under VRF

Jump to Best Answer
  • 1.  group configuration under VRF

    Posted 12-30-2019 07:19

    Hi,

    I have tried to use a group config within the vrf rather than list lots of interfaces (direct) i.e. 

     

    set groups VRF_TEST_1XXX_INTERFACES routing-instances TEST interface "<ge-0/0/1.[1000-1100]>"

    set routing-instances TEST apply-groups VRF_TEST_1XXX_INTERFACES

     

    But after implementation the interfaces do not appear in the TEST VRF route table, they remain in the inet.0 table, the interfaces are 'up up' and all config looks good, has anyone used this method succesfuly ?

     

    Thank you in advance of any replies

     



  • 2.  RE: group configuration under VRF

    Posted 12-30-2019 07:57

    just an update, that using the 

    #show routing-instances TEST | display inheritance

     

    does not show the group being "inherited from group 'VRF_TEST_1XXX_INTERFACES'



  • 3.  RE: group configuration under VRF

     
    Posted 12-30-2019 11:55

    Hi,

     

    You need to do one more thing. Add a backslash "\" before your dot "." 

    Otherwise, junos or any linux system will take it as an operator, instead of a normal character 

     

    Try something like this

    set groups test routing-instances test interface "<ge-1/0/0\.[1-4]>"



  • 4.  RE: group configuration under VRF

     
    Posted 12-30-2019 12:47

    Hi Colin,

    I don't think this configuration would work.

    Thanks

    Vishal



  • 5.  RE: group configuration under VRF

    Posted 12-31-2019 01:15

    Hi,

     

    Thank you both for taking time to respond, but just tried using the \ and did not work 😞

     

    many thanks 

    Colin



  • 6.  RE: group configuration under VRF
    Best Answer

    Posted 12-31-2019 01:32

    Hello,

     


    @colin5000 wrote:

    Hi,

    I have tried to use a group config within the vrf rather than list lots of interfaces (direct) i.e. 

     

    set groups VRF_TEST_1XXX_INTERFACES routing-instances TEST interface "<ge-0/0/1.[1000-1100]>"

    set routing-instances TEST apply-groups VRF_TEST_1XXX_INTERFACES

     

    But after implementation the interfaces do not appear in the TEST VRF route table, they remain in the inet.0 table,


     

    Mass "insert" of interfaces under VRF hierarchy using regex/wildcards  is not supported.

    You need to either insert every subinterface one by one, or use interface-sets.

    HTH

    Thx

    Alex

     



  • 7.  RE: group configuration under VRF

    Posted 12-31-2019 06:38

    Hi Alex,

     

    Thanks for the response, I have searched for interface-set use within the VRF but nothing found to apply the interface-set name to the VRF, so looks like as you say I will have to list interfaces individuly.

     

    [edit interfaces]
    interface-set unitl-set-ge-0 {
    interface ge-0/0/0 {
    unit 0;
    unit 1;
    ...
    }
    }