2032
C
133: NAT C
HAPTER
nat log enable
Syntax
View
Parameter
Description
Example
nat log flow-active
Syntax
View
Parameter
Description
C
ONFIGURATION
OMMANDS
<Sysname> system-view
[Sysname]undo nat connection-limit-policy 1
nat log enable [ acl acl-number ]
undo nat log enable
System view
acl acl-number: Enables the NAT log function for the data flows that match the
specified ACL. The acl-number parameter ranges from 2,000 to 3,999. Absence of
this parameter indicates that NAT log function applies to all data flows.
Use the
nat log enable
Use the
undo nat log enable
By default, the NAT log function is disabled.
# Enable the NAT log function.
<Sysname> system-view
[Sysname] nat log enable acl 2001
# Disable the NAT log function.
<Sysname> system-view
[Sysname] undo nat log enable
nat log flow-active minutes
undo nat log flow-active
System view
minutes: Interval in logging the active NAT sessions, in the range 10 to 120
minutes.
Use the
nat log flow-active
and specify the interval in creating and sending the logs.
Use the
undo nat log flow-active
By default, this function is disabled.
command to enable the NAT log function.
command to disable the NAT log function.
command to enable logging for NAT active sessions
command to disable this function.