R2511-HP MSR Router Series Security Command Reference(V5)

480
Attack detection and protection configuration
commands
attack-defense apply policy
Use attack-defense apply policy to apply an attack protection policy to an interface.
Use undo attack-defense apply policy to restore the default.
Syntax
attack-defense apply policy policy-number
undo attack-defense apply policy
Default
No attack protection policy is applied to an interface.
Views
Interface view
Default command level
2: System level
Parameters
policy-number: Specifies the sequence number of an attack protection policy, in the range of 1 to 128.
Usage guidelines
The attack protection policy to be applied to an interface must already be created by using the
attack-defense policy command.
One interface can be configured with only one attack protection policy. If you apply multiple policies to
an interface, only the last one takes effect. However, one policy can be applied to multiple interfaces.
Examples
# Apply attack protection policy 1 to interface GigabitEthernet 1/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/1
[Sysname-GigabitEthernet1/1] attack-defense apply policy 1
Related commands
attack-defense policy
display attack-defense policy
attack-defense policy
Use attack-defense policy to create an attack protection policy and enter attack protection policy view.
Use undo attack-defense policy to remove an attack protection policy.