set vrf (policy) (S-, K-Series)

Use this command to specify the VRF that will perform the next hop lookup, when the next hop of a policy IP address match belongs to a different VRF.

Syntax

set vrf vrf-name
no set vrf vrf-name

Parameters

vrf-name Specifies the VRF instance that will determine the next hop based upon its route lookup.

Defaults

None.

Mode

Policy-based routing configuration.

Usage

If the next hop of a policy IP address match, specified in the set next-hop command, belongs to a different VRF, use this command to configure the next hop VRF to perform the route lookup.

The “no” form of this command deletes the specified set VRF router configuration for this route map.

Example

This example shows how to set VRF vr2 to determine the next hop based upon its route table lookup:

System(rw-vr1-config)->route-map policy 101 permit 20
System(rw-vr1-config-route-map-pbr)->match ip address 1
System(rw-vr1-config-route-map-pbr)->set vrf vr2