vsx-sync dhcp-server

Syntax

vsx-sync dhcp-server

no vsx-sync dhcp-server

Description

Enables VSX synchronization of all DHCPv4 server configurations, including external storage configurations, on the primary VSX node to the secondary peer. To synchronize DHCPv4 server configurations associated with a particular VRF, configure the same VRF on the peer device. Only the primary VSX node answers DHCP service requests, and leases can only be exported from the primary VSX node.

The no form of the command disables VSX synchronization of DHCPv4 server configurations to the secondary peer; however, it does not remove the existing DHCPv4 server feature configurations from the secondary peer.

Command context

config-vsx

Authority

Administrators

Examples

The first six lines in the following example show the setting of a DHCPv4 server configuration. The last line of the example shows the enabling of VSX synchronization for global DHCPv4 server configurations.

switch(config)# dhcp-server external-storage dhcp-dbs file dhcpv4_lease_file delay 600
switch(config)# dhcp-server vrf default
switch(config-dhcp-server)# pool test
switch(config-dhcp-server-pool)# range 10.0.0.20 10.0.0.30
switch(config-dhcp-server-pool)# default-router 10.0.0.1 10.0.0.10
switch(config-dhcp-server-pool)# static-bind ip 10.0.0.1 mac 24:be:05:24:75:73
switch(config)# vsx
switch(config-vsx)# vsx-sync dhcp-server

Disabling VSX synchronization for global DHCPv4 server configurations:

switch(config)# vsx
switch(config-vsx)# no vsx-sync dhcp-server