EdgeSwitch - DHCP Server


Overview


Readers will learn how to configure the EdgeSwitch as a DHCP server.

NOTES & REQUIREMENTS:
Applicable to the latest EdgeOS firmware on all EdgeRouter models. Please see the Related Articles below for more information.
 
Device used in this article:

Adding the DHCP Service


Back to Top

CLI: Access the command line interface (CLI). You can do this by using a program such as PuTTY.

1. Enter privileged mode.

enable

2. Enter configuration mode.

configure

3. Globally enable the DHCP service.

service dhcp

4. Define the IP address range that should not be leased by the DHCP server.

ip dhcp excluded-address 192.168.1.0 192.168.1.10
ip dhcp excluded-address 192.168.1.240 192.168.1.255

5. Create the DHCP server pool and specify the additional scope options.

ip dhcp pool example
lease 0 12 0
dns-server 192.168.1.1
default-router 192.168.1.1
network 192.168.1.0 255.255.255.0
exit

6. Exit back to privileged mode.

exit

7. Write the changes to the startup configuration

write memory

Related Articles


Back to Top

Intro to Networking - How to Establish a Connection Using SSH

EdgeRouter - DHCP Relay


We're sorry to hear that!