Junos OS

last person joined: 7 days ago 

Ask questions and share experiences about Junos OS.
  • 1.  Add Policy Option - Shortcut

    Posted 02-17-2009 11:41

    hey all, is there a way to load this configuration in without having to use individual set commands?

     

    i'm sure there is a load merge terminal command but want to make sure.

     

    it is under "policy-options"

     

    please provide the exact syntax. thanks a lot!

     

    policy-options {
        policy-statement ISP1-in {
            term set-isp1-in {
                then {
                    local-preference 200;
                    accept;
                }
            }
        }
        policy-statement ISP1-out {
            term allow-isp1-out {
                from community isp1-out-color;
                then accept;
            }
            term reject-others {
                then reject;
            }
        }
    community isp1-out-color members 12345:1001     
    }



  • 2.  RE: Add Policy Option - Shortcut

    Posted 02-17-2009 13:05

     

    Hello SM808,

     

     Once you copy the whole snippet below, you can enter configuration mode and use something like 'load merge terminal'.

     

     Please refer to URL below for further details on how to load a full or partial configuration:

     

     http://www.juniper.net/techpubs/software/nog/nog-baseline/html/cheat-sheet4.html#1020076

     

     Cheers,

     Erdem



  • 3.  RE: Add Policy Option - Shortcut

    Posted 02-17-2009 13:43

    do you have to be under "edit policy-options" mode?

     

    or, just go to config mode, load merge terminal, and the copy-n-paste in the syntax?



  • 4.  RE: Add Policy Option - Shortcut
    Best Answer

    Posted 02-17-2009 14:00

    I usually "park" at the relevant part of the config (eg: "edit policy-options" ) and then issue "loard merge terminal relative".

    The "relative" indicates that the config you are pasting is relative to the stanze [edit policy-options] where you are parked.

    Regards,

    /david 

    Message Edited by davidjdv on 02-17-2009 11:00 PM