Configuring service policy – ATL Telecom R1-SW Ethernet Switch User Manual

Page 198

Advertising
background image

R1-SW24L2B User’s Manual

9-30

Configuring Service Policy

The service policy is a process of mapping the policy maps and physical ports. After
configuring policy maps and QoS actions for the policy-map classes, attach the policy maps to
the physical input/output ports to apply the QoS action.

By default, the Corecess R1-SW24L2B can apply the QoS policy to both inbound and outbound
traffic on all interfaces. You can attach a single policy map to one or more ports to specify the
service policy for those ports. The class policies comprising the policy map are then applied to
packets that satisfy the class map match criteria for the class.

To apply a policy map to the ports, enter the following command in the Global configuration
mode:

Table 9-9 Applying QoS service policy

Command

Task

qos

1. Enter the QoS configuration mode.

service-policy

<service-name>

policy-map

<policy-map-name>

[input-port <port-type>

<slot>/<port>]

[output-port <port-type>

<slot>/<port>]

2. Attach a policy map to an input port or an output port, to be used

as the service policy for that port.

y

<service-name>: Name of the service map.

y

<policy-map-name>: Name of the policy map to be applied.

y

input-port: Attach the policy map to input traffic.

y

output-port: Attach the policy map to output traffic.

y

<port-type>: Type of the port (gigabitethernet, fastethernet).

y

<slot>/<port>: Slot number(1~8) and port number (1~4) of

the port.

end

3. Return to the Privileged mode.

show service-policy

[<service-name>]

4. Verify the service policy configuration.

y

<service-name>: Name of the service map.

write memory

5. Save the configuration changes.


This example applies the policy map named ‘

policy1

’ to the Gigabit Ethernet port 1/2 and

verifies the configuration:

(config)# qos

(config-qos)# service-policy service1 policy-map policy1 input-port gigabitethernet

1/2 output-port gigabitethernet 1/2

(config-qos)# end

# show service-policy

ServicePolicy

Advertising