Configuring service policy – ATL Telecom R1-SW Ethernet Switch User Manual
Page 198
![background image](https://www.manualsdir.com/files/812238/content/doc198.png)
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
policy-map
[input-port
[output-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
y
y
input-port: Attach the policy map to input traffic.
y
output-port: Attach the policy map to output traffic.
y
y
the port.
end
3. Return to the Privileged mode.
show service-policy
[
4. Verify the service policy configuration.
y
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