Skip to content
Ask AI

DHCP Server failover

Table 1 DHCP Server Failover Config

CommandPurpose
dhcp failover nameEnable DHCP Server failover
adddress {A.B.C.D|loopback 0}Configure failover local IP
peer address A.B.C.DConfigure failover peer IP
auto-partner-down timeConfigure peer offline time
max-response-delay timeConfigure maximum communication interruption time
role {primary|secondary}Configure primary and secondary roles

[Command] dhcp failover name

[Purpose] Enable DHCP Server failover.

[Parameters]

ParameterDescription
nameInstance name.

[View] Global Configuration View

[Notes] Run command no dhcp failover name to disable DHCP Server failover.

[Use Cases]

sonic# configure terminal
sonic(config)# dhcp failover t456

[Command] adddress {A.B.C.D|loopback 0}

[Purpose] Configure local IP.

[Parameters]

ParameterDescription
A.B.C.DIPv4 address.

[View] DHCP failover Configuration View

[Notes] Run command no address to delete local IP.

[Use Cases]

sonic# configure terminal
sonic(config)# dhcp failover t456
sonic(config-dhcp-failover-t456)# address 20.0.0.1

[Command] peer address A.B.C.D

[Purpose] Configure peer IP.

[Parameters]

ParameterDescription
A.B.C.DIPv4 address.

[View] DHCP failover Configuration View

[Notes] Run command no peer address to delete peer IP

[Use Cases]

sonic# configure terminal
sonic(config)# dhcp failover t456
sonic(config-dhcp-failover-t456)# peer address 20.0.0.2

[Command] auto-partner-down time

[Purpose] Configure peer offline time.

[Parameters]

ParameterDescription
timePeer offline time, in seconds and ranging from 1 to 3600. By default, peers will not go offline.

[View] DHCP failover Configuration View

[Notes] Run command auto-partner-down to disable peer offline function

[Use Cases]

sonic# configure terminal
sonic(config)# dhcp failover t456
sonic(config-dhcp-failover-t456)# auto-partner-down 100

[Command] max-response-delay time

[Purpose] Configure maximum communication interruption time.

[Parameters]

ParameterDescription
timeThe maximum communication interruption time, measured in seconds, ranges from 30 to 3600, with a default value of 60.

[View] DHCP failover Configuration View

[Notes] Run command nomax-response-delay to restore maximum communication time to default value

[Use Cases]

sonic# configure terminal
sonic(config)# dhcp failover t456
sonic(config-dhcp-failover-t456)# max-response-delay 100

[Command] role {primary|secondary}

[Purpose] Configure primary and secondary roles.

[View] DHCP failover Configuration View

[Use Cases]

sonic# configure terminal
sonic(config)# dhcp failover t456
sonic(config-dhcp-failover-t456)# role primary