vsx-sync ospf

Syntax

vsx-sync ospf

no vsx-sync ospf

Description

Enables syncing of OSPF including OSPFv2, OPSFv3, and route map configurations on the primary VSX switch. There is no configuration sync from secondary to primary peer.

To synchronize OSPF configurations at the port level context, configure the same port on the peer device.

The no form of this command disables syncing of OSPF and route map configurations to the secondary peer, but it does not remove the previously synced configurations from the secondary peer switch.

NOTE:

The OSPF router ID is not synchronized. This exclusion is needed because the router ID uniquely identifies the router. The two OSPF routers with the same router ID do not form an adjacency between them.

Command context

config-vsx

Authority

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

Examples

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

switch(config)# router ospf 1
switch(config-ospf-1)# area 0
switch(config-ospf-1)# area 1 nssa
switch(config-ospf-1)# area 2 stub
switch(config-ospf-1)# redistribute connected route-map map1
switch(config)# router ospfv3 1
switch(config-ospfv3-1)# max-metric router-lsa on-startup
switch(config-ospfv3-1)# bfd all-interfaces 
switch(config-if)# ip ospf 1 area 0
switch(config-if)# ip ospf hello-interval 33
switch(config-if)# ipv6 ospfv3 1 area 0
switch(config-if)# ipv6 ospfv3 dead-interval 55
switch(config)# vsx
switch(config-vsx)# vsx-sync ospf

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

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