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

    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)

    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:

    • Set the role of the policy list to junos-ptsp
    • Set the policy list rule type to ptsp-service-rule
    • Set the policy list applicability option to both
    • Create a policer instance

    Use the following configuration statements to configure a policer-ref action:

    policies group name list name rule name policer-ref {policer-ref policer-name ; description description ; }

    To configure the policer-ref action:

    1. From configuration mode, access the statements for the policer-ref action.
      user@host# edit policies group name list name rule name policer-ref
    2. 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
    3. 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:

    • Set the role of the policy list to junos-ptsp
    • Set the policy list rule type to ptsp-service-rule
    • Set the policy list applicability option to both
    • Create a policer instance.

    Use the following configuration statements to configure a forwarding instance action:

    policies group name list name rule name forwarding-instance {forwarding-instance;forwarding-unit forwarding-unit ; description description ; }

    To configure a forwarding instance action:

    1. From configuration mode, enter the forwarding instance configuration. For example:
      user@host# edit policies group group1 list list1 rule rule1 forwarding-instance
    2. (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.

    3. (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.

    4. (Optional) Enter a description for the forwarding instance action.
      [edit policies group group1 list list1 rule rule1 forwarding-instance]user@host# set description description
    5. (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:

    policies group name list name rule name forwarding-class {forwarding-class; description description; }

    To configure a forwarding class action:

    1. From configuration mode, enter the forwarding class action configuration.
      user@host# edit policies group bod list input rule pr forwarding-class
    2. (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
    3. (Optional) Enter a description for the forwarding class action.
      [edit policies group bod list input rule pr forwarding-class]user@host# set description description
    4. (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:

    policies group name list name rule name filter {description description ; }

    To configure a filter action:

    1. From configuration mode, enter the filter action configuration.
      user@host# edit policies group junos_filter list in rule pr filter
    2. (Optional) Enter a description for the filter action.
      [edit policies group junos_filter list in rule pr filter]user@host# set description description
    3. (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";

    Modified: 2011-09-26