559
Default
No attack defense policy is applied to any interface.
Views
Layer 3 interface view
Predefined user roles
network-admin
Parameters
policy-name: Specifies the name of an attack defense policy. The policy name is a case-insensitive string
of 1 to 31 characters. Valid characters include uppercase and lowercase letters, digits, underscores (_),
and hyphens (-).
Usage guidelines
An interface can have only one attack defense policy applied. If you use this command on an interface
multiple times, the most recent configuration takes effect.
An attack defense policy can be applied to multiple interfaces.
Examples
# Apply attack defense policy atk-policy-1 to interface GigabitEthernet 2/1/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 2/1/1
[Sysname-GigabitEthernet2/1/1] attack-defense apply policy atk-policy-1
Related commands
• attack-defense policy
• display attack-defense policy
attack-defense local apply policy
Use attack-defense local apply policy to apply an attack defense policy to the device.
Use undo attack-defense local apply policy to restore the default.
Syntax
attack-defense local apply policy policy-name
undo attack-defense local apply policy
Default
No attack defense policy is applied to the device.
Views
System view
Predefined user roles
network-admin
Parameters
policy-name: Specifies the name of an attack defense policy. The policy name is a case-insensitive string
of 1 to 31 characters. Valid characters include uppercase and lowercase letters, digits, underscores (_),
and hyphens (-).