Specifications

84 Chapter 4. Configuring Special Features
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 creates 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 deletes the subnetwork 192.168.254.0 and deletes all client leases
associated with that subnetwork:
dhcp del 192.168.254.0
¥ Adding Explicit or Dynamic Client Leases
Client leases may either be created dynamically or explicitly. Usually client leases are created
dynamically when PCs boot and ask for IP addresses.
Explicit client leases
To add an explicit client lease, a subnetwork must already exist (use dhcp add <net> <mask> to add the
subnetwork) before the client lease may be added. Use the command:
dhcp add <ipaddr>
To remove a client lease, use:
dhcp del <ipaddr>
Note: An administrator may create a client lease that is part of a subnet but does not fall within the pool
of IP addresses.
Example 1:
To explicitly add the client lease 192.168.254.31, type:
dhcp add 192.168.254.31
Example 2:
To delete the client lease 192.168.254.31, type:
dhcp del 192.168.254.31
Dynamic Client Leases
Dynamic client leases are created from the pool of IP addresses associated with that subnetwork.
To set or change the pool, use:
dhcp set addresses <first ip addr> <last ip addr>
To clear the values from the pool, use:
dhcp clear addresses <net>
Note: Any client leases that currently exist will not be affected.
To remove a client lease that was dynamically created, use:
dhcp del <ipaddr>