373
Syntax
firewall
aspf
aspf-policy-number
{
inbound
|
outbound
}
undo
firewall
aspf
aspf-policy-number
{
inbound
|
outbound
}
Default
No ASPF policy is applied on the interface.
Views
Interface view
Default command level
2: System level
Parameters
aspf-policy-number
: Specifies the number of an ASPF policy, in the range of 1 to 99.
inbound
: Applies ASPF policy to inbound packets.
outbound
: Applies ASPF policy to outbound packets.
Examples
# Apply ASPF policy 1 to the outbound direction of GigabitEthernet 3/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 3/0/1
[Sysname-GigabitEthernet3/0/1] firewall aspf 1 outbound
icmp-error drop
Use
icmp
-
error drop
to specify to drop ICMP error messages.
Use
undo
icmp
-
error drop
to restore the default.
Syntax
icmp
-
error drop
undo
icmp
-
error drop
Default
ICMP error messages are not dropped.
Views
ASPF policy view
Default command level
2: System level
Examples
# Configure ASPF policy 1 to drop ICMP error messages.
<Sysname> system-view
[Sysname] aspf-policy 1
[Sysname-aspf-policy-1] icmp-error drop
Related commands
aspf-policy