dhcp-server static-ip
This command configures the DHCP Static IP table, which lets you define static IP addresses for DHCP clients. The table is a "child" of the DHCP Servers table.
Syntax
(config-network)# dhcp-server static-ip <Index> (static-ip-<Index<)#
Command |
Description |
---|---|
Index |
Defines the table row index. |
dhcp-server-number |
Associates the DHCP Static IP table entry with a DHCP server that you already configured. |
ip-address |
Defines the "reserved", static IP address (IPv4) to assign the DHCP client. |
mac-address |
Defines the DHCP client by MAC address (in hexadecimal format). |
Command Mode
Privileged User
Example
This example configures the DHCP client whose MAC address is 00:90:8f:00:00:00 with a static IP address 10.13.1.6:
(config-network)# dhcp-server static-ip 0 (static-ip-0)# dhcp-server-number 0 (static-ip-0)# ip-address 10.13.1.6 (static-ip-0)# mac-address 00:90:8f:00:00:00