Skip to content

DHCP Server

show dhcp server

Command Objective: This command displays the DHCP servers' IP addresses. These addresses denotes the PCs or switches that can act as a DHCP server.

Syntax: show dhcp server

Mode: Privileged EXEC Mode.

show dhcp-relay

Command Objective: This command displays DHCP relay agent configuration.

Syntax: show dhcp-relay

Mode: Privileged EXEC Mode.

service dhcp-relay

Command Objective: This command enables the DHCP relay agent in the switch. DHCP relay agent relays DHCP messages between DHCP client and DHCP server located in different subnets.

The no form of the command disables the DHCP relay agent.

Syntax:

  • service dhcp-relay
  • no service dhcp-relay

Mode: Global Configuration Mode.

ip dhcp server

Command Objective: This command adds the configured IP address to the IP address list created for the DHCP server. The switches or systems having these IP addresses represent the DHCP servers to which the DHCP relay agent can forward the packets that are received from DHCP clients.

The DHCP relay agent broadcasts the received packets to entire network except the network from which the packets are received, if the DHCP server list is empty (that is IP address is configured as 0.0.0.0).

The no form of the command deletes the mentioned IP address from the IP address list.

Syntax:

  • ip dhcp server <ip address>
  • no ip dhcp server <ip address>

Mode: Global Configuration Mode.

ip dhcp client fast-access

Command Objective: This command enables DHCP fast access Mode.

If fast access mode is enabled, time to wait between discovery messages ie. discovery timeout and time to wait after four unsuccessful discovery will be user configurable and the default value for discovery timeout is 5 seconds and for the null state timeout is 1 second.

Syntax:

  • ip dhcp client fast-access

Mode: Privileged EXEC Mode.