ON THIS PAGE
Maintaining DHCP Subscribers During Interface Delete Events
Maintaining Subscribers During Interface Delete Events
You can configure the router to maintain DHCP subscribers (maintain the subscriber bindings) when an event occurs that normally results in the router deleting the subscriber. For example, by default, the router logs out DHCP subscribers when an interface delete event occurs, such as a line card reboot or failure. However, if you configure the router to maintain subscribers, the router identifies each subscriber that was on the deleted interface, and resumes normal packet processing for the subscriber when the interface is restored. This procedure does not maintain subscribers that are deleted during router reboots or failures.
Subscribers are logged off as usual when their lease expires, even If the router is configured to maintain subscribers and the subscriber is on a deleted interface that has not yet been restored.
You configure the router to maintain subscribers on a global basis—the configuration applies to DHCP local server, DHCPv6 local server, and DHCP relay clients in all logical routers and routing instances. When you enable the maintain subscribers feature, the router applies the feature to existing subscribers as well as subscribers who later connect.
If the maintain subscribers feature is enabled on the router, you can explicitly delete a subscriber binding and log out the subscriber by either specifying a lease expiration timeout or using one of the following commands, as appropriate:
Benefits of Maintaining Subscriber Bindings
Reduces the time to restore the subscriber session and minimizes loss of subscriber service.
Configuring the Router to Maintain DHCP Subscribers During Interface Delete Events
You can specify a configuration in which the router does not log out a subscriber when the subscriber’s interface is deleted.
This procedure does not maintain subscribers during router reboots or failures.
To configure the router to maintain DHCP subscribers when the subscriber interface is deleted:
Configuring an ACX Series DHCP Local Server to Preserve Subscriber Binding Information
When an ACX series router functioning as a DHCP local server reboots, by default, all the subscriber binding information is lost. You can configure the local server to preserve the subscriber binding information to a file in /var/preserve. When the router reboots, the DHCP local server reads the file and restores the subscriber binding information and resumes normal packet processing for the subscriber. By default, a new file is generated every 24 hours from the commit time, but you can specify a backup interval of 1 through 48 hours. The configuration is a global setting for each routing instance.
To configure an ACX Series DHCP local server to store subscriber binding information:
Enable persistent storage.
[edit system services dhcp-local-server] user@host# set persistent-storage automatic
To configure a file to store subscriber binding information:
The following example saves the binding information to /var/preserve/acx-local-server1-client-data every 8 hours:
[edit system processes dhcp-service] user@host# set persistent-storage acx-local-server1-client-data backup-interval 8
See Also
Verifying and Managing DHCP Subscriber Binding During Interface Delete Events
Purpose
Display information related to the DHCP maintain-subscribers feature and explicitly log out maintained clients.
Action
To display DHCP local server binding information for the DHCP maintain subscribers feature:
user@host>show dhcp server binding detail
To display DHCPv6 local server binding information for the DHCP maintain subscribers feature:
user@host>show dhcpv6 server binding detail
To display DHCP relay binding information for the DHCP maintain subscribers feature:
user@host>show dhcp relay binding detail
To explicitly log out a DHCP local server subscriber when the maintain subscriber feature is enabled:
user@host>clear dhcp server binding binding-type
To explicitly log out a DHCPv6 local server subscriber when the maintain subscriber feature is enabled:
user@host>clear dhcpv6 server binding binding-type
To explicitly log out a DHCP relay subscriber when the maintain subscriber feature is enabled:
user@host>clear dhcp relay binding binding-type