H3C Technologies H3C S12500 Series Switches User Manual
Page 128
114
Details of configurations regarding the IP addresses of the switches and NAT function are not shown.
# Specify IP addresses for the interfaces, as shown in
. (Details not shown.)
# Export the NAT logs of Device A to the information center.
[DeviceA] userlog nat syslog
# Enable the NAT log function on Device A.
[DeviceA] nat log enable
# View the log buffer to monitor access records.
[DeviceA] quit
Directory of cf:/
0 -rw- 16850028 Aug 07 2009 04:02:42 mainpack.bin
1 drw- - Aug 07 2005 05:13:48 logfile
2 -rw- 1747 Aug 07 2009 04:05:38 vrpcfg.cfg
3 -rw- 524288 Aug 13 2009 01:27:40 basicbtm.bin
4 -rw- 524288 Aug 13 2009 01:27:40 extendbtm.bin
249852 KB total (232072 KB free)
File system type of cf: FAT32
…
%@250005%Jul 7 04:20:04:72 2005 DeviceA USERLOG/7/NAT:
ICMP; 192.168.1.6:768--->1.1.1.1:12288; 2.2.2.2:768;
[2005/07/07 04:20:03-0000/00/00 00:00:00];
Operator 8: Data flow created
%@250006%Jul 7 04:20:10:72 2005 DeviceA USERLOG/7/NAT:
ICMP; 192.168.1.6:768--->1.1.1.1:12288; 2.2.2.2:768;
[2005/07/07 04:20:03-2005/07/07 04:20:09];
Operator 1: Normal over
%@250007%Jul 7 04:20:30:72 2005 DeviceA USERLOG/7/NAT:
ICMP; 192.168.1.6:768--->1.1.1.1:12288; 2.2.2.2:768;
[2005/07/07 04:20:29-0000/00/00 00:00:00];
Operator 8: Data flow created
…
Apart from NAT logs, the log file includes other system logs, as described in
.
Table 5 Description on NAT logs
Field Description
ICMP ICMP.
192.168.1.6:768
Source IP address and port number before translation.
1.1.1.1:12288
Source IP address and port number after translation.