Exporting nat logs to the information center, Exporting nat logs to the log server – H3C Technologies H3C S12500 Series Switches User Manual
Page 118

104
Figure 48 Exporting NAT logs
Exporting NAT logs to the information center
Exporting NAT logs to the information center consumes storage space of the switch. H3C recommends
this method when the volume of NAT logs is relatively small.
NAT logs exporting to the information center are prioritized as informational, meaning that they are
ordinary prompt information. For more information about NAT log priority, see Network Management
and Monitoring Configuration Guide.
To export NAT logs to the information center:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Export NAT logs to the
information center.
userlog nat syslog
By default, NAT logs are exported
to the NAT log server.
Exporting NAT logs to the log server
For the switch to export NAT logs to the log server in UDP packets, you can configure the following
parameters:
•
IP address and UDP port number of the NAT log server. NAT logs cannot be exported successfully
if you do not configure the information center export direction and specify the log server address.
•
Source IP address of NAT logs. This address allows the log server to identify the log source. H3C
recommends that you use the loopback interface address as the source IP address of NAT logs.
•
Version number of NAT logs. NAT logs might come in several versions, each with a different packet
format. The switch supports only version 1.
Follow these guidelines when you export NAT logs to a NAT log server:
•
When the switch is operating in standalone mode, you can specify a separate log server for each
interface card identified by slot slot-number to implement load sharing on log servers.
•
When the switch is operating in IRF mode, you can specify a separate log server for each interface
card identified by chassis chassis-number to implement load sharing on log servers.
•
The IP address of the NAT log server must be a valid IPv4 or IPv6 unicast address.
•
A port number greater than 1024 is recommended to avoid conflicting with the system-defined port
numbers.
To configure the switch to export NAT logs to a NAT log server:
Internet
User
Device
generating NAT log
NAT logs
NAT logs
NAT log server