artofrf.com

Ali's Technology Blog

Menu
  • Home
  • Important Links
  • About Me
  • Tools and Scripts
Menu

DHCP Config – Mist dashboard

Posted on November 23, 2022November 23, 2022 by mali

This post is a follow up to one of my previous post, “Juniper EX4600 Layer 3 Config – DHCP – Part 2“. Previously, I talked about how to configure the DHCP server on the Juniper EX series switch using the CLI Commands under “Additional CLI”. Since then, Juniper-Mist has added support for the DHCP server and relay configuration in the Mist Dashboard.

I have a Juniper EX2300 series switch acting as my core switch with all the Layer 3 virtual (VLAN) interfaces configured on it.

Juniper – EX2300 – L3 virtual (VLAN) Interfaces (IRBs)

DHCP Config – JunOS CLI

Just as a recap, if I want to configure the DHCP server via CLI, I would use the following commands for all those VLANs.

delete groups vlan_dhcp
set groups vlan_dhcp system services dhcp-local-server group mali_dhcp interface irb.10
set groups vlan_dhcp access address-assignment pool vlan10 family inet network 192.168.10.0/24
set groups vlan_dhcp access address-assignment pool vlan10 family inet range vlan-range-10 low 192.168.10.0 high 192.168.10.254
set groups vlan_dhcp access address-assignment pool vlan10 family inet dhcp-attributes option 43 ip-address 192.168.10.11
set groups vlan_dhcp access address-assignment pool vlan10 family inet excluded-range vlan-range-10 low 192.168.10.0 high 192.168.10.100
set groups vlan_dhcp access address-assignment pool vlan10 family inet dhcp-attributes router 192.168.10.1
set groups vlan_dhcp access address-assignment pool vlan10 family inet dhcp-attributes name-server 208.67.222.222
set groups vlan_dhcp system services dhcp-local-server group mali_dhcp interface irb.20
set groups vlan_dhcp access address-assignment pool vlan20 family inet network 192.168.20.0/24
set groups vlan_dhcp access address-assignment pool vlan20 family inet range vlan-range-20 low 192.168.20.0 high 192.168.20.254
set groups vlan_dhcp access address-assignment pool vlan20 family inet excluded-range vlan-range-20 low 192.168.20.0 high 192.168.20.100
set groups vlan_dhcp access address-assignment pool vlan20 family inet dhcp-attributes router 192.168.20.1
set groups vlan_dhcp access address-assignment pool vlan20 family inet dhcp-attributes name-server 208.67.222.222
set groups vlan_dhcp system services dhcp-local-server group mali_dhcp interface irb.30
set groups vlan_dhcp access address-assignment pool vlan30 family inet network 192.168.30.0/24
set groups vlan_dhcp access address-assignment pool vlan30 family inet range vlan-range-30 low 192.168.30.0 high 192.168.30.254
set groups vlan_dhcp access address-assignment pool vlan30 family inet excluded-range vlan-range-30 low 192.168.30.0 high 192.168.30.100
set groups vlan_dhcp access address-assignment pool vlan30 family inet dhcp-attributes router 192.168.30.1
set groups vlan_dhcp access address-assignment pool vlan30 family inet dhcp-attributes name-server 208.67.222.222
set groups vlan_dhcp system services dhcp-local-server group mali_dhcp interface irb.40
set groups vlan_dhcp access address-assignment pool vlan40 family inet network 192.168.40.0/24
set groups vlan_dhcp access address-assignment pool vlan40 family inet range vlan-range-40 low 192.168.40.0 high 192.168.40.254
set groups vlan_dhcp access address-assignment pool vlan40 family inet excluded-range vlan-range-40 low 192.168.40.0 high 192.168.40.100
set groups vlan_dhcp access address-assignment pool vlan40 family inet dhcp-attributes router 192.168.40.1
set groups vlan_dhcp access address-assignment pool vlan40 family inet dhcp-attributes name-server 208.67.222.222
set apply-groups vlan_dhcp

DHCP Configuration in Mist UI:

First Enable the DHCP server and then click on “Add DHCP Network”.

Mist UI – Enable DHCP Server
Mist UI – Add DHCP Network

In the next screen, I simply have to choose if I am configuring a server or a relay, provide the information in rest of the fields such as “Network Interface”, “Start/End IPs”, “Gateway”, “DNS”.

Here is a typical example:

Mist UI – DHCP configuration

DHCP Relay Configuration – Mist UI:

What if this switch is not a DHCP server and/or I want to forward DHCP requests for a particular VLAN to another DHCP server. I can choose “Relay” (NOTE: this is the same as “ip-helper”) and configure the IP Address of the “DHCP Server”.

Mist UI – DHCP Relay Configuration

DHCP Options – Mist UI

Currently there isn’t a way to add multiple DHCP options using this method. If you have a need to configure specific DHCP options like “Option 43”, you can simply use the “Additional CLI” section for that. Here is a sample config:

delete groups vlan_dhcp
set groups vlan_dhcp system services dhcp-local-server group mali_dhcp interface irb.10
set groups vlan_dhcp access address-assignment pool vlan10 family inet network 192.168.10.0/24
set groups vlan_dhcp access address-assignment pool vlan10 family inet range vlan-range-10 low 192.168.10.0 high 192.168.10.254
set groups vlan_dhcp access address-assignment pool vlan10 family inet dhcp-attributes option 43 ip-address 192.168.10.11
set groups vlan_dhcp access address-assignment pool vlan10 family inet excluded-range vlan-range-10 low 192.168.10.0 high 192.168.10.100
set groups vlan_dhcp access address-assignment pool vlan10 family inet dhcp-attributes router 192.168.10.1
set groups vlan_dhcp access address-assignment pool vlan10 family inet dhcp-attributes name-server 208.67.222.222
set apply-groups vlan_dhcp

If I look at different available keywords after the “dhcp-attributes option ##” I can see different keywords available to me.

JunOS – DHCP Options

NOTE: All config samples are from my lab environment use them at your risk. They are provided as is without any warranty, assurance. Always test configurations, settings etc in a non production environment before using it in production.

Category: Juniper Security, Juniper/Mist, Mist

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • Nile Secure Guest – Configuration and Use Case
  • WLAN Pros Toolbox
  • Nile does NAC – Configuring Trust Engine
  • WLAN Validator
  • PCAP I/O Graph Analyzer

Tags

AirDrop arista Arista AGNI Arista CV-CUE Arista NAC Arista WIPS Arista WPA3 UPSK Aruba Central Automating Mist Switch Templates Automation AWDL Configuring Switch Templates in Mist CWAP 403 EAP Format MAC Addresses Hamina Network Planner Juniper SRX300 MacBook Marvis mdns MFD8 MFD9 Mist Access Assurance MistAI Mist Auto Placement Mist MPSK Mist Wireless NaaS Networking Field Day NFD32 NileNav Nile Secure Nile Wi-Fi Social Channels Tech Field Day Troubleshooting with Marvis Troubleshooting with Mist Troubleshooting with Mist AI Troubleshooting with Wireshark Wireless Adjuster Wireless Adjuster Level II Wireless troubleshooting WLPC wlpc2023 Wyebot

Tech Blogs

  • WiFiTodd
  • CCNA Wireless
  • Cisco Full Bars
  • Packet Life
  • Havilandweb
  • Gjermund Raaen
  • Bad-Fi
  • The ASCII Construct
  • Juniper Port Checker
  • WiFrizzy
  • Spectrum Chart
  • BadgerWiFi

Recent Comments

  • Hiten Thakkar on PCAP I/O Graph Analyzer
  • mali on Deploying Nile Secure – My First NSB
  • Larry Farrish on Deploying Nile Secure – My First NSB
  • Courtney on Mist Access Point – CSV
  • ayoub chabrouk on Ubiquiti stealing the show at MFD11

Archives

  • August 2026
  • July 2026
  • March 2026
  • February 2026
  • December 2025
  • November 2025
  • October 2025
  • August 2025
  • May 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • September 2023
  • August 2023
  • June 2023
  • May 2023
  • April 2023
  • February 2023
  • November 2022
  • October 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • May 2021
  • April 2021
  • March 2021
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • April 2019
  • March 2019
  • November 2018
  • October 2018
  • September 2018
  • May 2018
  • January 2018
  • December 2017
  • August 2017
  • January 2017
  • September 2014
  • December 2013
  • October 2013
  • May 2013
  • August 2012
  • July 2012

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Categories

  • AeroHive
  • Arista
  • Arista
  • Aruba
  • Aruba
  • Aruba Central
  • BYoD
  • Certifications
  • Cisco
  • Cisco
  • Cisco EEM Scripting
  • Cisco Routing
  • Cisco Security
  • Cisco VoIP
  • Cisco VPN
  • Cisco Wireless
  • Conferences and Meetings
  • Design
  • Ekahau
  • General
  • Hamina
  • IoT, IIoT, OT
  • Juniper Security
  • Juniper Switching
  • Juniper/Mist
  • Linux
  • Microsoft
  • Mist
  • Mist Wireless
  • Nile
  • Nile Secure
  • Nile Wi-Fi
  • Programming/Automation
  • Python
  • Ruckus
  • Ruckus Wireless
  • Ruckus/Brocade
  • Ruckus/Brocade Scripting
  • Ruckus/Brocade Switching
  • Secure Guest Service
  • Security
  • Switching
  • Tools
  • Troubleshooting
  • Trust Engine
  • Uncategorized
  • Windows
  • Wireless
  • Wireless
  • WLAN Tools
© 2026 artofrf.com | Powered by Minimalist Blog WordPress Theme