cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1514
Views
0
Helpful
11
Replies

IP Address Reservation Based on MAC

Noob_PNA
Level 1
Level 1

I have an IP address Reservation in My Router (1921) based on the MAC Address. but when the devices Connects it doesn't Assign the IP Address. I know the IP Address is not used because i have Excluded it from the DHCP Pool but want to assign it without using static.

When i ARP the Table i Get

1920_Main_Router#show ARP
Protocol Address Age (min) Hardware Addr Type Interface
Internet 10.0.2.1 - 6400.f1f9.bdc1 ARPA GigabitEthernet0/1.2
Internet 10.0.2.13 32 0018.ba56.1f41 ARPA GigabitEthernet0/1.2

Show ARPShow ARP

When i Show IP DHCP BIND it get

10.0.2.2 0018.ba56.1f41 Infinite Manual
10.0.2.3 0019.92b9.a612 Infinite Manual
10.0.2.13 0063.6973.636f.2d30. Jan 10 2023 05:58 AM Automatic
3031.382e.6261.3536.
2e31.6634.312d.566c.


32Show IP DHCP BindShow IP DHCP Bind

 

This is the current running config. which you can see that the Hardware-address is assigned a static 10.0.2.2 but it is not getting it.

Show RUNShow RUN

Any help would be appreciated. Thanks.

2 Accepted Solutions

Accepted Solutions

so you config IP helper ? 

debug ip dhcp server packet 

share this and after fews debug disable debug 

View solution in original post

use debug ip dhcp server 
then check the client-ID 
in your debug 

0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.342d.566c.3330


use same client-id in your DHCP Pool, 
that fast way I think 

View solution in original post

11 Replies 11

Hello,

