[Contents] [Prev] [Next] [Index] [Report an Error]

# 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 ;
  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) For JUNOS ASP policy rules, 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) Provide a description of the classify-traffic condition.
   `
   [edit policies group junos list staticnat rule nat traffic-condition ctc]
   user@host# set description description
   `
4. (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";

#### Related Topics

- Before You Configure Classify-Traffic Conditions
- Configuring Classify-Traffic Conditions
- Enabling Expansion of JUNOSe Classify-Traffic Conditions (SRC CLI)
- Creating a Classify-Traffic Condition (C-Web Interface)
- Specifying Port Access for Traffic Classification (SRC CLI)

[Contents] [Prev] [Next] [Index] [Report an Error]