DiffServ Service Commands

Use these commands to assign a DiffServ traffic conditioning policy to an interface in the inbound direction.

Use the DiffServ service commands to assign a DiffServ traffic conditioning policy, which you specified by using the policy commands, to an interface in the incoming direction.

The service commands attach a defined policy to a directional interface. You can assign only one policy at any one time to an interface in the inbound direction. DiffServ is not used in the outbound direction.

This set of commands consists of service addition or removal.

The CLI command root is service-policy.

service-policy

M4250

M4350

This command attaches a policy to an interface in the inbound direction as indicated by the in parameter, or the outbound direction as indicated by the out parameter, respectively. The policyname parameter must be the name of an existing DiffServ policy. This command causes a service to create a reference to the policy.

Note: This command effectively enables DiffServ on an interface in the inbound direction. There is no separate interface administrative mode command for DiffServ.
Note: This command fails if any attributes within the policy definition exceed the capabilities of the interface. Once a policy is successfully attached to an interface, any attempt to change the policy definition, that would result in a violation of the interface capabilities, causes the policy change attempt to fail.
Format service-policy {in | out} policymapname
Modes

Global Config

Interface Config

Note: Each interface can have one policy attached.

no service-policy

This command detaches a policy from an interface in the inbound direction as indicated by the in parameter, or the outbound direction as indicated by the out parameter, respectively. The policyname parameter is the name of an existing DiffServ policy.

Note: This command causes a service to remove its reference to the policy. This command effectively disables DiffServ on an interface in the inbound direction or an interface in the outbound direction. There is no separate interface administrative 'mode' command for DiffServ.
Format no service-policy {in | out} policymapname
Modes

Global Config

Interface Config