Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Announcement: Try the Ask AI chatbot for answers to your technical questions about Juniper products and solutions.

close
header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Paragon Automation User Guide
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Configure a DHCP Relay for ZTP

Release: Paragon Automation 24.1
{}
Change Release
date_range 14-Jul-23

To use ZTP for onboarding devices that are present on a subnet that is different from the subnet in which Paragon Automation is installed, you must configure a DHCP relay, as shown in Figure 1.

Figure 1: Sample DHCP Relay Configuration for ZTP Sample DHCP Relay Configuration for ZTP

The DHCP relay can be an MX Series device or a Linux-based (CentOS) Virtual Machine (VM). For information about using an MX Series device as a DHCP relay, see DHCP Relay Agent.

To configure a DHCP relay in a CentOS-based VM:

  1. Log in to the VM as a root user.

  2. Install the DHCP relay package on the VM.

    content_copy zoom_out_map
    root@host#  yum install dhcp 
    Note:

    The DHCP relay package is usually available by default in a CentOS-based VM. However, if the package is not available, the yum install dhcp command fetches the package and installs it.

  3. Execute the following command to run the DHCP relay service.

    content_copy zoom_out_map
    root@host# dhcrelay -4 -d -i <interface-name> <dhcp-service-external-ip>

    where:

    interface-name is the interface on the VM that is connected to the device to be onboarded to Paragon Automation.

    dhcp-service-external-ip is the Paragon Insights services virtual IP (VIP) address that was provided during the installation.

    You can also obtain the Paragon Insights services VIP address by running the following command on the Paragon Automation primary node:

    content_copy zoom_out_map
    root@device# kubectl get svc -n ems | grep -i ztpservicedhcp 
    NAME                    TYPE           CLUSTER-IP      EXTERNAL-IP     PORT(S)             AGE
    ztpservicedhcp          LoadBalancer   10.102.3.100    192.168.15.155   67:30241/UDP        37h

    The IP address listed under EXTERNAL-IP is the Paragon Insights services VIP address.

You can now use the VM as a DHCP relay to connect Paragon Automation and the devices to be onboarded to Paragon Automation.

footer-navigation