Service commands

Use this M4500 CLI command to attach a DiffServ policy map to an interface or all interfaces in the inbound direction.

The 'service' command set is used in DiffServ to define:

Traffic Classification Assign a DiffServ traffic conditioning policy (as specified by the policy commands) to an interface in the incoming direction.

Service Provisioning Assign a DiffServ service provisioning policy (as specified by the policy commands) to an interface in the outgoing direction.

The service commands attach a defined policy to a directional interface. Only one policy may be assigned at any one time to an interface in a particular direction. The policy type (in, out) must match the interface direction to which it is attached.

This set of commands consists of service addition/removal.

The CLI command root is service-policy.

service-policy

This command attaches a policy to an interface in a particular direction.

Format service-policy {in | out} <policy-map-name>
Parameter Description
<policy-map-name> The name of an existing DiffServ policy, whose type must match the interface direction. Note that this command causes a service to create a reference to the policy.
Note: The command can be used in the Interface Config mode to attach a policy to a specific interface. Alternatively, the command can be used in the Global Config mode to attach this policy to all system interfaces. The direction value is either in or out.Default None
Mode Global Config, Interface Config
Restrictions Only a single policy may be attached to a particular interface in a particular direction at any one

time.

no service-policy

This command detaches a policy from an interface in a particular direction.

Format no service-policy {in | out} <policy-map-name>
Parameter Description
<policy-map-name> The name of an existing DiffServ policy. Note that this command causes a service to remove its reference to the policy.

The command can be used in the Interface Config mode to detach a policy from a specific interface. Alternatively, the command can be used in the Global Config mode to detach this policy from all system interfaces to which it is currently attached. The direction value is either in or out.

Note: This command effectively disables DiffServ on an interface (in a particular direction).There is no separate interface administrative 'mode' command for DiffServ.Default None
Mode Global Config, Interface Config