Configuring PTSP Actions
Actions define the action taken on packets that match conditions in a policy rule. You create actions within policy rules.
Topics that discuss how to configure PTSP actions include:
- Configuring Policer-Ref Actions (SRC CLI)
- Configuring Forwarding Instance Actions (SRC CLI)
- Configuring Forwarding Class Actions (SRC CLI)
- Configuring Filter Actions (SRC CLI)
Configuring Policer-Ref Actions (SRC CLI)
Use this action to specify an action that references a PTSP policer instance. You can configure policer ref actions for PTSP policy rules. The policer instance can be shared by different service rules inside the same policy list. Multiple policy rules can reference the same policer instance, so that the traffic matched by those rules is policed by the same policer instance. If the policer instance is shared, all packets matching any of the service rules are policed together.
![]() | Note: For PTSP you must:
|
Use the following configuration statements to configure a policer-ref action:
To configure the policer-ref action:
- From configuration mode, access the statements for the
policer-ref action. user@host# edit policies group name list name rule name policer-ref
- Specify the name of the policer instance you want to reference. [edit policies group name list name rule name policer-ref] user@host# set policer–name
- Enter a description for the action. [edit policies group name list name rule name policer-ref] user@host# set description description
Configuring Forwarding Instance Actions (SRC CLI)
You can configure forwarding instance actions for routers running the PTSP feature. This action specifies a forwarding instance to assign to flows that match this policy.
![]() | Note: For PTSP you must:
|
Use the following configuration statements to configure a forwarding instance action:
To configure a forwarding instance action:
- From configuration mode, enter the forwarding instance
configuration. For example: user@host# edit policies group group1 list list1 rule rule1 forwarding-instance
- (Optional) Specify a forwarding instance to assign to
flows matching the policy. user@host# edit policies group group1 list list1 rule rule1 forwarding-instance “_same_”
Allowed values are __same__, or one of the forwarding instances configured on the router. The value __same__ forwards the flow in whatever forwarding instance it came in or is set from static configuration.
- (Optional) Specify a forwarding unit to assign to flows
matching this policy. Forwarding unit specifies the multiservice interface
unit number for forward flows to in order to reach the forwarding
instance specified by the attribute forwarding-instance. Note that
there is only a very loose coupling between this unit number and the
forwarding instance. The binding between them only happens with the
aid of additional router configuration.[edit policies group group1 list list1 rule rule1 forwarding-instance] user@host# set forwarding-unit forwarding-unit
Enter a value in the range 0–16384.
- (Optional) Enter a description for the forwarding instance
action. [edit policies group group1 list list1 rule rule1 forwarding-instance]user@host# set description description
- (Optional) Verify the forwarding instance action configuration.
[edit policies group bod list input rule pr forwarding-instance] user@host# show "'fi1'" forwarding-instance 1 description fi-sample
Configuring Forwarding Class Actions (SRC CLI)
You can configure forwarding class actions for Junos OS filter policy rules. The forwarding class action causes the router to assign a forwarding class to packets that match the associated classify-traffic condition.
The type of action that you can create depends on the type of policy rule. See Policy Information Model.
Use the following configuration statements to configure a forwarding class action:
To configure a forwarding class action:
- From configuration mode, enter the forwarding class action
configuration.user@host# edit policies group bod list input rule pr forwarding-class
- (Optional) Configure the name of the forwarding class
assigned to packets. [edit policies group bod list input rule pr forwarding-class]user@host# set forwarding-class
- (Optional) Enter a description for the forwarding class
action. [edit policies group bod list input rule pr forwarding-class]user@host# set description description
- (Optional) Verify the forwarding class action configuration.
[edit policies group bod list input rule pr forwarding-class] user@host# show forwarding-class fc_expedited; description "Expedited forwarding class";
Configuring Filter Actions (SRC CLI)
Use this action to discard packets. You can configure filter actions for Junos OS filters and JunosE policy rules. The type of action that you can create depends on the type of policy rule. See Policy Information Model.
Use the following configuration statement to configure a filter action:
To configure a filter action:
- From configuration mode, enter the filter action configuration.user@host# edit policies group junos_filter list in rule pr filter
- (Optional) Enter a description for the filter action. [edit policies group junos_filter list in rule pr filter]user@host# set description description
- (Optional) Verify the filter action configuration.
[edit policies group junos_filter list in rule pr filter] user@host# show description "Filter action for Junos OS policies";