DHCP Server failover
Table 1 DHCP Server Failover Config
| Command | Purpose |
|---|---|
| dhcp failover name | Enable DHCP Server failover |
| adddress {A.B.C.D|loopback 0} | Configure failover local IP |
| peer address A.B.C.D | Configure failover peer IP |
| auto-partner-down time | Configure peer offline time |
| max-response-delay time | Configure maximum communication interruption time |
| role {primary|secondary} | Configure primary and secondary roles |
dhcp failover
Section titled “dhcp failover”[Command] dhcp failover name
[Purpose] Enable DHCP Server failover.
[Parameters]
| Parameter | Description |
|---|---|
| name | Instance name. |
[View] Global Configuration View
[Notes] Run command no dhcp failover name to disable DHCP Server failover.
[Use Cases]
sonic# configure terminalsonic(config)# dhcp failover t456adddress {
Section titled “adddress {”[Command] adddress {A.B.C.D|loopback 0}
[Purpose] Configure local IP.
[Parameters]
| Parameter | Description |
|---|---|
| A.B.C.D | IPv4 address. |
[View] DHCP failover Configuration View
[Notes] Run command no address to delete local IP.
[Use Cases]
sonic# configure terminalsonic(config)# dhcp failover t456sonic(config-dhcp-failover-t456)# address 20.0.0.1peer address
Section titled “peer address”[Command] peer address A.B.C.D
[Purpose] Configure peer IP.
[Parameters]
| Parameter | Description |
|---|---|
| A.B.C.D | IPv4 address. |
[View] DHCP failover Configuration View
[Notes] Run command no peer address to delete peer IP
[Use Cases]
sonic# configure terminalsonic(config)# dhcp failover t456sonic(config-dhcp-failover-t456)# peer address 20.0.0.2auto-partner-down
Section titled “auto-partner-down”[Command] auto-partner-down time
[Purpose] Configure peer offline time.
[Parameters]
| Parameter | Description |
|---|---|
| time | Peer 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 terminalsonic(config)# dhcp failover t456sonic(config-dhcp-failover-t456)# auto-partner-down 100max-response-delay
Section titled “max-response-delay”[Command] max-response-delay time
[Purpose] Configure maximum communication interruption time.
[Parameters]
| Parameter | Description |
|---|---|
| time | The 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 terminalsonic(config)# dhcp failover t456sonic(config-dhcp-failover-t456)# max-response-delay 100role {primary|secondary}
Section titled “role {primary|secondary}”[Command] role {primary|secondary}
[Purpose] Configure primary and secondary roles.
[View] DHCP failover Configuration View
[Use Cases]
sonic# configure terminalsonic(config)# dhcp failover t456sonic(config-dhcp-failover-t456)# role primary