set protocols sflow collector vrf
The set protocols sflow collector vrf command configures the VRF where to run the sFlow service.
Command Syntax
set protocols sflow collector <ip-address> vrf <mgmt-vrf | default>
Parameter
Parameter | Description |
collector <ip-address> | Specifies an IP address of the sFlow collector. The value is an IPv4/IPv6 address. |
vrf <mgmt-vrf | default> | Optional. Specifies the VRF where to run the sFlow service. The value could be mgmt-vrf or default.
The default value is default, indicating that sFlow service runs in the default VRF if not explicitly bound to any VRF. |
Usage Guidelines
SFlow service runs in the default VRF by default, and supports to be configured in the management VRF. The corresponding collector is required to be route reachable in the VRF running sFlow service.
Note: The latest configuration overrides the previous one.
Example
- Configure the sFlow service to run in the management VRF.
admin@Xorplus# set protocols sflow collector 10.10.10.1 vrf mgmt-vrf admin@Xorplus# commit
Copyright © 2025 Pica8 Inc. All Rights Reserved.