Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Example: Configuring Group Liveness Detection for DHCP Local Server Clients

This example shows how to configure group liveness detection for DHCP local server subscribers using Bidirectional Forwarding Detection (BFD) as the liveness detection method.

Requirements

Overview

In this example, you configure group liveness detection for DHCP local server subscribers by completing the following operations:

  1. Enable liveness detection for DHCP local server subscriber groups.
  2. Specify BFD as the liveness detection method for all dynamically created DHCP local server subscribers.
  3. Configure BFD-specific statements to define how the protocol behaves.
  4. Configure the action the router takes when a liveness detection failure occurs.

Note: This example explains how to configure liveness detection for a DHCPv4 network. Liveness detection is also supported for DHCPv6 configurations. To configure DHCPv6 liveness detection, include the liveness-detection statement, and any subsequent configuration statements, at the [edit system services dhcp-local-server dhcpv6] or [edit system services dhcp-local-server dhcpv6 group group-name] hierarchy level.

Configuration

Step-by-Step Procedure

To configure group liveness detection for DHCP local server:

  1. Specify that you want to configure liveness detection.
    [edit system services dhcp-local-server ]user@host# edit liveness-detection
  2. Specify that you want to configure liveness detection for a specific DHCP local server group.
    [edit system services dhcp-local-server liveness-detection]user@host# edit group local_group_1
  3. Specify that you want to configure the liveness detection method.
    [edit system services dhcp-local-server group local_group_1 liveness-detection]user@host# edit method
  4. Specify BFD as the liveness detection method that you want DHCP to use.
    [edit system services dhcp-local-server group local_group_1 liveness-detection method]user@host# edit bfd
  5. Configure the detection time threshold (in milliseconds) at which a trap is produced.
    [edit system services dhcp-local-server group local_group_1 liveness-detection method bfd]user@host# set detection-time threshold 30000
  6. Configure the time (in milliseconds) for which BFD holds a session up notification.
    [edit system services dhcp-local-server group local_group_1 liveness-detection method bfd]user@host# set holddown-interval 50
  7. Configure the BFD minimum transmit and receive interval (in milliseconds).

    Note: You do not need to configure the BFD minimum transmit and receive interval if you configure the minimum-interval for the BFD transmit-interval statement and the minimum-receive-interval.

    [edit system services dhcp-local-servergroup local_group_1 liveness-detection method bfd]user@host# set minimum-interval 45000
  8. Configure the minimum receive interval (in milliseconds).

    Note: You do not need to configure the BFD minimum receive interval if you configure the BFD minimum transmit and receive interval.

    [edit system services dhcp-local-server group local_group_1 liveness-detection method bfd]user@host# set minimum-receive-interval 60000
  9. Configure a multiplier value for the detection time.
    [edit system services dhcp-local-server group local_group_1 liveness-detection method bfd]user@host# set multiplier 100
  10. Disable the ability for BFD interval timers to change or adapt to network situations.
    [edit system services dhcp-local-server group local_group_1 liveness-detection method bfd]user@host# set no-adaptation
  11. Configure the BFD session mode.
    [edit system services dhcp-local-server group local_group_1 liveness-detection method bfd]user@host# set session-mode automatic
  12. Configure the threshold and minimum interval for the BFD transmit interval.

    Note: You do not need to configure the transmit interval values if you have already configured the minimum transmit and receive interval for BFD.

    [edit system services dhcp-local-server group local_group_1 liveness-detection method bfd]user@host# set transmit-interval threshold 60000 minimum-interval 45000
  13. Configure the BFD protocol version you want to detect.
    [edit system services dhcp-local-server group local_group_1 liveness-detection method bfd]user@host# set version automatic
  14. Configure the action the router takes when a liveness detection failure occurs. In this example, the failure action is to clear the client session only when a liveness detection failure occurs and the local interface is detected as being up.
    [edit system services dhcp-local-server group local_group_1 liveness-detection]user@host# edit failure-action action

Results

From configuration mode, confirm your configuration by entering the show system command. If the output does not display the intended configuration, repeat the instructions in this example to correct it.

[edit]regress@montag# show system
services {dhcp-local-server {group local_group_1 {liveness-detection {failure-action clear-binding-if-interface-up;method {bfd {version automatic;minimum-interval 45000;minimum-receive-interval 60000;multiplier 100;no-adaptation;transmit-interval {minimum-interval 45000;threshold 60000;}detection-time {threshold 30000;}session-mode automatic;holddown-interval 50;}}}}}}

If you are done configuring the device, enter commit from configuration mode.

Published: 2013-02-11