try client identifier instead (which means you prepend a '01' to the MAC address, e.g.:

ip dhcp pool Security
host 10.0.20.2 255.255.255.0
client-identifier 0100.18ba.56lf.44

I tried that and it is the same issue.

Hello,

stop and start the DHCP service:

1921(config)#no service dhcp

1921(config)#service dhcp

I think you can't have the IP excluded and have a reservation. If it is excluded, it has to be statically assigned because that IP is not on the pool of IP addresses that the router or DHCP server can assign. 

 

If you want the IP to be dynamically assigned, remove the exclusion and have only the reservation.  

you config is wrong,

the interface receive the dhcp request is 10.0.50.x but the IP you want to assign is 10.0.10.x 10.0.20.x 10.0.30.x 10.0.40.x 
that wrong 
you need to assign static IP from same subnet 10.0.50.x 

All the IP address are separate vlans. So the the IP of 10.0.2.xxx is for vlan 2 and the vlan2 on the switch should be 10.0.2.2 for each VLAN is in the respective networks.

so you config IP helper ? 

debug ip dhcp server packet 

share this and after fews debug disable debug 

I have had to change from using the Client-Identifier 01xxxx.xxxx.xxxx.xx to using the number from the binding table for the dhcp

The troubleshooter shows:

*Jan 10 12:39:22.411: DHCPD: client's VPN is .
*Jan 10 12:39:22.411: DHCPD: No option 125
*Jan 10 12:39:22.411: DHCPD: DHCPREQUEST received from client 0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.322d.566c.3130.
*Jan 10 12:39:22.411: DHCPD: client is confused about its IP address (requested 10.0.10.8, assigned 10.0.10.2).
*Jan 10 12:39:22.411: DHCPD: Option 125 not present in the msg.
*Jan 10 12:39:22.411: DHCPD: Sending DHCPNAK to client 0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.322d.
1920_Main_Router#566c.3130.
*Jan 10 12:39:22.411: DHCPD: Option 125 not present in the msg.
*Jan 10 12:39:22.411: DHCPD: no option 125
*Jan 10 12:39:22.411: DHCPD: broadcasting BOOTREPLY to client 0018.ba56.1f42.
*Jan 10 12:39:22.415: DHCPD: client's VPN is .
*Jan 10 12:39:22.415: DHCPD: No option 125
*Jan 10 12:39:22.415: DHCPD: Option 125 not present in the msg.
*Jan 10 12:39:22.415: DHCPD: DHCPDISCOVER received from client 0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.322d.566c.3130 on interface GigabitEthern
1920_Main_Router#et0/1.10.
*Jan 10 12:39:22.419: DHCPD: Option 125 not present in the msg.
*Jan 10 12:39:22.419: DHCPD: Sending DHCPOFFER to client 0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.322d.566c.3130 (10.0.10.2).DHCPD: Setting only requested parameters

*Jan 10 12:39:22.419: DHCPD: Option 125 not present in the msg.
*Jan 10 12:39:22.419: DHCPD: no option 125
*Jan 10 12:39:22.419: DHCPD: broadcasting BOOTREPLY to client 0018.ba56.1f42.
*Jan 10 12:39:22.419: DHCPD: client's VPN is .
*Jan 10 12:39:22.419:
1920_Main_Router# DHCPD: No option 125
*Jan 10 12:39:22.419: DHCPD: Option 125 not present in the msg.
*Jan 10 12:39:22.419: DHCPD: DHCPDISCOVER received from client 0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.322d.566c.3130 on interface GigabitEthernet0/1.10.
*Jan 10 12:39:22.419: DHCPD: Option 125 not present in the msg.
*Jan 10 12:39:22.419: DHCPD: Sending DHCPOFFER to client 0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.322d.566c.3130 (10.0.10.2).DHCPD: Setting only requested parameters

*Jan 10 12:39:2
1920_Main_Router#2.419: DHCPD: Option 125 not present in the msg.
*Jan 10 12:39:22.419: DHCPD: no option 125
*Jan 10 12:39:22.419: DHCPD: broadcasting BOOTREPLY to client 0018.ba56.1f42.
*Jan 10 12:39:22.423: DHCPD: client's VPN is .
*Jan 10 12:39:22.423: DHCPD: No option 125
*Jan 10 12:39:22.423: DHCPD: DHCPREQUEST received from client 0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.322d.566c.3130.
*Jan 10 12:39:22.423: DHCPD: Option 125 not present in the msg.
*Jan 10 12:39:22.423: DHCPD: No default domain to ap
1920_Main_Router#pend - abort update
*Jan 10 12:39:22.423: DHCPD: Sending DHCPACK to client 0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.322d.566c.3130 (10.0.10.2).DHCPD: Setting only requested parameters

*Jan 10 12:39:22.423: DHCPD: Option 125 not present in the msg.
*Jan 10 12:39:22.423: DHCPD: no option 125
*Jan 10 12:39:22.423: DHCPD: broadcasting BOOTREPLY to client 0018.ba56.1f42.
1920_Main_Router#
*Jan 10 12:39:36.503: DHCPD: client's VPN is .
*Jan 10 12:39:36.503: DHCPD: No option 125
*Jan 10 12:39:36.503: DHCPD: DHCPREQUEST received from client 0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.332d.566c.3230.
*Jan 10 12:39:36.503: DHCPD: Finding a relay for client 0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.332d.566c.3230 on interface GigabitEthernet0/1.20.
*Jan 10 12:39:36.503: DHCPD: Option 125 not present in the msg.
1920_Main_Router#
*Jan 10 12:39:46.567: DHCPD: client's VPN is .
*Jan 10 12:39:46.567: DHCPD: No option 125
*Jan 10 12:39:46.567: DHCPD: DHCPREQUEST received from client 0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.342d.566c.3330.
*Jan 10 12:39:46.567: DHCPD: Finding a relay for client 0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.342d.566c.3330 on interface GigabitEthernet0/1.30.
*Jan 10 12:39:46.567: DHCPD: Option 125 not present in the msg.
1920_Main_Router#
*Jan 10 12:39:48.583: DHCPD: client's VPN is .
*Jan 10 12:39:48.583: DHCPD: No option 125
*Jan 10 12:39:48.583: DHCPD: DHCPREQUEST received from client 0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.352d.566c.3430.
*Jan 10 12:39:48.583: DHCPD: Finding a relay for client 0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.352d.566c.3430 on interface GigabitEthernet0/1.40.
*Jan 10 12:39:48.583: DHCPD: Option 125 not present in the msg.




I reloaded the switch which is connected and this is the debug from that point

*Jan 10 13:06:46.543: DHCPD: client's VPN is .
*Jan 10 13:06:46.543: DHCPD: No option 125
*Jan 10 13:06:46.543: DHCPD: Option 125 not present in the msg.
*Jan 10 13:06:46.543: DHCPD: DHCPDISCOVER received from client 0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.312d.566c.32 on interface GigabitEthernet0/1.2.
*Jan 10 13:06:46.543: DHCPD: Option 125 not present in the msg.
*Jan 10 13:06:46.543: DHCPD: Sending DHCPOFFER to client 0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.312d.566c.32 (10.0
1920_Main_Router#.2.2).DHCPD: Setting only requested parameters

*Jan 10 13:06:46.543: DHCPD: Option 125 not present in the msg.
*Jan 10 13:06:46.543: DHCPD: no option 125
*Jan 10 13:06:46.543: DHCPD: broadcasting BOOTREPLY to client 0018.ba56.1f41.
*Jan 10 13:06:46.547: DHCPD: client's VPN is .
*Jan 10 13:06:46.547: DHCPD: No option 125
*Jan 10 13:06:46.547: DHCPD: DHCPREQUEST received from client 0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.312d.566c.32.
*Jan 10 13:06:46.547: DHCPD: Option 125 not present in
1920_Main_Router# the msg.
*Jan 10 13:06:46.547: DHCPD: No default domain to append - abort update
*Jan 10 13:06:46.547: DHCPD: Sending DHCPACK to client 0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.312d.566c.32 (10.0.2.2).DHCPD: Setting only requested parameters

*Jan 10 13:06:46.547: DHCPD: Option 125 not present in the msg.
*Jan 10 13:06:46.547: DHCPD: no option 125
*Jan 10 13:06:46.547: DHCPD: broadcasting BOOTREPLY to client 0018.ba56.1f41.
*Jan 10 13:06:46.555: DHCPD: client's VPN is .
*Jan 10 13:06:46.5
1920_Main_Router#55: DHCPD: No option 125
*Jan 10 13:06:46.555: DHCPD: Option 125 not present in the msg.
*Jan 10 13:06:46.555: DHCPD: DHCPDISCOVER received from client 0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.322d.566c.3130 on interface GigabitEthernet0/1.10.
*Jan 10 13:06:46.555: DHCPD: Option 125 not present in the msg.
*Jan 10 13:06:46.555: DHCPD: Sending DHCPOFFER to client 0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.322d.566c.3130 (10.0.10.2).DHCPD: Setting only requested parameters

*Jan 10 13:0
1920_Main_Router#6:46.555: DHCPD: Option 125 not present in the msg.
*Jan 10 13:06:46.555: DHCPD: no option 125
*Jan 10 13:06:46.555: DHCPD: broadcasting BOOTREPLY to client 0018.ba56.1f42.
*Jan 10 13:06:46.559: DHCPD: client's VPN is .
*Jan 10 13:06:46.559: DHCPD: No option 125
*Jan 10 13:06:46.559: DHCPD: Option 125 not present in the msg.
*Jan 10 13:06:46.559: DHCPD: DHCPDISCOVER received from client 0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.332d.566c.3230 on interface GigabitEthernet0/1.20.
*Jan 10 13:06
1920_Main_Router#:46.559: DHCPD: Option 125 not present in the msg.
*Jan 10 13:06:46.559: DHCPD: Allocate an address without class information (10.0.20.0)
*Jan 10 13:06:46.559: DHCPD: Saving workspace (ID=0x26000003)
*Jan 10 13:06:46.559: DHCPD: New packet workspace 0x31DF9674 (ID=0x32000004)
*Jan 10 13:06:46.559: DHCPD: client's VPN is .
*Jan 10 13:06:46.559: DHCPD: No option 125
*Jan 10 13:06:46.559: DHCPD: Option 125 not present in the msg.
*Jan 10 13:06:46.559: DHCPD: DHCPDISCOVER received from client 0063.6973.
1920_Main_Router#636f.2d30.3031.382e.6261.3536.2e31.6634.342d.566c.3330 on interface GigabitEthernet0/1.30.
*Jan 10 13:06:46.559: DHCPD: Option 125 not present in the msg.
*Jan 10 13:06:46.559: DHCPD: Allocate an address without class information (10.0.30.0)
*Jan 10 13:06:46.559: DHCPD: Saving workspace (ID=0x32000004)
*Jan 10 13:06:46.559: DHCPD: New packet workspace 0x31B2A6B8 (ID=0xAA000005)
*Jan 10 13:06:46.559: DHCPD: client's VPN is .
*Jan 10 13:06:46.559: DHCPD: No option 125
*Jan 10 13:06:46.559: DHCPD: Opti
1920_Main_Router#on 125 not present in the msg.
*Jan 10 13:06:46.559: DHCPD: DHCPDISCOVER received from client 0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.352d.566c.3430 on interface GigabitEthernet0/1.40.
*Jan 10 13:06:46.559: DHCPD: Option 125 not present in the msg.
*Jan 10 13:06:46.559: DHCPD: Allocate an address without class information (10.0.40.0)
*Jan 10 13:06:46.559: DHCPD: Saving workspace (ID=0xAA000005)
*Jan 10 13:06:46.559: DHCPD: New packet workspace 0x326E98BC (ID=0xBF000006)
*Jan 10 13:06:46.559
1920_Main_Router#: DHCPD: client's VPN is .
*Jan 10 13:06:46.559: DHCPD: No option 125
*Jan 10 13:06:46.559: DHCPD: Option 125 not present in the msg.
*Jan 10 13:06:46.559: DHCPD: DHCPDISCOVER received from client 0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.362d.566c.3530 on interface GigabitEthernet0/1.50.
*Jan 10 13:06:46.559: DHCPD: Option 125 not present in the msg.
*Jan 10 13:06:46.559: DHCPD: Sending DHCPOFFER to client 0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.362d.566c.3530 (10.0.50.2).DHCPD: Set
1920_Main_Router#ting only requested parameters

*Jan 10 13:06:46.559: DHCPD: Option 125 not present in the msg.
*Jan 10 13:06:46.559: DHCPD: no option 125
*Jan 10 13:06:46.559: DHCPD: broadcasting BOOTREPLY to client 0018.ba56.1f46.
*Jan 10 13:06:48.559: DHCPD: Reprocessing saved workspace (ID=0x26000003)
*Jan 10 13:06:48.559: DHCPD: Option 125 not present in the msg.
*Jan 10 13:06:48.559: DHCPD: DHCPDISCOVER received from client 0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.332d.566c.3230 on interface GigabitE
1920_Main_Router#thernet0/1.20.
*Jan 10 13:06:48.559: DHCPD: Option 125 not present in the msg.
*Jan 10 13:06:48.559: DHCPD: Sending DHCPOFFER to client 0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.332d.566c.3230 (10.0.20.6).DHCPD: Setting only requested parameters

*Jan 10 13:06:48.559: DHCPD: Option 125 not present in the msg.
*Jan 10 13:06:48.559: DHCPD: no option 125
*Jan 10 13:06:48.559: DHCPD: broadcasting BOOTREPLY to client 0018.ba56.1f43.
*Jan 10 13:06:48.559: DHCPD: Reprocessing saved workspace (ID=0x
1920_Main_Router#32000004)
*Jan 10 13:06:48.559: DHCPD: Option 125 not present in the msg.
*Jan 10 13:06:48.559: DHCPD: DHCPDISCOVER received from client 0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.342d.566c.3330 on interface GigabitEthernet0/1.30.
*Jan 10 13:06:48.559: DHCPD: Option 125 not present in the msg.
*Jan 10 13:06:48.559: DHCPD: Sending DHCPOFFER to client 0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.342d.566c.3330 (10.0.30.6).DHCPD: Setting only requested parameters

*Jan 10 13:06:48.559: DHCPD
1920_Main_Router#: Option 125 not present in the msg.
*Jan 10 13:06:48.559: DHCPD: no option 125
*Jan 10 13:06:48.559: DHCPD: broadcasting BOOTREPLY to client 0018.ba56.1f44.
*Jan 10 13:06:48.559: DHCPD: Reprocessing saved workspace (ID=0xAA000005)
*Jan 10 13:06:48.559: DHCPD: Option 125 not present in the msg.
*Jan 10 13:06:48.559: DHCPD: DHCPDISCOVER received from client 0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.352d.566c.3430 on interface GigabitEthernet0/1.40.
*Jan 10 13:06:48.559: DHCPD: Option 125 not p
1920_Main_Router#resent in the msg.
*Jan 10 13:06:48.559: DHCPD: Sending DHCPOFFER to client 0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.352d.566c.3430 (10.0.40.6).DHCPD: Setting only requested parameters

*Jan 10 13:06:48.559: DHCPD: Option 125 not present in the msg.
*Jan 10 13:06:48.559: DHCPD: no option 125
*Jan 10 13:06:48.559: DHCPD: broadcasting BOOTREPLY to client 0018.ba56.1f45.
*Jan 10 13:06:49.551: DHCPD: client's VPN is .
*Jan 10 13:06:49.551: DHCPD: No option 125
*Jan 10 13:06:49.551: DHCPD: DHCP
1920_Main_Router#REQUEST received from client 0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.322d.566c.3130.
*Jan 10 13:06:49.551: DHCPD: Option 125 not present in the msg.
*Jan 10 13:06:49.551: DHCPD: No default domain to append - abort update
*Jan 10 13:06:49.551: DHCPD: Sending DHCPACK to client 0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.322d.566c.3130 (10.0.10.2).DHCPD: Setting only requested parameters

*Jan 10 13:06:49.551: DHCPD: Option 125 not present in the msg.
*Jan 10 13:06:49.551: DHCPD: no opti
1920_Main_Router#on 125
*Jan 10 13:06:49.551: DHCPD: broadcasting BOOTREPLY to client 0018.ba56.1f42.
*Jan 10 13:06:49.555: DHCPD: client's VPN is .
*Jan 10 13:06:49.555: DHCPD: No option 125
*Jan 10 13:06:49.555: DHCPD: DHCPREQUEST received from client 0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.362d.566c.3530.
*Jan 10 13:06:49.555: DHCPD: Option 125 not present in the msg.
*Jan 10 13:06:49.555: DHCPD: No default domain to append - abort update
*Jan 10 13:06:49.555: DHCPD: Sending DHCPACK to client 0063.6973.
1920_Main_Router#636f.2d30.3031.382e.6261.3536.2e31.6634.362d.566c.3530 (10.0.50.2).DHCPD: Setting only requested parameters

*Jan 10 13:06:49.555: DHCPD: Option 125 not present in the msg.
*Jan 10 13:06:49.555: DHCPD: no option 125
*Jan 10 13:06:49.555: DHCPD: broadcasting BOOTREPLY to client 0018.ba56.1f46.
*Jan 10 13:06:49.555: DHCPD: client's VPN is .
*Jan 10 13:06:49.555: DHCPD: No option 125
*Jan 10 13:06:49.555: DHCPD: DHCPREQUEST received from client 0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.332d.566
1920_Main_Router#c.3230.
*Jan 10 13:06:49.555: DHCPD: Option 125 not present in the msg.
*Jan 10 13:06:49.555: DHCPD: No default domain to append - abort update
*Jan 10 13:06:49.555: DHCPD: Sending DHCPACK to client 0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.332d.566c.3230 (10.0.20.6).DHCPD: Setting only requested parameters

*Jan 10 13:06:49.555: DHCPD: Option 125 not present in the msg.
*Jan 10 13:06:49.555: DHCPD: no option 125
*Jan 10 13:06:49.555: DHCPD: broadcasting BOOTREPLY to client 0018.ba56.1f43.

1920_Main_Router#*Jan 10 13:06:49.555: DHCPD: client's VPN is .
*Jan 10 13:06:49.555: DHCPD: No option 125
*Jan 10 13:06:49.555: DHCPD: DHCPREQUEST received from client 0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.342d.566c.3330.
*Jan 10 13:06:49.555: DHCPD: Option 125 not present in the msg.
*Jan 10 13:06:49.555: DHCPD: No default domain to append - abort update
*Jan 10 13:06:49.555: DHCPD: Sending DHCPACK to client 0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.342d.566c.3330 (10.0.30.6).DHCPD: Setting only
1920_Main_Router#requested parameters

*Jan 10 13:06:49.555: DHCPD: Option 125 not present in the msg.
*Jan 10 13:06:49.555: DHCPD: no option 125
*Jan 10 13:06:49.555: DHCPD: broadcasting BOOTREPLY to client 0018.ba56.1f44.
*Jan 10 13:06:49.555: DHCPD: client's VPN is .
*Jan 10 13:06:49.555: DHCPD: No option 125
*Jan 10 13:06:49.555: DHCPD: DHCPREQUEST received from client 0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.352d.566c.3430.
*Jan 10 13:06:49.555: DHCPD: Option 125 not present in the msg.
*Jan 10 13:06
1920_Main_Router#:49.555: DHCPD: No default domain to append - abort update
*Jan 10 13:06:49.555: DHCPD: Sending DHCPACK to client 0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.352d.566c.3430 (10.0.40.6).DHCPD: Setting only requested parameters

*Jan 10 13:06:49.555: DHCPD: Option 125 not present in the msg.
*Jan 10 13:06:49.555: DHCPD: no option 125
*Jan 10 13:06:49.555: DHCPD: broadcasting BOOTREPLY to client 0018.ba56.1f45.

http://www.ccieordie.com/5-3-c-dhcp-client-id-27-byte

your config is OK but the client use client-id 27 bytes that why the static IP-MAC is not wrong, 
check the link above. 

I found the issue with that i have to use the client id and i thought that they were all the same for the vlan except the last numbers and it is not they are different by 1 character elsewhere.

 

use debug ip dhcp server 
then check the client-ID 
in your debug 

0063.6973.636f.2d30.3031.382e.6261.3536.2e31.6634.342d.566c.3330


use same client-id in your DHCP Pool, 
that fast way I think 

Review Cisco Networking for a $25 gift card