affinity-per-vrf
Use the affinity-per-vrf command in system configuration mode to configure a device to have an affinity value for traffic in a specific VRF or range of VRFs. Use the no form of the command to remove this configuration.
affinity-per-vrf affinity-value vrf-range vrf-range
no affinity-per-vrf
Syntax Description
affinity-per-vrf affinity-value |
Affinity group to use for the VRF range. |
vrf-range vrf-range |
A single VRF value or range of values, separated by a hyphen. This parameter does not support a comma-separated list of individual VRF values. Examples:
|
Command Default
Disabled
Command Modes
System (config-system)
Command History
Release | Modification |
---|---|
Cisco IOS XE Catalyst SD-WAN Release 17.12.1a |
This command was introduced. |
Usage Guidelines
Specifying affinity group numbers for specific VRFs provides granular control of how routers choose the next hop for traffic in different VRFs.
Example
The following example configures affinity group 1 for VRF1:
Device(config)#system
Device (config-system)# affinity-per-vrf 1 vrf-range 1
Example
The following example configures affinity group 4 for the VRF range 3 to 6:
Device(config)#system
Device (config-system)# affinity-per-vrf 4 vrf-range 3-6