349Parameter: input <policy-map-name> applies the specified policy-map to the currentport for the inbound traffic; output <policy-map-name> applies the specified policy-mapto the current port for the outbound traffic.Default: By default, there is no bound policy-map.Command mode: Interface ModeUsage Guide: The port trust and applied port policy-map are mutually exclusive. The newconfiguration will replace the previous one. Each port can only apply a policy-map for onedirection. The current version of software doesn’t support outbound policy-map.Example: Apply the policy called p1 to the port Ethernet 1/1.Switch(config)#interface ethernet 1/1Switch(Config-Ethernet1/1)# service-policy input p113.2.3 PBR ExampleExample 1:On the Ethernet port 1/1, set the PBR for the traffic which has the source IP addressas 192.168.1.0/24. Set the next hop for the above traffic to 218.31.1.119. For the trafficwhich has the source IP address as 192.168.1.0/24 and has the destination IP address as192.168.0.0/16, set not to route it by using the PBR.The Configuration Procedure is as below:Switch#configSwitch(config)#ip access-list extended a1Switch(Config-Ext-Nacl-acl1)#permit ip 192.168.1.0 0.0.0.255 any-destinationSwitch(Config-Ext-Nacl-acl1)#deny ip 192.168.1.0 0.0.0.255 192.168.0.0 0.0.255.255Switch(Config-Ext-Nacl-acl1)#exitSwitch(config)#mls qosSwitch(config)#class-map c1Switch(config-ClassMap)#match access-group a1Switch(config-ClassMap)# exitSwitch(config)#policy-map p1Switch(config-PolicyMap)#class c1Switch(config-Policy-Class)#set ip nexthop 218.31.1.119Switch(config--Policy-Class)#exitSwitch(config-PolicyMap)#exitSwitch(config)#interface ethernet 1/1Switch(Config-Ethernet1/1)#service-policy input p1