H3C S7500 Series Ethernet Switches Operation Manual

Operation Manual – NAT, Netstream, Policy Routing
H3C S7500 Series Ethernet Switches Chapter 1
NAT Configuration
1-13
To do… Use the command… Remarks
Enter system view
system-view
Enable NAT logging
ip userlog nat slot
slot-number acl
acl-number
Optional
By default, this function is
disabled.
II. Setting the wait interval to log active connections
You can use the ip userlog nat active-time command to have the NAT process
periodically log an active connection at the set interval after the active time of the
connection reaches the set interval.
Follow these steps to set the wait interval to log active connections:
To do… Use the command… Remarks
Enter system view
system-view
Set the wait interval to
log active connections
ip userlog nat
active-time minutes
Optional
By default, the logging of active
connections is disabled.
III. Setting the address and port number of the destination server for log
packets
Follow these steps to set the address and port number of the destination server for log
packets:
To do… Use the command… Remarks
Enter system view
system-view
Set the address and port
number of the destination
server for log packets
ip userlog nat export
[ slot slot-number ] host
ip-address udp-port
Optional
By default, ip-address is
0.0.0.0 (which means
logging output is disabled)
and udp-port is 0.
If you specify the slot-number argument, the configuration is only effective for the
specified LPU; otherwise, the configuration is effective for all LPUs.
IV. Setting the source IP address of log packets
Follow these steps to set the source address of log packets: