Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Creating a Classify-Traffic Condition (SRC CLI)

    You create classify-traffic conditions within policy rules. Use the following configuration statements to create a classify-traffic condition:

    policies group name list name rule name traffic-condition name {match-direction match-direction ; term-precedence term-precedence ; application [application...] ; application-group [application-group...] ; description description ;}

    To add a classify-traffic condition:

    1. From configuration mode, create a classify-traffic condition inside a policy rule that has already been created and configured. For example, to create a traffic-condition called ctc within policy rule nat:
      user@host# edit policies group junos list staticnat rule nat traffic-condition ctc
    2. (Optional) Specify the direction of the packet flow on which you want to match packets.
      [edit policies group junos list staticnat rule nat traffic-condition ctc]user@host# set match-direction match-direction
    3. (Optional) For Junos OS PTSP policies, specify the precedence for this term in a given policy in relation to other terms. Lower precedence terms are searched first. Precedence only matters within the same class of policies (dynamic or static). Terms with the same precedence are evaluated in any, non-deterministic order.
      [edit policies group junos list staticnat rule nat traffic-condition ctc] user@host# set term-precedence term-precedence

      Where term-precedence is a value between 1 and 254.

    4. (Optional) For Junos OS PTSP policies, specify the list of applications to match this policy.
      [edit policies group junos list staticnat rule nat traffic-condition ctc] user@host# set application [application...]
    5. (Optional) For Junos OS PTSP policies, specify the list of applications to match this policy.
      [edit policies group junos list staticnat rule nat traffic-condition ctc]] user@host# set application-group [application-group...]
    6. (Optional) Provide a description of the classify-traffic condition.
      [edit policies group junos list staticnat rule nat traffic-condition ctc]user@host# set description description
    7. (Optional) Verify your classify-traffic condition configuration.
      [edit policies group junos list staticnat rule nat traffic-condition ctc]
      user@host# show 
      match-direction output;
      description "Static NAT destination classifier";

    Published: 2014-06-06