R3303-HP HSR6800 Routers Network Management and Monitoring Command Reference
235
Parameters
vpn-instance vpn-instance-name: Specifies a VPN instance by its name, a case-sensitive string of 1 to 31
characters. If the flow logging server is on the public network, do not specify this option.
ipv6-address: Specifies the IPv6 address of the flow logging server.
udp-port: Specifies the UDP port number of the flow logging server, in the range of 0 to 65535.
slot slot-number: Specifies a card by its slot number. (In standalone mode.)
chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number
argument specifies the ID of the member device. The slot-number argument specifies the slot number of
the card. (In IRF mode.)
Usage guidelines
To output flow logs in UDP packets, you must specify a flow logging server. Otherwise the flow logs
cannot be exported.
To avoid collision with general UDP port numbers, use UDP port numbers in the range of 1025 to 65535.
The specified VPN instance must have been created. Otherwise packets delivery fails.
You must specify flow logging servers for interface cards separately. You can specify at most two log
servers of the same type or different types. There are three types of log servers, the VPN flow logging
server, the IPv4 flow logging server, and the IPv6 flow logging server. If you have already specified two
servers for an interface card, you must delete one to specify a new one. If you specify a new server that
has the same IP address as but has different other information from the current server, the new
configuration overwrites the previous one.
Examples
# (In standalone mode.) Export flow logs generated by the card in slot 2 to port 2000 on the IPv6 log
server 1::1, and port 2001 on the IPv6 log server 1::2.
<Sysname> system-view
[Sysname] userlog flow export slot 2 host ipv6 1::1 2000
[Sysname] userlog flow export slot 2 host ipv6 1::2 2001
# (In IRF mode.) Export flow logs generated by the card in slot 2 on device 1 to port 2000 on the IPv6
log server 1::1.
<Sysname> system-view
[Sysname] userlog flow export chassis 1 slot 2 host ipv6 1::1 2000
Related commands
userlog flow export host
userlog flow export source-ip
Use userlog flow export source-ip to configure the source IP address of flow logging packets.
Use undo userlog flow export source-ip to restore the default.
Syntax
userlog flow export source-ip ip-address
undo userlog flow export source-ip