vsx-sync vrf

Syntax

vsx-sync vrf

no vsx-sync vrf

Description

Enables VSX synchronization of VRF configurations on the primary VSX node to the secondary peer switch.

To synchronize VRF configurations, there is no need to configure the same VRF on the secondary peer.

To synchronize VRF configurations associated with a particular L3 interface, no special or extra configuration is required on the primary VSX node.

The no form of this command disables syncing VRF configurations to the secondary peer, but it does not remove the previously synced configurations from the secondary peer.

Command context

config-vsx

Authority

Administrators or local user group members with execution rights for this command.

Examples

Enabling VSX sync for the VRF configurations to the secondary peer:

switch(config)# vrf finance
switch(config-vrf)# rd 5:15
switch(config-vrf)# address-family ipv4 unicast
switch(config-vrf-ipv4-uc)# route-target import 4:8
switch(config-vrf-ipv4-uc)# route-target export 4:9
switch(config-vrf-ipv4-uc)# route-target both 4:10
switch(config-vrf-ipv4-uc)# exit-address-family
switch(config-vrf)# address-family ipv6 unicast
switch(config-vrf-ipv6-uc)# route-target import 6:8
switch(config-vrf-ipv6-uc)# route-target export 6:9
switch(config-vrf-ipv6-uc)# route-target both 6:10
switch(config-vrf-ipv6-uc)# exit-address-family
switch(config)# interface 1/1/1
switch(config-if)# vrf attach finance
switch(config)# vsx
switch(config-vsx)# vsx-sync vrf

Disabling VSX sync for the VRF configurations to the secondary peer:

switch(config)# vsx
switch(config-vsx)# no vsx-sync vrf