R0106-HP MSR Router Series Layer 3 - IP Services Configuration Guide(V7)

128
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Enable NAT logging.
nat log enable [ acl acl-number ]
By default, NAT logging is
disabled.
The acl acl-number option does not
take effect on NAT444 user
logging.
3. Enable NAT444 user
logging.
For port block assignment:
nat log port-block-assign
For port block withdrawal:
nat log port-block-withdraw
By default, NAT444 user logging is
disabled,.
Configuring NAT444 alarm logging
If the public IP addresses, port blocks, or ports in mapped port blocks (including extended ones) are all
occupied, the NAT444 gateway cannot perform address translation and packets will be dropped. To
monitor the usage of public IP addresses and port block resources, you can configure NAT444 alarm
logging.
A NAT444 gateway generates alarm logs when one of the following occurs:
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.
Before configuring NAT444 alarm logging, you must configure the custom NAT444 log generation and
outputting functions. For more information, see Network Management and Monitoring Configuration
Guide.
To configure NAT444 alarm logging:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Enable NAT logging.
nat log enable [ acl acl-number ]
By default, NAT logging is
disabled.
The acl acl-number option does not
take effect on NAT444 alarm
logging.
3. Enable NAT444 alarm
logging.
nat log alarm
By default, NAT444 alarm logging
is disabled.
Displaying and maintaining NAT
Execute display commands in any view and reset commands in user view.
Task Command
Display all NAT configuration information. display nat all