cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
521
Views
4
Helpful
5
Replies

DHCP issue on router

g.leonard
Level 1
Level 1

Soho 97 router running 12.3.

Configured as a DHCP server however when DHCP client reaches end of lease router gives it a new IP address. Is there anyway to allow the client to retain the IP address when lease ends or bind the client to a particular IP address?

1 Accepted Solution

Accepted Solutions

satish_zanjurne
Level 4
Level 4

Configure the lease as infinite to retain the IP Address.

Router(config-dhcp)# lease {days [hours][minutes] | infinite}

To bind the client to a particular IP Address

use following commands

ip dhcp pool name

host address [mask | /prefix-length]

hardware-address hardware-address type

HTH...rate if helpful..

View solution in original post

5 Replies 5

Marwan ALshawi
VIP Alumni
VIP Alumni

u can give the client a static IP from the PC

and exclude that IP from the DHCP pool in the router with command

ip dhcp exclude-address [ip address]

good luck

if helpful Rate

Sorry should have stated that I didn't want to give the client a static address.

Richard Burts
Hall of Fame
Hall of Fame

Gary

The normal behavior for DHCP is that when the lease reaches its end the client will receive the same address if it is available. Sometimes the DHCP server will have assigned that address to some other device (especially if the client has been off line for a while and if the address pool is small). From your description that seems to not be happening. Perhaps you can post the router configuration so that we can see it. Also it would help to know how many devices are receiving addresses from the router/server.

It is possible to statically bind an IP address to a specific MAC address. That might solve your issue. But if there are many devices that you want to do it for then it becomes a bit cumbersome.

HTH

Rick

HTH

Rick

satish_zanjurne
Level 4
Level 4

Configure the lease as infinite to retain the IP Address.

Router(config-dhcp)# lease {days [hours][minutes] | infinite}

To bind the client to a particular IP Address

use following commands

ip dhcp pool name

host address [mask | /prefix-length]

hardware-address hardware-address type

HTH...rate if helpful..

nice one Satish this 4 point :)

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card