© 2011 Fujitsu Technology Solutions
48
13.2 Configuring priority control rewrite
This section describes how to configure priority control rewrite which rewrites priority control
information of packets specified with combination of MAC address, packet format, Ethernet
type, VLAN ID and CoS value.
13.2.1 IP Precedence value rewrite
This section describes how to configure IP precedence value rewrite which rewrites IP
precedence value of packets which has the specified CoS value in the specified port in VLAN.
Beginning in privileged EXEC mode, follow these steps to configure IP precedence value
rewrite on specific interface:
Command Purpose
Step 1 configure Enter global configuration mode
Step 2 diffserv Enable DiffServ Admin mode.
Step 3 class-map match-all
class-map-name
Create a DiffServ class with a class-map
name.
Step 4 match cos <0-7> Configure a match condition based on a
CoS value..
Step 5 exit Return to global configuration mode.
Step 6 policy-map policy-name in Create a DiffServ policy with a policy-map
name.
Step 7 class class-map-name Attach the DiffServ class to this policy.
Step 8 mark ip-precedence <0-7> Configure marking action on the specific IP
precedence value.
Step 9 exit Return to policy-map configuration mode.
Step 10 exit Return to global configuration mode.
Step 11 interface interface-id Specify the interface, and enter interface
configuration mode. The interface can be a
physical Layer 2 interface or a port channel
(logical interface).
Step 12 service-policy in policy-map-name Specify the policy which will be applied to
this interface.
Step 13 exit Return to global configuration mode.
Step 14 exit Return to privileged EXEC mode.
Step 15 show class-map Verify the configuration.
Step 16 show policy-map Verify the configuration.
Step 17 show policy-map interface
interface-id in
Verify the configuration.
To configure an IP precedence rewrite to interface, use the DiffServ configuration
command. To display the policy configuration, use show policy-map privileged EXEC
command. To display the class configuration, use show class-map privileged EXEC
command.