set protocols static vrf route nexthop-vrf next-hop

Run the command set protocols static vrf route nexthop-vrf next-hop to configure a static leak route. The route is created in one VRF for which the next-hop router is located in a different VRF.

Run the command delete protocols static vrf route to delete this static route the switch configuration.


Command Syntax

set protocols static vrf <vrf-name> route <IPv4Net | IPv6Net> nexthop-vrf <vrf-name | default> next-hop <IPv4 | IPv6>

delete protocols static vrf <vrf-name> route <IPv4Net | IPv6Net>

 

Parameter

Parameter

Description

vrf <vrf-name>

Specifies the VRF name for the static route. This is the source VRF for the route.

route <IPv4Net | IPv6Net>

Specifies the IPv4 or IPv6 network prefix, e.g. 10.0.0.0/24.

nexthop-vrf <vrf-name| default>

Specifies the next-hop VRF for the static route. This is the destination VRF.

next-hop <IPv4 | IPv6>

Specifies the next-hop IPv4 or IPv6 router address in the destination VRF.


Usage Guidelines

Please note that if the route prefix chosen is an IPv4 network prefix then the next-hop router address in the next-hop VRF must also be an IPv4 address. Similarly, if the next route prefix is an IPv6 network prefix, then the next-hop router address in the next-hop VRF must also be an IPv6 address.


Example

  • Configure the static route leak in vrf1 for which the destination VRF is vrf2.
admin@Xorplus# set protocols static vrf vrf1 route 10.5.5.0/24 nexthop-vrf vrf2 next-hop 10.6.6.6
admin@Xorplus# commit

Copyright © 2024 Pica8 Inc. All Rights Reserved.