415
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
: 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 3/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 3/0/1
[Sysname-GigabitEthernet3/0/1] attack-defense apply policy 1
Related commands
•
attack-defense
policy
•
display attack-defense policy
attack-defense logging enable
Use
attack-defense logging enable
to enable attack protection logging.
Use
undo attack-defense logging enable
to disable attack protection logging.
Syntax
attack-defense logging enable
undo attack-defense logging enable