sflow source-interface
Specifies to pick the IPv4 or IPv6 address of either the Ethernet, Virtual Ethernet (ve), management, or loopback interface as the source of sFlow packets.
Syntax
sflow source-interface
{
ethernet
slot/port
|
loopback
loopback_num
|
management
mgmt-id
|
ve
ve_interface
}
no sflow source-interface
Command Default
By default, sFlow uses the management port IP
address as the source IP.
Parameters
- ethernet
slot/port
- Specifies an Ethernet slot and port. The only
supported slot value on the fixed form factor SLX devices is
0.
- loopback
loopback_num
- Specifies a loopback interface. Valid values range from 1 through 255.
- management
mgmt-id
- Specifies the management interface. The only
supported value is 0.
- ve
ve-interface-number
- Specifies a virtual Ethernet (VE) interface. Valid values range from 1 through 4096.
Modes
Global configuration mode
Usage Guidelines
The
no form of the command is available after the source type has been specified.
- The sFlow source IP (source interface)
configurations are not applicable to sFlow collectors that are reachable through
the management port unless the specified source interface falls in the
management VRF.
- The
show sflow command displays the source interface field only when it is configured.
Examples
To specify the Ethernet address as the source of sFlow packets:
device# config
device(config)# sflow source-interface ethernet 0/1
To specify the loopback interface as the source of sFlow packets:
device(config)# sflow source-interface loopback 42
To confirm the above configuration:
device(config)# do show running-config sflow
sflow enable
sflow source-interface loopback 42
To disable the above configuration and revert to the default:
device(config)# no sflow source-interface
device(config)# do show running-config sflow
sflow enable