set protocols static route nexthop-vrf next-hop

Run the command set protocols static route nexthop-vrf next-hop to configure a static leak route in the default VRF. The source VRF for the route is the default VRF and the destination next-hop router is in the specified next-hop VRF.

To delete this route, run the command delete protocols static route nexthop-vrf.


Command Syntax

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

set protocols static route <IPv4Net | IPv6Net> nexthop-vrf <vrf-name> 


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>

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 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 the default VRF for which the destination VRF is vrf2.
admin@Xorplus# set protocols static 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.