set protocols bgp vrf ipv4-unicast import vrf

Run the command set protocols bgp vrf ipv4-unicast import vrf to establish route leaking by importing IPv4 unicast routes from one VRF into another VRF.

Please note that the source VRF, to which the routes are imported to from the destination VRF must be a non-default VRF in this case. The destination VRF, from which the routes are imported can be a user defined non-default VRF or it could be the default VRF.

Run the command delete protocols bgp vrf ipv4-unicast import vrf to delete this configuration from the switch database.


Command Syntax

set protocols bgp vrf <vrf-name> ipv4-unicast import vrf <vrf-name | default>

delete protocols bgp vrf <vrf-name> ipv4-unicast import vrf <vrf-name | default>


Parameter

Parameter

Description

vrf <vrf-name>

Specifies the VRF name for the static route. This is the source VRF for the route and it must be a non-default user defined VRF. The value is a string.

vrf <vrf-name | default>

Specifies the destination VRF, it could be the default VRF or the user defined VRF. The value is a string.


Example

  • This example configures route leaking by importing BGP IPv4 routes from vrf2 into vrf1.

admin@Xorplus# set protocols bgp vrf vrf1 ipv4-unicast import vrf vrf2
admin@Xorplus# commit

Copyright © 2024 Pica8 Inc. All Rights Reserved.