© 2011 Fujitsu Technology Solutions
49
In this example, DiffServ is configured on interface 0/1 to rewrites IP precedence value of
packets which has the specified CoS value in the specified port in VLAN:
(BX900-CB1)#configure
(BX900-CB1)(Config)#diffserv
(BX900-CB1)(Config)#class-map match-all class1
(BX900-CB1)(Config-classmap)#match cos 5
(BX900-CB1)(Config-classmap)#exit
(BX900-CB1)(Config)#policy-map policy1 in
(BX900-CB1)(Config-policy-map)#class class1
(BX900-CB1)(Config-policy-classmap)#mark ip-precedence 2
(BX900-CB1)(Config-policy-classmap)#exit
(BX900-CB1)(Config-policy-map)#exit
(BX900-CB1)(Config)#interface 0/1
(BX900-CB1)(Interface BX900-CB1/0/1)#service-policy in policy1
(BX900-CB1)(Interface BX900-CB1/0/1)#exit
(BX900-CB1)(Config)#exit
(BX900-CB1)#show class-map
Class
Class Name Type Reference Class Name
------------------------------- ----- -------------------------------
class1 All
(BX900-CB1)#show policy-map
Policy Name Policy Type Class Members
------------------------------- ----------- -------------------------------
policy1 In class1
(BX900-CB1)#show policy-map interface 0/1 in
Interface...................................... BX900-CB1/0/1
Direction...................................... In
Operational Status............................. Down
Policy Name.................................... policy1
Interface Summary: