Switching

last person joined: 18 hours ago 

Ask questions and share experiences about EX and QFX portfolios and all switching solutions across your data center, campus, and branch locations.
  • 1.  Add entry to Prefix-List

    Posted 11-21-2012 22:22

    Hi guys,

     

    Please i have the below prefix-list. I'd  like to add an entry to it. e..g 37.38.39.40.

     

    Please can somebody help we with the set command as i fear i dont take out the whole prefix-list while playing around.

     

     

    policy-options {

             prefix-list My_Job {
                           25.26.27.28/32;
                           26.27.28.29/32;
                           30.31.32.33/32;
                           34.35.36.37/32;
    }

     

     

    What i think is this but i need someone to help ratify b4 going ahead.

     

    edit policy-options prefix-list My_Job

    insert 37.38.39.40/32

     

    Thank you

     

     



  • 2.  RE: Add entry to Prefix-List

    Posted 11-21-2012 22:47

     

     

       Since you dont need to insert the new entry between the others, you only need to do the following :

     

       set policy-options prefix-list My_Job 37.38.39.40/32

     

       The insert will not work with a prefix list.

     

       In other cases, when you need to insert but sort your entry, first you have to add this as previously mentioned, then you could use the following :

     

        edit policy-options policy-statement My_Job

        set term NEW

        insert term NEW before term OLD

      

         Usually you will use the insert in firewall filters, or policy, when order matters. In the case of a prefix list this dont matter.

     

     

     



  • 3.  RE: Add entry to Prefix-List

    Posted 11-22-2012 19:40

    KUDOS!!!



  • 4.  RE: Add entry to Prefix-List
    Best Answer

    Posted 11-22-2012 02:20

    Hi,

     

    Easy way to get set command

     

    root@R1# show policy-options prefix-list My_Job | display set

     

    take copy from the output in txt file, change whatever you want (add /delete/modify)

     

    # delete policy-options prefix-list My_Job

     

    then paste the modified configuration again from your txt file

     

    Mohamed Elhariry

     

    JNCIE-M/T # 1059, CCNP & CCIP

     

    ----------------------------------------------------------------------------------------------------------------------------------------

    If this post was helpful, please mark this post as an "Accepted Solution". Kudos are always appreciated!