R3166-R3206-HP High-End Firewalls System Management and Maintenance Command Reference-6PW101
96
• To avoid collision with general UDP port numbers, UDP port numbers in the range 1025 to 65535
are recommended.
• The specified VPN instance should be created, otherwise packets delivery fails.
• You can select at most two log servers from three types of log servers (which are flow logging server
in a VPN, IPv4 flow logging server) to receive flow logs for each device. If you specify two log
servers for a device, the servers can be of the same type or of different types. If you have already
specified two servers, you need to delete an existing one to specify a new one. If in a new
configuration, the IP address is the same with that of the currently effective configuration, but other
information of the two configurations is different, then the new configuration will overwrite the
previous one.
Related commands: userlog flow export host.
Examples
# Export flow logs to the log server with IP address 1.2.3.6, and port number 2000.
<Sysname> system-view
[Sysname] userlog flow export host 1.2.3.6 2000
userlog flow export source-ip
Syntax
userlog flow export source-ip ip-address
undo userlog flow export source-ip
View
System view
Default level
2: System level
Parameters
ip-address: Source IP address of a flow logging packet.
Description
Use the userlog flow export source-ip command to configure the source IP address of flow logging
packets.
Use the undo userlog flow export source-ip command to restore the default.
By default, the source IP address of flow logging packets is the IP address of the egress interface of the
packets.
Related commands: userlog flow export host.
Examples
# Configure the source IP address of flow logging packets as 1.2.1.2.
<Sysname> system-view
[Sysname] userlog flow export source-ip 1.2.1.2