263
sflow sampling-rate
Use
sflow sampling-rate
to enable flow sampling and specify the number of packets out of which
flow sampling will sample a packet on an interface.
Use
undo sflow sampling-rate
to restore the default.
Syntax
sflow sampling-rate rate
undo sflow sampling-rate
Default
No flow sampling rate is configured.
Views
Layer 2 Ethernet interface view, Layer 3 Ethernet interface view
Predefined user roles
network-admin
Parameters
rate
: Specifies the number of packets out of which flow sampling will sample a packet on the
interface, in the range of 1000 to 500000.
Examples
# Enable flow sampling to sample a packet out of 4000 packets on FortyGigE 1/0/1.
<Sysname> system-view
[Sysname] interface fortygige 1/0/1
[Sysname-FortyGigE1/0/1] sflow sampling-rate 4000
Related commands
sflow sampling-mode
sflow source
Use
sflow source
to specify the source IP address of sFlow packets.
Use
undo sflow source
to restore the default.
Syntax
sflow source
{
ip
ip-address
|
ipv6 ipv6-address
} *
undo sflow source
{
ip
|
ipv6
} *
Default
The source IP address of sent sFlow packets is determined by routing.
Views
System view
Predefined user roles
network-admin
Parameters
ip ip-address
: Specifies the source IPv4 address of sFlow packets.
ipv6 ipv6-address
: Specifies the source IPv6 address of sFlow packets.