Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Example: Inserting a New Identifier in a Junos Configuration

Insert policy terms in a routing policy configuration. Note that if you do not use the insert command, but rather just configure another term, the added term is placed at the end of the existing list of terms. Also note that you must create the term, as shown in this example, before you can place it with the insert command.

[edit]user@host# show
policy-options {policy-statement statics {term term1 {from {route-filter 192.168.0.0/16 orlonger;route-filter 224.0.0.0/3 orlonger;}then reject;}term term2 {from protocol direct;then reject;}term term3 {from protocol static;then reject;}term term4 {then accept;}}}
[edit]user@host# rename policy-options policy-statement statics term term4 to term term6[edit]user@host# set policy-options policy-statement statics term term4 from protocol local[edit]user@host# set policy-options policy-statement statics term term4 then reject[edit]user@host# set policy-options policy-statement statics term term5 from protocol aggregate[edit]user@host# set policy-options policy-statement statics term term5 then reject[edit]user@host# insert policy-options policy-statement statics term term4 after term term3[edit]user@host# insert policy-options policy-statement statics term term5 after term term4[edit]user@host# show policy-options policy-statement statics
term term1 { from { route-filter 192.168.0.0/16 orlonger; route-filter 224.0.0.0/3 orlonger;} then reject;}
term term2 { from protocol direct; then reject;}
term term3 { from protocol static; then accept;}
term term4 { from protocol local; then reject;}
term term5 { from protocol aggregate; then reject;}
term term6 { then accept;}

Insert a transit router in a dynamic MPLS path:

[edit protocols mpls path ny-sf]user@host# show1.1.1.1;2.2.2.2;3.3.3.3 loose;4.4.4.4 strict;6.6.6.6;[edit protocols mpls path ny-sf]user@host# insert 5.5.5.5 before 6.6.6.6[edit protocols mpls path ny-sf]user@host# set 5.5.5.5 strict[edit protocols mpls path ny-sf]user@host# show1.1.1.1;2.2.2.2;3.3.3.3 loose;4.4.4.4 strict;5.5.5.5 strict;6.6.6.6;

Published: 2013-01-15