static-bind

Syntax

static-bind ipmac[hostname] no static-bind

描述

Creates a static binding that associates an IP address in the current pool with a specific MAC address. This causes the DHCPv4 server to only assign the specified IP address to a client station with the specified MAC address.

The没有form of this command removes the specified binding.

Command context

config-dhcp-server-pool

Parameters

具体的es an IP address in IPv4 format (x.x.x.x), wherexis a decimal number from 0 to 255. The IP address must be within the address range defined for the current pool.

mac

具体的es a client station MAC address (xx: xx: xx: xx: xx: xx), wherexis a hexadecimal number from 0 to F.

hostname

具体的es the host name of the client station. Range: 1 to 255 printable ASCII characters

权威

Administrators or local user group members with execution rights for this command.

Example

Defines a static address for the server poolprimary-poolon VRFprimary.

switch(config)#dhcp-server vrf primaryswitch(config-dhcp-server)#pool primary-poolswitch(config-dhcp-server-pool)#static-bind ip 10.0.0.1 mac 24:be:05:24:75:73

Deletes a static address from the server poolprimary-poolon VRFprimary.

switch(config)#dhcp-server vrf primaryswitch(config-dhcp-server)#pool primary-poolswitch(config-dhcp-server-pool)#没有static-bind ip 10.0.0.1 mac 24:be:05:24:75:73