08-08-2007 08:34 PM - edited 03-05-2019 05:47 PM
I am trying to configure a DHCP server on a Cisco router so it assigns the same ip each time to a specific PC. I use the following commands:
rea#config t
Enter configuration commands, one per line. End with CNTL/Z.
rea(config)#ip dhcp pool net10.9.9.x/24
rea(dhcp-config)#host 10.9.9.151 /24 ?
<cr>
rea(dhcp-config)#host 10.9.9.151 /24
% This command may not be used with network, origin or vrf pools.
Why i can not do that .
Thanks
moses
08-08-2007 08:52 PM
hi,
you can only configure one manual binding per host pool
rgrds,
08-08-2007 09:00 PM
Hi Moses, [ Pls Rate if HELPS ]
You need to use below command syntax for the requirement:
Router(config)#ip dhcp pool name
Router(dhcp-config)#host address [mask | /prefix-length]
!!Specifies the IP address and subnet mask of the client. The prefix length specifies the number of bits that comprise the address prefix. The prefix is an alternative way of specifying the network mask of the client. The prefix length must be preceded by a forward slash (/).
Router(dhcp-config)#client-identifier unique-identifier
!!Specifies the unique identifier for DHCP clients. This command is used for DHCP requests.DHCP clients require client identifiers. The unique identification of the client is specified in dotted hexadecimal notation, for example, 01b7.0813.8811.66, where 01 represents the Ethernet media type.
Router(dhcp-config)# hardware-address hardware-address type
!!(optional) Specify the Hardware address of CLient. This is used during BootP request.
Router(dhcp-config)# client-name name
!!(optional)Specify the name of the client. Should not include the domain name ie., FQDN.
PLS RATE if HELPS
Best Regards,
Guru Prasad R
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide