Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
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

dhcp

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
dhcp {
    boot-file filename;
    boot-server (address | hostname);
    default-lease-time seconds;
    domain-name domain-name;
    domain-search [domain-list];
    maximum-lease-time seconds;
    name-server {
        address;
    }
    next-servernext-server
    option option-identifier-code ;
    pool address/prefix-length {
        address-range {
            low address;
            high address;
        }
        exclude-address {
            address;
        }
    }
    router {
        address;
    }
    static-binding mac-address {
        fixed-address {
            address;
        }
        host-name hostname;
        client-identifier (ascii client-id | hexadecimal client-id);
    }
    wins-server {
        address;
    }
}

Hierarchy Level

content_copy zoom_out_map
[edit system services]
[edit logical-systems logical -system-name system services]

Description

Configure a router, or a switch as a DHCP server. A DHCP server can allocate network addresses and deliver configuration information to client hosts on a TCP/IP network.

The remaining statements are explained separately.

Required Privilege Level

system—To view this statement in the configuration.

system-control—To add this statement to the configuration.

Release Information

Statement introduced before Junos OS Release 7.4.

The logical-systems option is introduced in Junos OS Release 18.4R1.

footer-navigation