cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
303
Views
0
Helpful
2
Replies

DHCP problem still exists

moses12315
Level 1
Level 1

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

2 Replies 2

hardiklodhia
Level 1
Level 1

guruprasadr
Level 7
Level 7

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

Review Cisco Networking products for a $25 gift card