2.6.1. dhcp-client

Syntax

dhcp-client bind

dhcp-client A:B:C:D:E:F A.B.C.D <1-4094NAME

no dhcp-client bind

no dhcp-client A:B:C:D:E:F A.B.C.D <1-4094>

Parameter


A:B:C:D:E:F Client MAC address

A.B.C.D IP address manually assigned to the client

<1-4094> VLAN ID corresponding to the client

NAME Name, character range 1-32


Default

Mode

Global Configuration

Usage

Use the command “DHCP client bind” to enable the static allocation function, so that the server can assign a specified IP address to a fixed client port. Note that the address used for static allocation needs to be within the range of IP address pool allocation.

Example

Enable static allocation function

Switch(config)# dhcp-client bind

Configure static client table entries

Switch(config-if)# dhcp-client 00:00:00:00:00:FE 172.168.1.200 172 MyPc

Query client list

Switch# show dhcp-server clients
dhcp-client table info:
MAC Address ipAddress VlanId Hostname
-------------------- ----------------- ------ ----------------
00:00:00:00:00:FD 172.168.1.4 172 rbwww
00:00:00:00:00:FE 172.168.1.200 172 rbwww