DHCP Assigned Static Address not working.

Hi,

I am trying to assign a static address via DHCP in my Cisco 1921.

I have this in showing in my bindings:

Router#show ip dhcp bind
Bindings from all pools not associated with VRF:
IP address          Client-ID/              Lease expiration        Type
                    Hardware address/
                    User name
10.0.10.151         0100.155d.009b.23       Infinite                Manual
10.0.10.161         0100.3067.bfa3.a2       Jul 30 2015 09:09 AM    Automatic
10.0.10.162         0114.30c6.2bea.6d       Jul 30 2015 05:15 AM    Automatic
10.0.10.163         0100.155d.009b.03       Infinite                Manual
10.0.10.164         01b4.18d1.9346.11       Jul 30 2015 04:34 AM    Automatic
10.0.10.167         0100.155d.009b.0d       Infinite                Manual
10.0.10.168         0100.155d.009b.0a       Infinite                Manual
10.0.10.170         0100.155d.009b.24       Jul 30 2015 05:09 AM    Automatic
10.0.10.176         01d8.eb97.a096.24       Jul 30 2015 10:30 AM    Automatic
10.0.10.178         0100.155d.009b.21       Jul 30 2015 10:21 AM    Automatic
10.0.10.183         0100.155d.009b.23       Jul 30 2015 01:55 PM    Automatic
Router#

Open in new window


Why is .183 assigned to 0100.155d.009b.23 when .151 is what I want and the matching MAC address is there?

Gary
LVL 1
Gary4Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Craig BeckCommented:
Can you show the DHCP scope configuration please?
AkinsdNetwork AdministratorCommented:
If you assign an address within a DHCP range, you will need to exclude that address from DHCP.
Alternatively, statically assign addresses that do not fall within the DHCP range
Gary4Author Commented:
!
!
ip dhcp excluded-address 10.0.10.251 10.0.10.254
ip dhcp excluded-address 10.0.10.1 10.0.10.159
ip dhcp excluded-address 10.0.10.164
!
ip dhcp pool Lan1
 network 10.0.10.0 255.255.255.0
 dns-server 10.0.0.162 10.0.10.163
 domain-name gwsystems.local
 default-router 10.0.10.1
!
ip dhcp pool dns
 host 10.0.10.163 255.255.255.0
 client-identifier 0100.155d.009b.03
 client-name dns-server
!
ip dhcp pool web
 host 10.0.10.168 255.255.255.0
 client-identifier 0100.155d.009b.0a
 client-name WebServer
!
ip dhcp pool ws
 host 10.0.10.167 255.255.255.0
 hardware-address 0100.155d.009b.0d
 client-name wschirp
!
ip dhcp pool beta
 host 10.0.10.151 255.255.255.0
 hardware-address 0100.155d.009b.23
 client-name beta
!
!

Open in new window

Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Craig BeckCommented:
If you assign an address within a DHCP range, you will need to exclude that address from DHCP.

If you're 'statically' assigning the IP at the device you can reserve OR exclude, but if you're telling DHCP to always give the same IP to the client you should reserve, NOT exclude.

@Gary4 - I can see that you're using the client-dientifier in some reservations, and the hardware-address in others.  You should usually use the client-identifier parameter in the scope, not the hardware-address.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Gary4Author Commented:
Using Client-id did it.

I am not sure where the hardware-address came from.  Part of the configuration was done using the Cisco Configuration Professional and part was through telnet.  I have decided I don't like the CCP so I am trying to learn IOS.

I don't see any syntax for the reserve command you talk about.  The Cisco Cookbook shows exclude.
Craig BeckCommented:
What you've done is actually a reservation.

Excluding an address means that DHCP doesn't respond to requests for that address, nor will it hand the address out.

Glad you sorted it :-)
Gary4Author Commented:
Thank you for your help. :-)

I may be back later this week.  I also have to setup an IPSec tunnel.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
DHCP

From novice to tech pro — start learning today.