30
% If client requests specific expiration time, allocate 7200
% seconds
%(change as required)
max-lease-time 7200;
% Set clients default gateway to this (do not change)
option routers 10.0.0.1;
% Set clients primary/secondary DNS as these (change as required)
option domain-name-servers 206.13.28.12, 206.13.31.12;
% Set clients domain name as this (change as required)
option domain-name "pacbell.net";
}
% Use 255.255.255.248 as subnet mask for the IP addr 63.193.197.114
% Define subnet for the IP address used by NAT (change as needed)
subnet 63.193.197.114 netmask 255.255.255.248 {
}
The basic procedure to change the default setting is that you have to delete the existing configuration
and reentering new configuration.
> home
↵
> dhcpserver config
↵
(displays the current DHCP server configuration)
> dhcpserver config flush
↵
(deletes current DHCP server settings)
> dhcpserver config confirm
↵
(confirm the previous action)
> config save
↵
(save the new configuration)
> dhcpserver config
↵
(displays the current DHCP server configuration. Should be empty.)
Now add the new settings for DHCP server.
>
dhcpserver config add subnet 10.0.0.0 netmask 255.255.255.0 {
range 10.0.0.A
10.0.0
.
B; default-lease-time C; max-lease-time D; option routers 10.0.0.1; option
domain-name-servers eee.fff.ggg.hhh, iii.jjj.kkk.lll; option domain-name “mmmm” }
↵
(A, B are integers in the range 2--255, C/D indicate time in seconds,eee.fff.ggg.hhh/iii.jjj.kkk.lll are IP
addresses of primary/secondary DNS, mmmm is domain name. All these values are assigned by your
service provider.)
>
dhcpserver config add subnet aaa.bbb.ccc.ddd netmask eee.fff.ggg.hhh { }
↵
(aaa.bbb.ccc.ddd is the static IP address assigned by your service provider for the PC, eee.fff.ggg.hhh is the
subnet mask assigned by your service provider to PC)
>
dhcpserver config confirm
↵
(confirm the new configuration)
>
config save
↵
(save the new configuration)
>
restart
↵
(after restart new configuration will take effect)