User Guide

Chapter 4. Configuring Special Features 73
Manipulating Subnetworks and Explicit Client Leases
Enabling/Disabling a subnetwork or a Client Lease
To enable/disable a subnetwork or a client lease, use the commands:
dhcp enable
all
| <
net
> <
ipaddr
>
dhcp disable
all
| <
net
> <
ipaddr
>
Example:
To enable the subnetwork 192.168.254.0 if that subnetwork exists, type:
dhcp enable 192.168.254.0
To enable the client lease 192.168.254.17 if that client lease exists, enter:
dhcp enable 192.168.254.17
To disable the client lease 192.168.254.18 if that client lease exists, type:
dhcp disable 192.168.254.18
To check the results of these commands, use:
dhcp list
If the client lease does not exist, it must be explicitly created.
Adding Subnetworks and Client Leases
!
!!
!
Adding a Subnetwork
The following commands are used to add/delete subnetworks. Only
one
subnetwork with
one
pool of IP
addresses may be defined for a subnet.
To add a subnetwork, use:
dhcp add <
net
> <
mask
>
To remove a subnetwork, use:
dhcp del <
net
>
Note:
All client leases associated with this subnetwork are automatically deleted.
Example 1:
The following command
will create a subnetwork 192.168.254.0 with a subnet mask of 255.255.255.0:
dhcp add 192.168.254.0 255.255.255.0
Example 2:
The following command will delete the subnetwork 192.168.254.0
and
will delete
all
client leases
associated with that subnetwork:
dhcp del 192.168.254.0