Configuring DHCP Client

DHCP Configuration Task list

enable DHCP Server Service

disable DHCP Server Service

Configure ICMP Parameters

Configure Database Parameters

Configure DHCP Server Address Pool

Configure DHCP Server Address Pool Parameters

Monitor DHCP Server

CLEAR DHCP Server Information

DHCP Server Configuration Example

DHCP Configuration Task list

Tist section explains how to use DHCP to execute the following tasks:  

enable DHCP Server Service

disable DHCP Server Service

Configure ICMP Parameters

Configure Database Parameters

Configure DHCP Server Address Pool

Configure DHCP Server Address Pool Parameters

Monitor DHCP Server

CLEAR DHCP Server Information

 

enable DHCP Server Service

To enable DHCP Server service, allocate IP ADDRESS and parameter for DHCP Client, execute the following Commands under Global mode:  

Step

Command

Function

1 .

ip dhcpd enable

To enable DHCP Server Service

 

disable DHCP Server Service

To disable DHCP Server service, stop allocating IP ADDRESS and parameter for DHCP Client, execute the following Commands under Global mode:

Step

Command

Function

1 .

ip dhcpd disable

To disable DHCP Server Service

 

Configure ICMP Parameters

Adjust server for address inspection. Parameters that send ICMP packets:

To configure ICMP packets allocation, execute the following Commands under Global Configuration Mode:  

Step

Command

Function

1 .

ip dhcpd ping packets pkgs

To assign that address inspection is the number of ICMP packets sent out

To configure the time waiting for allocating ICMP packet respond overtime, execute the following Commands under Global Configuration Mode:  

Step

Command

Function

1 .

ip dhcpd ping timeout timeout

To assign the time waiting for ICMP packet respond overtime.

 

Configure Database Parameters

To configure the interval for storing address allocation information into agent database, execute the following Commands under Global mode: 

Step

Command

Function

1 .

ip dhcpd write-time time

To assign the interval for storing address allocation information into agent database.

 

Configure DHCP Server Address Pool

To add a DHCP Server address pool, execute the following the Commands under Global mode:  

Step

Command

Function

1 .

Ip dhcpd pool name

To add a DHCP Server address pool and enter DHCP address pool configuration mode

 

Configure DHCP Server Address Pool Parameters

Under DHCP address pool configuration mode, users may execute the following Command to configure related parameters.

Users may use the following Commands to configure addresses for auto-allocation:

Step

Command

Function

1 .

network ip-addr netsubnet

To configure addresses for auto-allocation

Users may use this Command to configure address areas for auto-allocation:

Step

Command

Function

1 .

range low-addr high-addr

To configure address areas for auto-allocation

Users may use this Command to configure default router allocated to clients:  

Step

Command

Function

1 .

default-router        ip-addr

To configure default router allocated to clients

Users may use this Command to configure DNS server address allocated to clients:

Step

Command

Function

1 .

dns-server ip-addr …

To configure DNS server address allocated to clients

Users may use this Command to configure parameter names allocated to clients:

Step

Command

Function

1 .

domain-name name

To configure parameter names allocated to clients

Users may use this Command to configure address using time allocated to clients:  

Step

Command

Function

1 .

lease {days [hours][minutes] | infinite }

To configure address using time allocated to clients

Users may use this Command to configure netbios name server address allocated to clients:  

Step

Command

Function

1 .

netbios-name-server ip-addr…

To configure netbios name server address allocated to clients

Users may use the following Commands to configure host addresses for manual allocation:  

Step

Command

Function

1 .

host ip-addr netmask

To configure host address for manual allocation

Users may use this Command to configure hardware address for matching clients:  

Step

Command

Function

1 .

hardware-address hardware-address{ type}

To configure hardware address for matching clients

Users may use this Command to configure client ID for matching clients:

Step

Command

Function

1 .

client-identifier unique-identifier

To configure client ID for matching clients

Users may use the following Commands to configure host name for manual allocation:  

Step

Command

Function

1 .

client-name name

To configure host name for manual allocation

 

Monitor DHCP Server

To view DHCP Server current address allocation information, execute the following Commands under supervisor mode:

Step

Command

Function

1 .

show ip dhcpd binding

To display DHCP Server current address allocation information

To view DHCP Server current packet statistics, execute the following Commands under supervisor mode:

Step

Command

Function

1 .

show ip dhcpd statistic

To display DHCP Server current statictics

 

CLEAR DHCP Server Information

To delete DHCP Server current address allocation information, execute the following Commands under supervisor mode:

Step

Command

Function

1 .

clear ip dhcpd binding {ip-addr|*}

To delete address allocation information

To delete DHCP Server current packet statistics, execute the following Commands under supervisor mode:

Step

Command

Function

1 .

clear ip dhcpd statistic

To delete DHCP Server current statictics

 

DHCP Server Configuration Example

DHCP configuration example is shown as follows.

The following examples set ICMP packet as 200ms, configure a name pool as 1, and open a DHCP Server service.  

ip dhcpd ping timeout 2

ip dhcpd pool 1

 network 192.168.20.0 255.255.255.0

 range 192.168.20.211 192.168.20.215

 domain-name D-Link315

 default-router 192.168.20.1

 dns-server 192.168.1.3 61.2.2.10

 netbios-name-server 192.168.20.1

 lease 1 12 0

!

ip dhcpd enable