exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Examples
# Display packet filtering statistics on all interfaces.
<Sysname> display firewall-statistics all
firewall default
Use firewall default to specify the default firewall filtering action of the IPv4 firewall.
Syntax
firewall default { deny | permit } { all | slot slot-number }
Default
The default filtering action of the IPv4 firewall is permitting packets to pass (permit).
Views
System view
Default command level
2: System level
Parameters
deny: Specifies the filtering action as denying packets to pass the firewall.
permit: Specifies the filtering action as permitting packets to pass the firewall.
all: Specifies that the configuration applies to all interface cards.
slot slot-number: Specifies that the configuration applies to the interface card in the specified slot.
The following matrix shows the all keyword, the slot slot-number option, and hardware compatibility:
Hardware
6602
HSR6602
6604/6608/6616
Examples
# Specify the default filtering action of the IPv4 firewall as denying packets to pass.
<Sysname> system-view
[Sysname] firewall default deny
firewall enable
Use firewall enable to enable the IPv4 firewall function.
Use undo firewall enable to disable the IPv4 firewall function.
Compatibility
No
Yes
Yes
404