Operational commands

copy

Syntax

copy network src-pol dst-pol [overwrite]

Context

config>qos

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command copies existing QoS policy entries for a QoS policy ID to another QoS policy ID.

The copy command is used to create new policies using existing policies and also allows bulk modifications to an existing policy with the use of the overwrite keyword.

Parameters

network src-pol dst-pol

Specifies that the source and destination policies are network policy IDs. Specify the source policy that the copy command will copy and specify the destination policy to which the command will duplicate the policy to a new or different policy ID.

Values

1 to 65535

overwrite

Keyword to replace the existing destination policy. Everything in the existing destination policy is overwritten with the contents of the source policy. If overwrite is not specified, an error occurs if the destination policy ID exists.

remark

Syntax

remark policy-id

no remark

Context

config>qos>network>egress

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command specifies the remarking policy ID to use for marking packets on access-uplink port egress, network port egress, or hybrid port egress. The usage is as follows for different platforms.

  • On the 7210 SAS-K 2F1C2T, this policy is used to configure marking for packets sent out of access-uplink ports.

  • On the 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C, this policy is used to configure marking for packets sent out of access-uplink ports, network ports, or hybrid ports, depending on the port that the policy is associated with.

For access-uplink ports, the remarking policy ID must be associated with the network QoS policy that is associated with the access-uplink port. Remarking must be enabled in the network QoS policy to enable marking of packets sent out of an access-uplink port. Only a remarking policy of type dot1p, dscp, or dot1p-dscp is allowed to be used when the remark policy is associated with access-uplink port egress. See Remark policies for more information about remark policy types and its usage.

For network ports and hybrid ports, the remarking policy ID must be associated with the network QoS policy that is associated with the network port and hybrid port. Remarking must be enabled in the network QoS policy to enable marking of packets sent out of network IP interfaces that are configured on the network port or hybrid port. On network ports or hybrid ports, the dot1p bits are marked by default, irrespective of whether remarking is enabled or disabled. Only a remarking policy of type lsp-exp, dot1p, dscp, dot1p-dscp, dot1p-lsp-exp, or dot1p-dscp-lsp-exp is allowed when the remark policy is associated with network port egress. See Remark policies for more information about remark policy types and their usage.

The no form of this command removes the explicit association of the remark policy and associates the default remark policy. If remarking is enabled and no remark policy is executed, then the default remark policy is used to mark sent packets. If no remark policy is executed and remarking is disabled, then packets are not remarked at all.

Parameters

policy-id

Specifies the remark policy.

Values

1 to 65535

remarking

Syntax

[no] remarking

Context

config>qos>network>egress

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command configured marking for packets. The marking functionality is as follows.

  • On the 7210 SAS-K 2F1C2T, this command enables marking for packets sent out of access-uplink ports.

  • On the 7210 SAS-K 2F6C4T and 7210 SAS-K 3SFP+ 8C, this command enables marking for packets sent out of access-uplink ports, network ports, or hybrid ports, depending on the port that the policy is associated with.

When remarking is enabled, the remark policy configured in the QoS policy context is used to determine the FC to QoS bit mapping. For example, when remarking is enabled in the network QoS policy and remark policy of type dot1p is configured in the network QoS policy, then the FC to dot1p mapping is used to mark packets sent out of the port.

See Remark policies for more information about how to configure remark policies.

The no form of this command disables remarking.

Default

no remarking

scope

Syntax

scope {exclusive | template}

no scope

Context

config>qos>network

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command configures the network policy scope as exclusive or template.

The no form of this command reverts the scope of the policy to the default.

Default

template

Parameters

exclusive

Specifies that the policy can only be applied to one interface. If a policy with an exclusive scope is assigned to a second interface an error message is generated. If the policy is removed from the exclusive interface, it becomes available for assignment to another exclusive interface. The system default policies cannot be put into the exclusive scope. An error is generated if scope exclusive is executed in any policies with a policy ID equal to 1.

template

Specifies that the policy can be applied to multiple interfaces on the router. An error is generated if you try to modify the template scope parameter to exclusive scope on default policies.