Configuration Guide Vol. 1


36.2.1 Command list

The following tables list the commands used to configure DHCP servers.

Table 36-3: List of configuration commands

Command name

Description

client-name

Specifies the host name for a client (optional information). The host name specified by this command is used by the client when the DHCP server distributes a static IP address to the client.

default-router

Specifies the router for a client (optional information). From this list, the server selects the IP address of the default router available for the client on the subnet and distributes it to the client.

dns-server

Specifies the list of the IP addresses of the DNS servers for a client (optional information). From this list, the server selects the IP address of a DNS server available for the client and distributes it to the client.

domain-name

Specifies the domain name for a client (optional information). The domain name specified by using this command is used by the client as the preferred domain name and DNS resolves it to the IP address distributed to the client.

hardware-address

Specifies the MAC address of a client when a static IP address is distributed to the client. This command is used together with the host command.

host

Specifies the static IP address to be assigned to a client when a static IP address is distributed to the client. This command is used together with the hardware-address command.

ip dhcp dynamic-dns-update

Specifies whether to link dynamic DNS when distributing IP addresses.

ip dhcp excluded-address

Specifies the range of IP addresses in the DHCP address pool specified by using the network command that are to be excluded from distribution.

ip dhcp key

Sets the authentication key to be used for authentication on the DNS server when dynamic DNS is used.

ip dhcp pool

Sets DHCP address pool information.

ip dhcp zone

Sets the information about the zone where DNS updating is performed when a dynamic DNS server is linked.

lease

Specifies the default lease time for the IP address distributed to a client.

max-lease

Specifies the maximum lease time allowed when a client requests an IP address with a specific lease time.

netbios-name-server

Specifies the list of the IP addresses of the NetBIOS name servers (NBNS/WINS servers) for a client. From this list, the DHCP server selects the IP address of the NetBIOS name server available for the client and distributes it to the client.

netbios-node-type

Specifies the NetBIOS node type for a client (optional information). A NetBIOS node type indicates the name resolution method used by the client when NetBIOS over TCP/IP is used.

network

Specifies the subnet of the network to which an IP address is dynamically distributed by DHCP. IP addresses whose host name portion is set to all 0s or all 1s are not included in the DHCP address pool.

service dhcp

Specifies the interface on which a DHCP server is enabled.

Only the VLAN interface with this configuration receives DHCP packets.

The following tables list the operation commands for DHCP servers.

Table 36-4: List of operation commands

Command name

Description

show ip dhcp binding

Shows the binding information on the DHCP server.

clear ip dhcp binding

Deletes the binding information from the DHCP server database.

show ip dhcp import

Shows the values of options and parameters that are set in the configuration of a DHCP server.

show ip dhcp conflict

Displays an IP address conflict detected by the DHCP server. An IP address conflict refers to when an IP address is indicated as available in the DHCP address pool on the DHCP server but is already assigned to a terminal on the network. Before the DHCP server assigns the IP address to a DHCP client, the DHCP server detects an IP address conflict by checking for a response to a sent ICMP packet.

clear ip dhcp conflict

Clears the IP address conflict information from the DHCP server.

show ip dhcp server statistics

Shows statistics about the DHCP server.

clear ip dhcp server statistics

Resets statistics on the DHCP server.

restart dhcp

Restarts the DHCP server daemon process.

dump protocols dhcp

Outputs the server log data and the packet sending and receiving log data collected by the DHCP server program to a file.

dhcp server monitor

Starts collection of sending and receiving log data for packets which are sent and received by the DHCP server.

no dhcp server monitor

Stops collection of the sending and receiving log data for packets on the DHCP server.