DHCP

DHCP

Quiz Page

Test your understanding of key concepts with a short quiz. A quick way to check what you know before moving on.

Lab Page

Hands-on practice exercises to reinforce what you’ve learned. Work through real scenarios in a guided environment.

Notes

There are two ways of configuring DHCP; Legacy and extended.

Both of these methods are valid. Legacy was created in an older version of Junos, while extended was updated to match across multiple platforms.

DHCP requires an active interface in the VLAN that addresses are being sent to

A juniper device can be configured as a dhcp server or a dhcp relay.

Command Summary

CommandModeDescription
set vlans NAME l3-interface INTERFACEconfigurationAssociate a layer-3 interface with a VLAN
set system services dhcp-local-server group NAME interface INTERFACEconfigurationEnable DHCP server on an interface (extended config)
set access address-assignment pool NAME family inet network SUBNETconfigurationCreate a pool (extended)
set access address-assignment pool NAME family inet range NAME low START-IP high END-IPconfigurationCreate pool range (extended)
set access address-assignment pool NAME family inet dhcp-attributes router IPconfigurationSets a gateway (extended)
set access address-assignment pool NAME family inet dhcp-attributes name-server IPconfigurationSet a DNS server (extended)
show dhcp server bindingoperationalShow dhcp leases (extended)
show dhcp server statisticsoperationalShow dhcp stats (extended)
set system services dhcp pool SUBNET address-range low START-IP high END-IPconfigurationConfigure a DHCP pool (legacy)
set system services dhcp pool POOL routerIPconfigurationSets a gateway (legacy)
set system services dhcp name-server IPconfigurationSet a DNS server (legacy)
show system services dhcp bindingoperationalSee dhcp leases (legacy)
show system services dhcp statisticsoperationalShow dhcp stats (legacy)
set forwarding-options helpers bootp server IPconfigurationSet DHCP relay IP
set forwarding-options helpers bootp interface INTERFACEconfigurationSet the interface to use when contacting the DHCP server
show helper statisticsoperationalDHCP relay troubleshooting information

Additional References

DHCP for Switches

Leave a Reply