R2511-HP MSR Router Series Layer 3 - IP Services Command Reference(V5)
176
userlog nat export host
Use userlog nat export host to specify the IP address and UDP port number of the NAT log server that
receives NAT logs.
Use undo userlog nat export host to restore the default.
Syntax
userlog nat export host { ipv4-address | ipv6 ipv6-address } udp-port
undo userlog nat export host { ipv4-address | ipv6 ipv6-address }
Default
No NAT log server IP address or UDP port number is configured.
Views
System view
Default command level
2: System level
Parameters
ipv4-address: Specifies the IPv4 address of the NAT log server. It must be a valid unicast IPv4 address
and cannot be a loopback address.
ipv6 ipv6-address: Specifies the IPv6 address of the NAT log server. It must be a valid unicast IPv6
address.
udp-port: Specifies the UDP port number of the NAT log server, in the range of 0 to 65535.
Usage guidelines
Specify the NAT log server to successfully export NAT logs in UDP packets.
Use a UDP port number greater than 1024 to avoid conflicting with common UDP port numbers.
Examples
# Export NAT logs to NAT log server with IP address 169.254.1.1 and port number 2000.
<Sysname> system-view
[Sysname] userlog nat export host 169.254.1.1 2000
Related commands
userlog nat export source-ip
userlog nat export source-ip
Use userlog nat export source-ip to configure the source IP address for the UDP packets that carry NAT
logs.
Use undo userlog nat export source-ip to restore the default.
Syntax
userlog nat export source-ip ip-address
undo userlog nat export source-ip










