dhcp relay master-server switch-delay

Use dhcp relay master-server switch-delay to enable the switchback to the master DHCP server and set the switchback delay time.

Use undo dhcp relay master-server switch-delay to restore the default.

Syntax

dhcp relay master-server switch-delay delay-time

undo dhcp relay master-server switch-delay

Default

The DHCP relay agent does not switch back to the master DHCP server.

Views

Interface view

Predefined user roles

network-admin

mdc-admin

Parameters

delay-time: Specifies the delay time in the range of 1 to 65535 minutes.

Usage guidelines

If you execute this command multiple times, the most recent configuration takes effect.

Examples

# Configure the DHCP relay agent to switch back to the master DHCP server 3 minutes after it switches to a backup DHCP server on VLAN-interface 2.

<Sysname> system-view
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2] dhcp relay master-server switch-delay 3

Related commands

dhcp relay server-address algorithm