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
|