Chapter 8
Configuring SNMP
Applying a Service Policy
OL-11157-01
For example, to specify the permit action for the Layer 3 and Layer 4 policy map,
enter:
host1/Admin(config-pmap-mgmt-c)# permit
host1/Admin(config-pmap-mgmt-c)# exit
Use the service-policy command to perform the following:
Apply a previously created policy map.
•
Attach the traffic policy to a specific VLAN interface or globally to all VLAN
•
interfaces in the same context.
Specify that the traffic policy is to be attached to the input direction of an
•
interface.
The service-policy command is available at both configuration mode and
interface configuration mode. Specifying a policy map in the interface
configuration mode applies the policy map to a specific VLAN interface.
Specifying a policy map in the configuration mode applies the policy to all of the
VLAN interfaces associated with a context.
The syntax of this command is as follows:
service-policy input policy_name
The keywords, arguments, and options are as follows:
input—Specifies that the traffic policy is to be attached to the input direction
•
of an interface. The traffic policy evaluates all traffic received by that
interface.
policy_name—Name of a previously defined policy map, configured with a
•
previously created policy-map command. The name can be a maximum of 40
alphanumeric characters.
For example, to specify an interface VLAN and apply the SNMP management
policy map to a VLAN, enter:
host1/Admin(config)# interface vlan 50
host1/Admin(config-if)# ip address 172.20.1.100 255.255.0.0
host1/Admin(config-if)# service-policy input SNMP_MGMT_ALLOW_POLICY
Cisco 4700 Series Application Control Engine Appliance Administration Guide
Configuring SNMP Management Traffic Services
8-45