Navigation
Table of Contents
Guide That Contains This Content
[+] Expand All
[-] Collapse All
Related Documentation
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:
- 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
- (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
- (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.
- (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...]
- (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...]
- (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
- (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";