R0106-HP MSR Router Series Layer 3 - IP Services Command Reference(V7)
162
Predefined user roles
network-admin
Usage guidelines
Enable NAT logging before you enable NAT444 alarm logging. The alarm logs are informational.
The NAT444 gateway generates alarm logs in the following situations:
• The ports in the mapped port block of a static NAT444 mapping are all occupied.
• The ports in the mapped port blocks (including extended ones) of a dynamic NAT444 mapping are
all occupied.
• The public IP addresses or port blocks for dynamic NAT444 mappings are all assigned.
Examples
# Enable NAT444 alarm logging.
<Sysname> system-view
[Sysname] nat log alarm
Related commands
• display nat all
• display nat log
• nat log enable
nat log enable
Use nat log enable to enable the NAT logging function.
Use undo nat log enable to disable NAT logging.
Syntax
nat log enable [ acl acl-number ]
undo nat log enable
Default
The NAT logging function is disabled.
Views
System view
Predefined user roles
network-admin
Parameters
acl acl-number: Specifies an ACL number in the range of 2000 to 3999. If you specify an ACL, this
command logs NAT flows that match the permit statements in the ACL. If you do not specify any ACL, this
command logs all NATed data flows.
Usage guidelines
You must enable NAT logging before you enable NAT session logging, NAT444 user logging, or
NAT444 alarm logging.