Enable SmartNode as a DHCP Server
Posted by , Last modified by Daniel Lizaola on 14 December 2017 04:22 PM

Configuration Description

The command sequence below enables SmartNode to operate as a DHCP server. In networks where the SmartNode is the Internet Gateway Router, this configuration is the best way to provide user devices with Internet access. Once enabled as a DHCP server, The SmartNode can provide a dynamically assigned IP address, DNS Server address, and Default Gateway address to users that are configured as DHCP clients (e.g. PCs, Laptops).

NOTE: You must ensure the network address and the IP addresses in the DHCP server profile match one of the IP interfaces defined in the IP Context.

When you start a DHCP server for the first time you will see the following warning:
2004-12-02T15:56:17 : LOGERROR : Error while loading lease database
This is only a warning does not indicate a problem.

 

Commande Sequence to copy, edit and paste

#create dhcp profile
profile dhcp-server PF-DHCP1
  network 192.168.1.0 255.255.255.0
  include 192.168.1.50 192.168.1.100
  lease 3 days
  default-router 192.168.1.1

#apply DHCP profile in the ip context
context ip
  dhcp-server use PF-DHCP1

(8746 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).