H3C S7500 Series Ethernet Switches Command Manual

Table Of Contents
Command Manual – NAT, Netstream, Policy Routing
H3C S7500 Series Ethernet Switches Chapter 1
NAT Configuration Commands
1-24
Parameters
ip-address: IP address of a log server, that is, the destination IP address for log packets.
By default, it is 0.0.0.0, indicating NAT logging is disabled.
udp-port: UDP port number of a log server, that is, the destination port number for log
packets. It ranges from 0 to 65535 and is 0 by default.
slot-number: Slot number of an LPU. If you specify the slot-number argument, the
configuration is only effective for the specified LPU; otherwise, the configuration is
effective for all LPUs. The configuration with the slot-number argument specified takes
precedence over the global configuration.
Description
Use the ip userlog nat export host command to set the address and port number of
the global destination server for log packets.
Use the undo ip userlog nat export host command to restore the default settings for
global destination server.
Use the ip userlog nat export slot slot-number host command to set the address and
port number of a specific destination server for log packets on a specified LPU.
Use the undo ip userlog nat export slot slot-number host command to restore the
settings of global destination server for log packets on a specified LPU.
Examples
# Set the destination IP address and UDP port number of log packets on the LPU in slot
3 to 169.254.1.1 and 200 respectively.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] ip userlog nat export slot 3 host 169.254.1.1 200
1.2.5 ip userlog nat export source-ip
Syntax
ip userlog nat export source-ip src-address
undo ip userlog nat export source-ip
View
System view
Parameters
src-address: Source IP address for log packets. The default source IP address is
0.0.0.0, indicating that the VLAN-interface IP address is used as the source IP address.