View
Parameter
Description
Example
firewall enable
Syntax
View
Parameter
Description
Example
firewall ethernet-frame-filter
Syntax
View
Parameter
System view
permit: Sets the default filtering action to "permit".
deny: Sets the default filtering action to "deny".
Use the
firewall default
firewall to "permit" or "deny".
By default, the default filtering action is "permit", which applies to traffic not
defined by the ACLs.
# Set the default filtering mode of the firewall to "deny".
<Sysname> system-view
[Sysname] firewall enable
firewall enable
undo firewall enable
System view
None
Use the
firewall enable
Use the
undo firewall enable
By default, the firewall is disabled.
# Enable the firewall.
<Sysname> system-view
[Sysname] firewall enable
firewall ethernet-frame-filter { acl-number | name acl-name } { inbound |
outbound }
undo firewall ethernet-frame-filter { inbound | outbound }
Interface view
acl-number: Layer 2 ACL number, in the range 4000 to 4999.
command to set the default filtering action of the
command to enable the firewall.
command to disable the firewall.
1993